Skip to main content
This page covers gavai tenant, which lists every workspace the signed-in user can access. You can use it to confirm a workspace slug before passing it elsewhere or to remind yourself which workspaces are in scope on the current session.

Synopsis

gavai tenant

Arguments

None.

Flags

Run gavai tenant --help for the authoritative flag list. The CLI is the source of truth.

Behavior

The command calls GET /v1/workspaces with the stored access token and prints the workspaces returned. The full response shape (including pagination and filters supported by the underlying endpoint) lives at Workspaces resource.

Examples

List your workspaces:
gavai tenant
Pipe through jq to extract just the slugs (when the CLI emits JSON):
gavai tenant | jq -r '.workspaces[].slug'
The exact output format (table, plain list, or JSON) depends on the CLI version. Run gavai tenant --help to see whether your build supports a --format flag.

Exit codes

See CLI overview — exit codes for the full table.

gavai get

Fetch a page document from the active workspace.