list

Description

List all secrets in your organization with pagination options.

Synopsis

$ abeja secret list [--help]
Usage: abeja secret list [OPTIONS]

  List secrets in organization

Options:
  -o, --offset INTEGER             Offset for pagination. Default: 0
  -l, --limit INTEGER              Limit for pagination (1-100). Default: 50
  --organization_id, --organization-id TEXT
                                  Organization ID. If not specified, the current
                                  organization ID is used.
  --help                          Show this message and exit.

Options

-o, --offset

Specify the offset for pagination. Default is 0.

-l, --limit

Specify the limit for pagination. Value must be between 1-100. Default is 50.

--organization_id, --organization-id

Specify the organization ID. If not specified, the current organization ID from the configuration is used.

Example

List all secrets in your organization

Command:

$ abeja secret list

Output:

{
  "secrets": [
    {
      "id": "secret-abcdef123456",
      "name": "database-password",
      "description": "Password for production database",
      "created_at": "2023-05-01T10:30:00.000000Z",
      "updated_at": "2023-05-01T10:30:00.000000Z",
      "expired_at": "2025-05-01T10:30:00.000000Z",
      "versions": [
        {
          "version": 1,
          "value": "my-secure-password",
          "created_at": "2023-05-01T10:30:00.000000Z"
        }
      ]
    },
    {
      "id": "secret-ghijkl789012",
      "name": "api-key",
      "description": "API key for external service",
      "created_at": "2023-04-15T14:20:00.000000Z",
      "updated_at": "2023-04-15T14:20:00.000000Z",
      "expired_at": null,
      "versions": [
        {
          "version": 1,
          "value": "sk_test_abcdefghijklmnopqrstuvwxyz",
          "created_at": "2023-04-15T14:20:00.000000Z"
        }
      ]
    }
  ],
  "offset": 0,
  "limit": 50,
  "has_next": false
}

List secrets with pagination

Command:

$ abeja secret list --offset 10 --limit 20

Output:

{
  "secrets": [
    ...
  ],
  "offset": 10,
  "limit": 20,
  "has_next": false
}