Workspaces
List the workspaces visible to your personal/device key and persist the default workspace for later commands.
Use workspaces list to inspect the workspaces visible to the current CLI token:
spinup workspaces listExample output:
Default workspace: bravo (config)
CURRENT NAME SLUG
Acme acme
* Bravo bravoUse workspaces use to persist the default workspace the CLI should use for workspace-scoped commands:
spinup workspaces use bravoThat updates defaultWorkspaceSlug in ~/.config/spinup/config.json and removes any need to depend on dashboard state for normal multi-workspace CLI usage.
One-off override
If you only want to override the workspace for a single command, use SPINUP_WORKSPACE:
SPINUP_WORKSPACE=acme spinup agents listEnvironment variables still win over the stored config, so SPINUP_WORKSPACE overrides a previously selected default until you unset it.
JSON output
Both commands support --json:
spinup workspaces list --json
spinup workspaces use bravo --jsonNon-default API hosts
If the command would send credentials to a non-default API host, add --allow-non-default-host:
spinup workspaces list --allow-non-default-host