# taggor projects

> List and clean the project folders Taggor keeps for you. Usage, options, examples and exit codes.

## taggor projects

List and clean the project folders Taggor keeps for you.

Subcommands: `taggor projects list`, `taggor projects clean`.

## taggor projects list

List the projects under ~/.taggor/projects and whether each has unpublished work.

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

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

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

Exit codes: `0` ok, `1` generic, `2` usage. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).

## taggor projects clean

Delete managed project folders (never one with unpublished work, unless `--force`; it exits 5 after printing when it kept one, and with `--json` the result says ok: true, so read the exit code).

```sh title="Usage"
npx taggor projects clean [options]
```

| Argument | What it does | Default |
| --- | --- | --- |
| `--older-than <value>` | Only folders not touched for at least this many days. | - |
| `--force` | Delete folders with unpublished changes too. | - |

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

```sh title="Examples"
npx taggor projects clean --older-than 30
```

Exit codes: `0` ok, `1` generic, `2` usage, `5` conflict. [What each code means](https://taggor.dev/docs/reference/cli.md#exit-codes).
