Neon is expanding into a backend: Object Storage, Functions, and AI Gateway now in beta
/APIs & SDKs/Organizations and networking/orgs

Neon CLI command: orgs

List the Neon organizations you belong to

The orgs command lists the organizations you belong to. Its subcommand takes only the global options.

Subcommands: list

neon orgs list

Lists all organizations associated with the authenticated Neon CLI user.

neon orgs list [options]

List your organizations with the default table output format:

neon orgs list
Output
Organizations
┌────────────────────────┬──────────────────┐
│ Id                     │ Name             │
├────────────────────────┼──────────────────┤
│ org-xxxxxxxx-xxxxxxxx  │ Example Org      │
└────────────────────────┴──────────────────┘

List your organizations with --output json, which also shows the created_at and updated_at timestamps omitted from the table output:

neon orgs list -o json
Show output
[
  {
    "id": "org-xxxxxxxx-xxxxxxxx",
    "name": "Example Org",
    "handle": "example-org-xxxxxxxx",
    "created_at": "2024-04-22T16:50:41Z",
    "updated_at": "2024-06-28T15:38:26Z"
  }
]
Was this page helpful?
Edit on GitHub

On this page

Copy neon init command