Skip to main content
This command lists all organizations you have access to, along with your roles in each organization.

Synopsis

Usage:
  aptible organizations

Options:
  None

Output

The command displays each organization with its ID, name, and your roles within that organization.

Text Format

By default, the command outputs in a human-readable text format:
Id: 5ca1ab1e-0000-0000-0000-000000000000
Name: Acme Prod
Roles:
  Id: 5afe5afe-0000-0000-0000-000000000000
  Name: Deploy Owners

  Id: acce5500-0000-0000-0000-000000000000
  Name: Read Only

Id: cafecafe-cafe-cafe-cafe-cafecafecafe
Name: Acme Test
Roles:
  Id: c0ffee50-0000-0000-0000-000000000000
  Name: Account Owners

JSON Format

Set the APTIBLE_OUTPUT_FORMAT=json environment variable for machine-readable JSON output:
APTIBLE_OUTPUT_FORMAT=json aptible organizations
[
  {
    "id": "5ca1ab1e-0000-0000-0000-000000000000",
    "name": "Acme Prod",
    "roles": [
      {
        "id": "5afe5afe-0000-0000-0000-000000000000",
        "name": "Deploy Owners"
      },
      {
        "id": "acce5500-0000-0000-0000-000000000000",
        "name": "Read Only"
      }
    ]
  },
  {
    "id": "cafecafe-cafe-cafe-cafe-cafecafecafe",
    "name": "Acme Test",
    "roles": [
      {
        "id": "c0ffee50-0000-0000-0000-000000000000",
        "name": "Account Owners"
      }
    ]
  }
]

Examples

aptible organizations
APTIBLE_OUTPUT_FORMAT=json aptible organizations

Related Commands