# taggor shared

> The workspace's shared folders: code several components import, each published as immutable versions. Usage, options, examples and exit codes.

## taggor shared

The workspace's shared folders: code several components import, each published as immutable versions.

Subcommands: `taggor shared list`, `taggor shared show`, `taggor shared rebuild`, `taggor shared archive`, `taggor shared restore`.

## taggor shared list

List the shared folders of the workspace and the components that use each.

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

| Argument | What it does | Default |
| --- | --- | --- |
| `--archived` | List the archived shared folders instead of the ones in use. | - |

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 shared list
npx taggor shared list --archived
```

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 shared show

Show one shared folder: its versions and the components that use it.

```sh title="Usage"
npx taggor shared show <shared> [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `<shared>` | The shared folder: its name or its id (shf_...). Required. | - |

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 shared show ui
```

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 shared rebuild

Build again, from the source Taggor keeps, the components that are behind the folder's current version; the new versions go to staging.

```sh title="Usage"
npx taggor shared rebuild <shared> [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `<shared>` | The shared folder: its name or its id (shf_...). Required. | - |
| `--timeout <value>` | Seconds to wait for each build (default 600). | - |

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 shared rebuild ui
```

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 shared archive

Archive a shared folder: published components keep working, and nothing new is built against it until it is restored.

```sh title="Usage"
npx taggor shared archive <shared> [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `<shared>` | The shared folder: its name or its id (shf_...). Required. | - |
| `--yes` | Do not ask before archiving (a terminal asks; an agent or a script runs). | - |

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 shared archive ui --yes
```

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 shared restore

Restore an archived shared folder.

```sh title="Usage"
npx taggor shared restore <shared> [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `<shared>` | The shared folder: its name or its id (shf_...). Required. | - |

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 shared restore ui
```

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).
