# taggor workspaces

> Manage the workspace the CLI acts in. Usage, options, examples and exit codes.

## taggor workspaces

Manage the workspace the CLI acts in.

Subcommands: `taggor workspaces list`, `taggor workspaces use`, `taggor workspaces update`.

## taggor workspaces list

List your workspaces.

```sh title="Usage"
npx taggor workspaces list [options]
```

Also takes the [common options](https://taggor.dev/docs/reference/cli.md#common-options): `--api-url`, `--workspace`, `--verbose`, `--store`, `--json`, `--no-input`.

```sh title="Examples"
npx taggor workspaces list
```

Exit codes: `0` ok, `1` generic, `2` usage, `3` unauthenticated, `4` not_found, `5` conflict, `7` rate_limited, `8` network, `9` forbidden. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).

## taggor workspaces use

Remember the workspace to act in.

```sh title="Usage"
npx taggor workspaces use <slug> [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `<slug>` | Workspace slug. Required. | - |
| `--project` | Save in this project's taggor.json instead of the global config. | - |

Also takes the [common options](https://taggor.dev/docs/reference/cli.md#common-options): `--api-url`, `--workspace`, `--verbose`, `--store`, `--json`, `--no-input`.

```sh title="Examples"
npx taggor workspaces use acme
npx taggor workspaces use acme --project
```

Exit codes: `0` ok, `1` generic, `2` usage, `3` unauthenticated, `4` not_found, `5` conflict, `7` rate_limited, `8` network, `9` forbidden. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).

## taggor workspaces update

Rename the workspace or change its slug.

```sh title="Usage"
npx taggor workspaces update [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `--name <value>` | New name of the workspace. | - |
| `--slug <value>` | New slug of the workspace, its address in the portal URL: 3 to 40 lowercase letters, digits and hyphens. | - |

Also takes the [common options](https://taggor.dev/docs/reference/cli.md#common-options): `--api-url`, `--workspace`, `--verbose`, `--store`, `--json`, `--no-input`.

```sh title="Examples"
npx taggor workspaces update --name "Acme Studio"
```

Exit codes: `0` ok, `1` generic, `2` usage, `3` unauthenticated, `4` not_found, `5` conflict, `7` rate_limited, `8` network, `9` forbidden. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).
