General Input
Workspace

geni workspace current

Print the active workspace.

geni workspace current [flags]

Prints the active workspace's slug. Useful for scripts, prompt customization, and "which one am I in right now?" sanity checks.

Synopsis

geni workspace current              # just the slug
geni workspace current --verbose    # slug + name + role + id
geni workspace current --json
FlagNotes
--verboseInclude name, role, and workspace id alongside the slug.
--jsonMachine-readable output.

Output

Default:

acme

--verbose:

slug:  acme
name:  Acme Inc.
role:  admin
id:    org_01HX…

--json:

{ "slug": "acme", "name": "Acme Inc.", "id": "org_01HX…", "role": "admin" }

Exit codes

CodeMeaning
0Returned
78Runner session missing or expired (no active workspace if there's no session)

On this page