Workspace
geni workspace switch
Re-point the CLI session at a different workspace, by slug or through a picker.
geni workspace switch [slug]Changes which workspace every later command operates in. The session token keeps working; only the active-workspace pointer moves, server-side and in the local cache.
Pass a slug for scripted use. Omit it for an interactive picker, which needs a TTY.
| Arg | Notes |
|---|---|
[slug] | Workspace slug. Omit for the picker. |
Output
✓ Active workspace: acme (Acme Inc.)Switching to the workspace you are already in prints Already on acme (Acme Inc.). No change. and exits 0.
For one command only
Every command takes a global --workspace <slug> before the subcommand, which overrides the active workspace for that invocation without changing the default:
geni --workspace personal credential listFind slugs with geni workspace list. An unknown slug exits 4 and lists the available ones.