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

# astro workspace list

<Info>The behavior and format of this command are the same for both Astro and Astro Private Cloud.</Info>

Generates a list of all Workspaces within your current Organization that you have access to.

## Usage

Run `astro workspace list` to see the name and Workspace ID for each Workspace to which you have access.

## Options

| Option          | Description                                                                                          | Possible Values                |
| --------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------ |
| `--json`        | Output the response as JSON. Shorthand for `--output json`. Mutually exclusive with `-o`/`--output`. | None                           |
| `-o`,`--output` | Format the output. The default is `table`.                                                           | `table`, `json`, or `template` |
| `--template`    | Format the output using a Go template. Use with `--output template`.                                 | Any valid Go template string   |

## Output

| Output | Description                                                              | Data Type |
| ------ | ------------------------------------------------------------------------ | --------- |
| `NAME` | The name of the Workspaces in your Organization that you have access to. | String    |
| `ID`   | The Workspace ID.                                                        | String    |

## Related commands

* [`astro workspace switch`](/docs/cli/v1.42/astro-workspace-switch)
