> ## Documentation Index
> Fetch the complete documentation index at: https://platform.atlan.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on Atlan objects, use the Atlan MCP server at https://api.atlan.com/mcp or the atlanai CLI; `atlanai --map json` prints its command map. Run a read-only identity check before any write.
> The docs MCP server at /mcp searches these docs only. It cannot read or change Atlan objects.
> SDK packages: Python `atlanai` (PyPI) and TypeScript `@atlanai/sdk` (npm). Show Python first, then TypeScript.

# atlanai workspace

> List and inspect workspaces visible to the current identity.

Workspace commands are read-only. Create and organize workspaces in the Atlan
app; use the CLI to find IDs, hierarchy, roles, and artifact counts.

## Commands

### list

Lists workspaces visible to the authenticated identity.

**Usage**

```text theme={null}
atlanai workspace list [flags]
```

| Option | Type | Default | Description |
| - | - | - | - |
| `--query` | string | none | Filter by display name. |
| `--parent` | string | none | Return direct children of this parent ID. |
| `--type` | string | none | Filter by `workspace`, `project`, or `folder`. |
| `--json` | string list | none | Select workspace fields. |
| `--jq`, `-q` | string | none | Filter JSON output with jq. |
| `--template`, `-t` | string | none | Render JSON data with a Go template. |

### get

Gets one workspace by its stable ID.

**Usage**

```text theme={null}
atlanai workspace get <id> [flags]
```

The command accepts the same structured-output options as `list`.

Valid JSON fields are `artifact_count`, `artifact_count_by_kind`, `description`,
`display_name`, `effective_role`, `id`, `kind`, `parent_id`, `type`,
`visibility`, and `workspace_status`.

## Examples

```bash theme={null}
atlanai workspace list --query platform
atlanai workspace list --parent workspace_123 --type project
atlanai workspace get workspace_123 --json id,display_name,effective_role
```

## Output and behavior

* Results include only workspaces visible to the authenticated identity.
* `list` returns a human-readable table unless structured output is requested.
* Empty results exit with code `0`.

## Related

* [`atlanai context`](/tools/cli/references/commands/context)
* [Get started with the CLI](/tools/cli/tutorials/get-started)
* [Work with Registry](/tools/cli/how-tos/registry)
