Skip to main content

astroctl_organization

astroctl organization

Manage organizations

Synopsis

Manage organizations, members, and permissions.

astroctl organization [flags]

Examples


# Create an organization
astroctl organization create --name "test-org"

# Get all the organizations
astroctl organization get

# Get an organization by ID
astroctl organization get --org-id <org-id>

# List all the organizations for the user
astroctl organization list

# List all organizations in the system (super-admin only)
astroctl organization list --all

# Add a user to an organization
astroctl organization add-user --org-id <org-id> --user-id <user-id>

# Remove a user from an organization
astroctl organization remove-user --org-id <org-id> --user-id <user-id>

# Using short alias
astroctl org get

Options

-h, --help help for organization

Options inherited from parent commands

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

SEE ALSO