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| Flag | Notes |
|---|---|
--verbose | Include name, role, and workspace id alongside the slug. |
--json | Machine-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
| Code | Meaning |
|---|---|
0 | Returned |
78 | Runner session missing or expired (no active workspace if there's no session) |