Skip to main content

astroctl organization use

Switch active organization context

Synopsis​

Switch the active organization for all subsequent CLI commands. Similar to 'kubectl config use-context'. The selected org is persisted on the server so all clients (CLI, website, MCP) share the same context.

Terminal
astroctl organization use [org-name-or-id] [flags]

Examples​

Terminal

# Switch by org name
astroctl org use my-team

# Switch by org ID
astroctl org use org-abc123

# List orgs first, then switch
astroctl org list
astroctl org use my-team

Options​

Terminal
-h, --help help for use
--key-name string Name of an API key the switch creates, such as ci-deploy (default: this machine's hostname)
--org-id string Organization ID to switch to

Options inherited from parent commands​

Terminal
-o, --output string Output format (table|json|yaml) (default "table")

SEE ALSO​