# `stattic-cli`

The Stattic CLI publishes static sites, build outputs, docs, reports, and
space previews from your terminal or automation. It is the fastest way to get
a live Stattic URL from a local folder.

```bash
npx stattic-cli publish ./dist
```

The first publish creates a live anonymous space and writes
`.stattic/state.json` inside the published directory. Publish the same directory
again to update the same space. `stattic publish` waits until the version
is live, refreshes the cache, verifies the live and immutable URLs, then prints
a version receipt.

Use the CLI interactively from a terminal, or pass `--json` on any command for
agent and CI workflows.

## Quick Start

```bash
npx stattic-cli doctor
npx stattic-cli publish ./dist
```

To publish into your account or team:

```bash
npx stattic-cli login
npx stattic-cli teams default my-team
npx stattic-cli publish ./dist
```

For CI, create an access token in Stattic and set `STATTIC_TOKEN`, or pass
`--token` directly:

```bash
STATTIC_TOKEN=st_... npx stattic-cli publish ./dist --json
```

## Routing Files

When publishing a directory, the CLI uploads root `_redirects` and `_headers`
files and validates them before finalizing the version. `_redirects` supports
redirects, rewrites, custom 404 rules, and proxy rules. `_headers` supports
validated response headers and Basic-Auth.

Proxy rules use absolute external `200` destinations in `_redirects`:

```txt
/api/* https://api.example.com/:splat 200
```

Internal `200` destinations are rewrites.

## Documentation

- [Stattic docs](https://stattic.net/docs)
- [CLI docs](https://stattic.net/docs/cli)
- [Agent setup](https://stattic.net/docs/agents)
- [API docs](https://stattic.net/docs/api)
- [LLM guide](https://stattic.net/llms.txt)

## Tab completion

```bash
$ stattic autocomplete bash    # or zsh / fish / powershell
$ stattic autocomplete --refresh-cache
```

Follow the printed instructions to add the completion script to your shell init file.

## Working directory

```bash
$ stattic --cwd ./apps/docs deploy
$ stattic --cwd=/tmp/site env ls
```

Pass `--cwd <path>` to any command to operate as if it ran from that directory.
Useful in monorepos, CI scripts, or when the project state lives elsewhere.

## Usage

<!-- usage -->

```sh-session
$ npm install -g stattic-cli
$ stattic COMMAND
running command...
$ stattic (--version)
stattic-cli/0.0.6 darwin-arm64 node-v25.9.0
$ stattic --help [COMMAND]
USAGE
  $ stattic COMMAND
...
```

<!-- usagestop -->

## Commands

<!-- commands -->

- [`stattic analytics`](#stattic-analytics)
- [`stattic autocomplete [SHELL]`](#stattic-autocomplete-shell)
- [`stattic backups`](#stattic-backups)
- [`stattic backups add [TYPE]`](#stattic-backups-add-type)
- [`stattic backups download BACKUP`](#stattic-backups-download-backup)
- [`stattic backups get BACKUP`](#stattic-backups-get-backup)
- [`stattic backups ls`](#stattic-backups-ls)
- [`stattic backups rm BACKUP`](#stattic-backups-rm-backup)
- [`stattic cache`](#stattic-cache)
- [`stattic cache purge`](#stattic-cache-purge)
- [`stattic certs`](#stattic-certs)
- [`stattic certs activate CERTIFICATE`](#stattic-certs-activate-certificate)
- [`stattic certs add`](#stattic-certs-add)
- [`stattic certs deactivate CERTIFICATE`](#stattic-certs-deactivate-certificate)
- [`stattic certs get [CERTIFICATE]`](#stattic-certs-get-certificate)
- [`stattic certs ls`](#stattic-certs-ls)
- [`stattic certs retry`](#stattic-certs-retry)
- [`stattic certs rm CERTIFICATE`](#stattic-certs-rm-certificate)
- [`stattic certs settings`](#stattic-certs-settings)
- [`stattic certs settings android-compat`](#stattic-certs-settings-android-compat)
- [`stattic certs settings get`](#stattic-certs-settings-get)
- [`stattic certs settings hsts-preload disable`](#stattic-certs-settings-hsts-preload-disable)
- [`stattic certs settings hsts-subdomain`](#stattic-certs-settings-hsts-subdomain)
- [`stattic certs settings social-crawler-redirect`](#stattic-certs-settings-social-crawler-redirect)
- [`stattic certs update CERTIFICATE`](#stattic-certs-update-certificate)
- [`stattic certs validate`](#stattic-certs-validate)
- [`stattic crons`](#stattic-crons)
- [`stattic crons add`](#stattic-crons-add)
- [`stattic crons ls`](#stattic-crons-ls)
- [`stattic crons rm CRON`](#stattic-crons-rm-cron)
- [`stattic crons update CRON`](#stattic-crons-update-cron)
- [`stattic db`](#stattic-db)
- [`stattic db phpmyadmin`](#stattic-db-phpmyadmin)
- [`stattic db reset-password`](#stattic-db-reset-password)
- [`stattic deploy [DIR]`](#stattic-deploy-dir)
- [`stattic doctor`](#stattic-doctor)
- [`stattic domains`](#stattic-domains)
- [`stattic domains add HOSTNAME`](#stattic-domains-add-hostname)
- [`stattic domains check DOMAIN`](#stattic-domains-check-domain)
- [`stattic domains diagnostics DOMAIN`](#stattic-domains-diagnostics-domain)
- [`stattic domains ls`](#stattic-domains-ls)
- [`stattic domains rm DOMAIN`](#stattic-domains-rm-domain)
- [`stattic env`](#stattic-env)
- [`stattic env ls`](#stattic-env-ls)
- [`stattic env pull`](#stattic-env-pull)
- [`stattic env rm NAME`](#stattic-env-rm-name)
- [`stattic env set NAME VALUE`](#stattic-env-set-name-value)
- [`stattic firewall`](#stattic-firewall)
- [`stattic firewall add`](#stattic-firewall-add)
- [`stattic firewall ls`](#stattic-firewall-ls)
- [`stattic firewall rm RULE`](#stattic-firewall-rm-rule)
- [`stattic help [COMMAND]`](#stattic-help-command)
- [`stattic init`](#stattic-init)
- [`stattic inspect TARGET`](#stattic-inspect-target)
- [`stattic keys`](#stattic-keys)
- [`stattic keys add NAME`](#stattic-keys-add-name)
- [`stattic keys get NAME`](#stattic-keys-get-name)
- [`stattic keys ls`](#stattic-keys-ls)
- [`stattic keys rm NAME`](#stattic-keys-rm-name)
- [`stattic link`](#stattic-link)
- [`stattic login`](#stattic-login)
- [`stattic logout`](#stattic-logout)
- [`stattic logs [TARGET] [KIND]`](#stattic-logs-target-kind)
- [`stattic open [TARGET]`](#stattic-open-target)
- [`stattic password clear`](#stattic-password-clear)
- [`stattic password set`](#stattic-password-set)
- [`stattic promote VERSION`](#stattic-promote-version)
- [`stattic provider OPERATION`](#stattic-provider-operation)
- [`stattic publish [DIR]`](#stattic-publish-dir)
- [`stattic rollback VERSION`](#stattic-rollback-version)
- [`stattic routing`](#stattic-routing)
- [`stattic routing compute`](#stattic-routing-compute)
- [`stattic routing inspect`](#stattic-routing-inspect)
- [`stattic settings`](#stattic-settings)
- [`stattic settings access-type`](#stattic-settings-access-type)
- [`stattic settings edge-cache`](#stattic-settings-edge-cache)
- [`stattic settings persistent-data`](#stattic-settings-persistent-data)
- [`stattic settings site-meta`](#stattic-settings-site-meta)
- [`stattic settings site-options`](#stattic-settings-site-options)
- [`stattic settings ssh-migration`](#stattic-settings-ssh-migration)
- [`stattic sftp`](#stattic-sftp)
- [`stattic sftp add USERNAME`](#stattic-sftp-add-username)
- [`stattic sftp disconnect`](#stattic-sftp-disconnect)
- [`stattic sftp get USERNAME`](#stattic-sftp-get-username)
- [`stattic sftp ls`](#stattic-sftp-ls)
- [`stattic sftp rm USERNAME`](#stattic-sftp-rm-username)
- [`stattic sftp sync [DIR]`](#stattic-sftp-sync-dir)
- [`stattic sftp sync pull [DIR]`](#stattic-sftp-sync-pull-dir)
- [`stattic sftp sync push [DIR]`](#stattic-sftp-sync-push-dir)
- [`stattic sftp sync status [DIR]`](#stattic-sftp-sync-status-dir)
- [`stattic sftp update USERNAME`](#stattic-sftp-update-username)
- [`stattic spaces`](#stattic-spaces)
- [`stattic spaces add`](#stattic-spaces-add)
- [`stattic spaces claim`](#stattic-spaces-claim)
- [`stattic spaces download`](#stattic-spaces-download)
- [`stattic spaces duplicate`](#stattic-spaces-duplicate)
- [`stattic spaces get`](#stattic-spaces-get)
- [`stattic spaces ls`](#stattic-spaces-ls)
- [`stattic spaces rm`](#stattic-spaces-rm)
- [`stattic spaces update`](#stattic-spaces-update)
- [`stattic status`](#stattic-status)
- [`stattic switch [TEAM]`](#stattic-switch-team)
- [`stattic teams`](#stattic-teams)
- [`stattic teams invitations`](#stattic-teams-invitations)
- [`stattic teams invitations add EMAIL`](#stattic-teams-invitations-add-email)
- [`stattic teams invitations cancel INVITATION`](#stattic-teams-invitations-cancel-invitation)
- [`stattic teams invitations ls`](#stattic-teams-invitations-ls)
- [`stattic teams invitations resend INVITATION`](#stattic-teams-invitations-resend-invitation)
- [`stattic teams ls`](#stattic-teams-ls)
- [`stattic teams members`](#stattic-teams-members)
- [`stattic teams members ls`](#stattic-teams-members-ls)
- [`stattic teams members rm MEMBER`](#stattic-teams-members-rm-member)
- [`stattic teams switch [TEAM]`](#stattic-teams-switch-team)
- [`stattic versions`](#stattic-versions)
- [`stattic versions ls`](#stattic-versions-ls)
- [`stattic whoami`](#stattic-whoami)
- [`stattic wp`](#stattic-wp)
- [`stattic wp software`](#stattic-wp-software)
- [`stattic wp version VERSION`](#stattic-wp-version-version)

## `stattic analytics`

Print runtime analytics.

```
USAGE
  $ stattic analytics [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--range 24h|7d|30d]

FLAGS
  --range=<option>  [default: 24h] Analytics range.
                    <options: 24h|7d|30d>

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Print runtime analytics.

  Print runtime analytics series.
```

## `stattic autocomplete [SHELL]`

Display autocomplete installation instructions.

```
USAGE
  $ stattic autocomplete [SHELL] [-r]

ARGUMENTS
  [SHELL]  (zsh|bash|powershell) Shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  Display autocomplete installation instructions.

EXAMPLES
  $ stattic autocomplete

  $ stattic autocomplete bash

  $ stattic autocomplete zsh

  $ stattic autocomplete powershell

  $ stattic autocomplete --refresh-cache
```

_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.46/src/commands/autocomplete/index.ts)_

## `stattic backups`

Manage backups.

```
USAGE
  $ stattic backups [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage backups.

  Manage backups for a PHP or WordPress space.
```

## `stattic backups add [TYPE]`

Create a backup.

```
USAGE
  $ stattic backups add [TYPE] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  [TYPE]  Backup type: fs or db. Defaults to fs.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Create a backup.

  Request an on-demand backup for a PHP or WordPress space.
```

## `stattic backups download BACKUP`

Download a backup.

```
USAGE
  $ stattic backups download BACKUP [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [-f <value>]

ARGUMENTS
  BACKUP  Backup ID to download.

FLAGS
  -f, --output=<value>  Output file path.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Download a backup.

  Download a backup archive.
```

## `stattic backups get BACKUP`

Show backup details.

```
USAGE
  $ stattic backups get BACKUP [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  BACKUP  Backup ID to inspect.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show backup details.

  Show backup details and download path.
```

## `stattic backups ls`

List backups.

```
USAGE
  $ stattic backups ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List backups.

  List backups for a PHP or WordPress space.
```

## `stattic backups rm BACKUP`

Delete an on-demand backup.

```
USAGE
  $ stattic backups rm BACKUP [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  BACKUP  Backup ID to delete.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Delete an on-demand backup.

  Request deletion for an on-demand backup.
```

## `stattic cache`

Manage cache.

```
USAGE
  $ stattic cache [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage cache.

  Inspect and purge runtime cache for a space.
```

## `stattic cache purge`

Purge runtime cache.

```
USAGE
  $ stattic cache purge [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--action invalidate|delete] [--target space|domain|path] [--value <value>]

FLAGS
  --action=<option>  [default: invalidate] Cache purge action.
                     <options: invalidate|delete>
  --target=<option>  [default: space] Cache purge target.
                     <options: space|domain|path>
  --value=<value>    Domain hostname or path when target requires a value.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Purge runtime cache.

  Queue a runtime cache purge.
```

## `stattic certs`

Manage certs.

```
USAGE
  $ stattic certs [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage certs.

  Manage custom certificates and SSL settings for a PHP or WordPress space.
```

## `stattic certs activate CERTIFICATE`

Activate a custom certificate.

```
USAGE
  $ stattic certs activate CERTIFICATE [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>] [--domains <value>]

ARGUMENTS
  CERTIFICATE  Certificate ID to activate.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

CERTIFICATE FLAGS
  --domains=<value>  Comma-separated domains to activate the certificate for.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Activate a custom certificate.

  Activate a staged custom certificate.
```

## `stattic certs add`

Stage a custom certificate.

```
USAGE
  $ stattic certs add [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--domains <value>] [--certificate <value>] [--certificate-file <value>] [--private-key <value>]
    [--private-key-file <value>] [--csr <value>] [--csr-file <value>] [--trusted-certificates <value>]
    [--trusted-certificates-file <value>] [--client-certificate <value>] [--client-certificate-file <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

CERTIFICATE FLAGS
  --certificate=<value>                PEM certificate or chain.
  --certificate-file=<value>           Path to a PEM certificate or chain file.
  --client-certificate=<value>         PEM client certificate for mTLS.
  --client-certificate-file=<value>    Path to a PEM client certificate file.
  --csr=<value>                        PEM certificate signing request.
  --csr-file=<value>                   Path to a PEM certificate signing request file.
  --domains=<value>                    Comma-separated domains for the certificate.
  --private-key=<value>                PEM private key.
  --private-key-file=<value>           Path to a PEM private key file.
  --trusted-certificates=<value>       PEM trusted CA certificates.
  --trusted-certificates-file=<value>  Path to a PEM trusted CA certificates file.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Stage a custom certificate.

  Stage a custom certificate.
```

## `stattic certs deactivate CERTIFICATE`

Deactivate a custom certificate.

```
USAGE
  $ stattic certs deactivate CERTIFICATE [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>]

ARGUMENTS
  CERTIFICATE  Certificate ID to deactivate.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Deactivate a custom certificate.

  Deactivate a custom certificate.
```

## `stattic certs get [CERTIFICATE]`

Show custom certificate details.

```
USAGE
  $ stattic certs get [CERTIFICATE] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>]

ARGUMENTS
  [CERTIFICATE]  Certificate ID. Omit to show the active certificate.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show custom certificate details.

  Show custom certificate details.
```

## `stattic certs ls`

List custom certificates.

```
USAGE
  $ stattic certs ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List custom certificates.

  List custom certificates for a PHP or WordPress space.
```

## `stattic certs retry`

Retry SSL issuance.

```
USAGE
  $ stattic certs retry --domain <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

SSL FLAGS
  --domain=<value>  (required) Domain name.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Retry SSL issuance.

  Retry SSL issuance for a domain.
```

## `stattic certs rm CERTIFICATE`

Delete a custom certificate.

```
USAGE
  $ stattic certs rm CERTIFICATE [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>]

ARGUMENTS
  CERTIFICATE  Certificate ID to delete.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Delete a custom certificate.

  Delete an inactive custom certificate.
```

## `stattic certs settings`

Manage SSL settings.

```
USAGE
  $ stattic certs settings [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage SSL settings.

  Manage SSL settings for a PHP or WordPress space domain.
```

## `stattic certs settings android-compat`

Update Android compatibility.

```
USAGE
  $ stattic certs settings android-compat --domain <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>] [--enabled]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

SSL FLAGS
  --domain=<value>  (required) Domain name.
  --[no-]enabled    Enable the setting. Use --no-enabled to disable.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Update Android compatibility.

  Enable or disable SSL Android compatibility.
```

## `stattic certs settings get`

Show SSL information.

```
USAGE
  $ stattic certs settings get --domain <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

SSL FLAGS
  --domain=<value>  (required) Domain name.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show SSL information.

  Show SSL information for a domain.
```

## `stattic certs settings hsts-preload disable`

Disable HSTS preload.

```
USAGE
  $ stattic certs settings hsts-preload disable --domain <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

SSL FLAGS
  --domain=<value>  (required) Domain name.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Disable HSTS preload.

  Disable HSTS preload for a domain.
```

## `stattic certs settings hsts-subdomain`

Update HSTS includeSubDomains.

```
USAGE
  $ stattic certs settings hsts-subdomain --domain <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>] [--enabled]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

SSL FLAGS
  --domain=<value>  (required) Domain name.
  --[no-]enabled    Enable the setting. Use --no-enabled to disable.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Update HSTS includeSubDomains.

  Enable or disable HSTS includeSubDomains for a domain.
```

## `stattic certs settings social-crawler-redirect`

Update social crawler redirects.

```
USAGE
  $ stattic certs settings social-crawler-redirect --domain <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>] [--enabled]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

SSL FLAGS
  --domain=<value>  (required) Domain name.
  --[no-]enabled    Enable the setting. Use --no-enabled to disable.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Update social crawler redirects.

  Enable or disable social crawler redirects.
```

## `stattic certs update CERTIFICATE`

Update a custom certificate.

```
USAGE
  $ stattic certs update CERTIFICATE [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>] [--domains <value>] [--certificate <value>] [--certificate-file <value>]
    [--private-key <value>] [--private-key-file <value>] [--csr <value>] [--csr-file <value>] [--trusted-certificates
    <value>] [--trusted-certificates-file <value>] [--client-certificate <value>] [--client-certificate-file <value>]

ARGUMENTS
  CERTIFICATE  Certificate ID to update.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

CERTIFICATE FLAGS
  --certificate=<value>                PEM certificate or chain.
  --certificate-file=<value>           Path to a PEM certificate or chain file.
  --client-certificate=<value>         PEM client certificate for mTLS.
  --client-certificate-file=<value>    Path to a PEM client certificate file.
  --csr=<value>                        PEM certificate signing request.
  --csr-file=<value>                   Path to a PEM certificate signing request file.
  --domains=<value>                    Comma-separated domains for the certificate.
  --private-key=<value>                PEM private key.
  --private-key-file=<value>           Path to a PEM private key file.
  --trusted-certificates=<value>       PEM trusted CA certificates.
  --trusted-certificates-file=<value>  Path to a PEM trusted CA certificates file.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Update a custom certificate.

  Update a custom certificate.
```

## `stattic certs validate`

Validate a custom certificate.

```
USAGE
  $ stattic certs validate [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--domains <value>] [--certificate <value>] [--certificate-file <value>] [--private-key <value>]
    [--private-key-file <value>] [--csr <value>] [--csr-file <value>] [--trusted-certificates <value>]
    [--trusted-certificates-file <value>] [--client-certificate <value>] [--client-certificate-file <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

CERTIFICATE FLAGS
  --certificate=<value>                PEM certificate or chain.
  --certificate-file=<value>           Path to a PEM certificate or chain file.
  --client-certificate=<value>         PEM client certificate for mTLS.
  --client-certificate-file=<value>    Path to a PEM client certificate file.
  --csr=<value>                        PEM certificate signing request.
  --csr-file=<value>                   Path to a PEM certificate signing request file.
  --domains=<value>                    Comma-separated domains for the certificate.
  --private-key=<value>                PEM private key.
  --private-key-file=<value>           Path to a PEM private key file.
  --trusted-certificates=<value>       PEM trusted CA certificates.
  --trusted-certificates-file=<value>  Path to a PEM trusted CA certificates file.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Validate a custom certificate.

  Validate a custom certificate without staging it.
```

## `stattic crons`

Manage cron entries.

```
USAGE
  $ stattic crons [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage cron entries.

  Manage cron entries for a PHP or WordPress space.
```

## `stattic crons add`

Create a cron entry.

```
USAGE
  $ stattic crons add --schedule <value> --command <value> [--json] [--api-url <value>] [--token <value>] [-y]
    [--claim-token <value>] [-o <value>] [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

CRON FLAGS
  --command=<value>   (required) Command to run.
  --schedule=<value>  (required) Cron schedule.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Create a cron entry.

  Create a cron entry. Schedules support hourly, daily, twicedaily, weekly, shorthand like 2h, or full crontab
  expressions.
```

## `stattic crons ls`

List cron entries.

```
USAGE
  $ stattic crons ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List cron entries.

  List cron entries for a PHP or WordPress space.
```

## `stattic crons rm CRON`

Remove a cron entry.

```
USAGE
  $ stattic crons rm CRON [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  CRON  Cron ID to remove.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Remove a cron entry.

  Remove a cron entry.
```

## `stattic crons update CRON`

Update a cron entry.

```
USAGE
  $ stattic crons update CRON --command <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>]

ARGUMENTS
  CRON  Cron ID to update.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

CRON FLAGS
  --command=<value>  (required) New command to run.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Update a cron entry.

  Update the command for a cron entry.
```

## `stattic db`

Manage database.

```
USAGE
  $ stattic db [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage database.

  Manage PHP or WordPress space database access.
```

## `stattic db phpmyadmin`

Open phpMyAdmin access.

```
USAGE
  $ stattic db phpmyadmin [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Open phpMyAdmin access.

  Create a temporary phpMyAdmin URL for a PHP or WordPress space.
```

## `stattic db reset-password`

Reset the database password.

```
USAGE
  $ stattic db reset-password [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Reset the database password.

  Request a database password reset for a PHP or WordPress space.
```

## `stattic deploy [DIR]`

Build and deploy to Stattic.

```
USAGE
  $ stattic deploy [DIR] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [-n <value>] [--spa auto|true|false] [--git-branch <value>] [--git-commit <value>]
    [--git-ref <value>] [--git-repository <value>] [--source-type direct-upload|git] [--dry-run] [--wait]
    [--wait-timeout <value>] [--root-directory <value>] [--install-command <value>] [--build-command <value>]
    [--output-directory <value>] [--skip-install] [--skip-build] [--allow-unsupported-platform-features]

ARGUMENTS
  [DIR]  Repository directory to build and deploy. Defaults to the current directory.

SPACE METADATA FLAGS
  -n, --name=<value>  Set the space title.
      --spa=<option>  [default: auto] Control single-page app fallback detection.
                      <options: auto|true|false>

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

MIGRATION FLAGS
  --allow-unsupported-platform-features  Deploy even when imported platform config includes features Stattic cannot
                                         convert.

BUILD FLAGS
  --build-command=<value>     Build command. Defaults to framework and package script detection.
  --install-command=<value>   Install command. Defaults to package-manager detection.
  --output-directory=<value>  Build output directory relative to the app root.
  --root-directory=<value>    Repository subdirectory that contains the app.
  --skip-build                Skip the build command and publish the output directory as-is.
  --skip-install              Skip the install command.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

EXECUTION FLAGS
  --dry-run               Print the detected build plan without installing, building, or publishing.
  --[no-]wait             Wait until queued publish work finishes before returning.
  --wait-timeout=<value>  [default: 900] Seconds to wait for the version to become ready.

VERSION SOURCE FLAGS
  --git-branch=<value>      [env: STATTIC_GIT_BRANCH] Git branch name to record on the version.
  --git-commit=<value>      [env: STATTIC_GIT_COMMIT] Git commit SHA to record on the version.
  --git-ref=<value>         [env: STATTIC_GIT_REF] Git ref to record on the version.
  --git-repository=<value>  [env: STATTIC_GIT_REPOSITORY] Git repository to record on the version, for example
                            owner/repo.
  --source-type=<option>    [env: STATTIC_SOURCE_TYPE] Version source type to record.
                            <options: direct-upload|git>

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Build and deploy to Stattic.

  Detect build settings, run the build, and publish the output directory to Stattic.

EXAMPLES
  Build the current repository and publish it.

    $ stattic deploy

  Build a monorepo app and publish its output.

    $ stattic deploy --root-directory apps/web --output-directory dist
```

## `stattic doctor`

Diagnose Stattic CLI setup.

```
USAGE
  $ stattic doctor [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Diagnose Stattic CLI setup.

  Check local CLI state, auth, API reachability, and space selection for the current directory.
```

## `stattic domains`

Manage domains.

```
USAGE
  $ stattic domains [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage domains.

  Manage space domains.
```

## `stattic domains add HOSTNAME`

Attach a domain.

```
USAGE
  $ stattic domains add HOSTNAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--wait] [--redirect-to <value> --role standard|redirect]

ARGUMENTS
  HOSTNAME  Hostname to attach.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DOMAIN BEHAVIOR FLAGS
  --redirect-to=<value>  Destination for redirect domains.
  --role=<option>        How the domain should behave.
                         <options: standard|redirect>

EXECUTION FLAGS
  --[no-]wait  Wait until queued work finishes before returning.

DESCRIPTION
  Attach a domain.

  Create a domain in the space team, attach it to the space, and queue a DNS check.
```

## `stattic domains check DOMAIN`

Check a domain.

```
USAGE
  $ stattic domains check DOMAIN [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--wait]

ARGUMENTS
  DOMAIN  Domain ID or hostname.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]wait  Wait until queued work finishes before returning.

DESCRIPTION
  Check a domain.

  Queue a DNS/provider readiness check for an attached domain.
```

## `stattic domains diagnostics DOMAIN`

Inspect domain diagnostics.

```
USAGE
  $ stattic domains diagnostics DOMAIN [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  DOMAIN  Domain ID or hostname.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Inspect domain diagnostics.

  Read live DNS and SSL diagnostics for an attached domain.
```

## `stattic domains ls`

List space domains.

```
USAGE
  $ stattic domains ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List space domains.

  List domains attached to a space.
```

## `stattic domains rm DOMAIN`

Remove a domain.

```
USAGE
  $ stattic domains rm DOMAIN [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--wait]

ARGUMENTS
  DOMAIN  Domain ID or hostname.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]wait  Wait until queued publish work finishes before returning.

DESCRIPTION
  Remove a domain.

  Remove a domain assignment from a space.
```

## `stattic env`

Manage env vars.

```
USAGE
  $ stattic env [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage env vars.

  Manage space environment variables.
```

## `stattic env ls`

List space variables.

```
USAGE
  $ stattic env ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--show-values]

FLAGS
  --show-values  Print plaintext variable values.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List space variables.

  List space variables.
```

## `stattic env pull`

Pull variables.

```
USAGE
  $ stattic env pull [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--format env|json]

FLAGS
  --format=<option>  [default: env] Output format.
                     <options: env|json>

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Pull variables.

  Pull effective space and shared variables.
```

## `stattic env rm NAME`

Delete a space variable.

```
USAGE
  $ stattic env rm NAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  NAME  Variable name.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Delete a space variable.

  Delete a space variable.
```

## `stattic env set NAME VALUE`

Set a space variable.

```
USAGE
  $ stattic env set NAME VALUE [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>]

ARGUMENTS
  NAME   Variable name.
  VALUE  Variable value.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Set a space variable.

  Create or update a space variable. Values are sent to the API and are not printed back.
```

## `stattic firewall`

Manage firewall rules.

```
USAGE
  $ stattic firewall [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage firewall rules.

  Manage egress firewall rules for a PHP or WordPress space.
```

## `stattic firewall add`

Create a firewall rule.

```
USAGE
  $ stattic firewall add --port <value> --destination <value> [--json] [--api-url <value>] [--token <value>] [-y]
    [--claim-token <value>] [-o <value>] [--space <value>] [--action allow|deny] [--protocol tcp|udp]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

FIREWALL FLAGS
  --action=<option>      [default: allow] Firewall action.
                         <options: allow|deny>
  --destination=<value>  (required) Destination IP address or CIDR range.
  --port=<value>         (required) Destination port.
  --protocol=<option>    [default: tcp] Protocol.
                         <options: tcp|udp>

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Create a firewall rule.

  Create an egress firewall rule for a PHP or WordPress space.
```

## `stattic firewall ls`

List firewall rules.

```
USAGE
  $ stattic firewall ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List firewall rules.

  List egress firewall rules for a PHP or WordPress space.
```

## `stattic firewall rm RULE`

Remove a firewall rule.

```
USAGE
  $ stattic firewall rm RULE [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  RULE  Firewall rule ID to remove.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Remove a firewall rule.

  Remove a firewall rule.
```

## `stattic help [COMMAND]`

Display help for stattic.

```
USAGE
  $ stattic help [COMMAND...] [-n]

ARGUMENTS
  [COMMAND...]  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for stattic.
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.45/src/commands/help.ts)_

## `stattic init`

Create .stattic config files.

```
USAGE
  $ stattic init [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [-f] [--mode website|files] [--spa auto|true|false] [--title <value>]

EXECUTION FLAGS
  -f, --force  Overwrite existing .stattic/config.json.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

SPACE METADATA FLAGS
  --mode=<option>  [default: website] Default space mode.
                   <options: website|files>
  --spa=<option>   [default: auto] Default SPA fallback behavior.
                   <options: auto|true|false>
  --title=<value>  Default space title.

DESCRIPTION
  Create .stattic config files.

  Create .stattic/config.json for a space. Pass --space to also bind this directory to a remote space (writes
  .stattic/state.json).

EXAMPLES
  Write a default .stattic/config.json in the current directory.

    $ stattic init

  Initialize config and link the current directory to space `docs`.

    $ stattic init --space docs
```

## `stattic inspect TARGET`

Inspect a space by ID, slug, URL, or domain.

```
USAGE
  $ stattic inspect TARGET [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

ARGUMENTS
  TARGET  Space ID, slug, live URL, or domain.

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Inspect a space by ID, slug, URL, or domain.

  Look up a space by ID, slug, live URL, or attached domain. Prints space details, live version, and runtime state.

EXAMPLES
  Inspect by slug.

    $ stattic inspect docs

  Inspect by live URL.

    $ stattic inspect https://docs.stattic.net

  Inspect by ID in a specific team.

    $ stattic inspect prj_abc123 --team acme
```

## `stattic keys`

Manage public keys.

```
USAGE
  $ stattic keys [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage public keys.

  Manage reusable public keys for PHP or WordPress spaces.
```

## `stattic keys add NAME`

Create or update a reusable public key.

```
USAGE
  $ stattic keys add NAME --public-key <value> [--json] [--api-url <value>] [--token <value>] [-y]
    [--claim-token <value>] [-o <value>] [--space <value>] [--category <value>]

ARGUMENTS
  NAME  Public key name.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

PUBLIC KEYS FLAGS
  --category=<value>    [default: sftp] alias public-key category.
  --public-key=<value>  (required) SSH public key in authorized_keys format.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Create or update a reusable public key.

  Create or update a reusable public key. Use the returned URI as an SFTP public key.
```

## `stattic keys get NAME`

Show a reusable public key.

```
USAGE
  $ stattic keys get NAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--category <value>]

ARGUMENTS
  NAME  Public key name.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

PUBLIC KEYS FLAGS
  --category=<value>  [default: sftp] alias public-key category.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show a reusable public key.

  Show a reusable public key.
```

## `stattic keys ls`

List reusable public keys.

```
USAGE
  $ stattic keys ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--category <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

PUBLIC KEYS FLAGS
  --category=<value>  [default: sftp] alias public-key category.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List reusable public keys.

  List reusable public keys for a PHP or WordPress space.
```

## `stattic keys rm NAME`

Remove a reusable public key.

```
USAGE
  $ stattic keys rm NAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--category <value>]

ARGUMENTS
  NAME  Public key name.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

PUBLIC KEYS FLAGS
  --category=<value>  [default: sftp] alias public-key category.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Remove a reusable public key.

  Remove a reusable public key.
```

## `stattic link`

Link the current directory to a space.

```
USAGE
  $ stattic link [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Link the current directory to a space.

  Resolve an existing space by --space and save it to .stattic/state.json in the current directory. Use this to bind a
  local directory to a remote space without publishing.

EXAMPLES
  Link the current directory to a space by slug.

    $ stattic link --space my-space

  Link the current directory to a space by id in a specific team.

    $ stattic link --space prj_abc123 --team acme
```

## `stattic login`

Log in to Stattic.

```
USAGE
  $ stattic login [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Log in to Stattic.

  Authenticate this machine with browser device login, or save a provided access token.

EXAMPLES
  Start browser-assisted device login.

    $ stattic login

  Store a token for non-interactive use.

    $ stattic login --token st_...
```

## `stattic logout`

Log out of Stattic.

```
USAGE
  $ stattic logout [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Log out of Stattic.

  Delete the local login and revoke the CLI-minted token when possible.
```

## `stattic logs [TARGET] [KIND]`

Print runtime activity.

```
USAGE
  $ stattic logs [TARGET] [KIND] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>] [--limit <value>]

ARGUMENTS
  [TARGET]  Space ID, slug, live URL, or domain. Defaults to the linked space.
  [KIND]    Activity kind: builds, access, or runtime. Defaults to builds.

FLAGS
  --limit=<value>  [default: 50] Maximum number of log entries.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Print runtime activity.

  Print runtime activity logs for a space. Pass a target to operate on any space without --space.

EXAMPLES
  Tail logs for the linked space.

    $ stattic logs

  Tail logs for space `docs`.

    $ stattic logs docs

  Tail access logs for a space by URL.

    $ stattic logs https://docs.stattic.net access
```

## `stattic open [TARGET]`

Open a space in your browser.

```
USAGE
  $ stattic open [TARGET] [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

ARGUMENTS
  [TARGET]  Space ID, slug, live URL, or domain. Defaults to the linked space.

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Open a space in your browser.

  Open a space's live URL in the default browser.

EXAMPLES
  Open the linked space.

    $ stattic open

  Open space `docs` by slug.

    $ stattic open docs
```

## `stattic password clear`

Clear space password protection.

```
USAGE
  $ stattic password clear [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--wait]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]wait  Wait until queued publish work finishes before returning.

DESCRIPTION
  Clear space password protection.

  Disable space password protection.
```

## `stattic password set`

Set space password protection.

```
USAGE
  $ stattic password set [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--stdin] [--wait]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

INPUT FLAGS
  --stdin  Read the password from stdin instead of prompting.

EXECUTION FLAGS
  --[no-]wait  Wait until queued publish work finishes before returning.

DESCRIPTION
  Set space password protection.

  Enable or replace space password protection.
```

## `stattic promote VERSION`

Promote a version to production.

```
USAGE
  $ stattic promote VERSION [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--wait] [--wait-timeout <value>]

ARGUMENTS
  VERSION  Version ID, ref, or number to make live, for example ver_123, v12, or 12.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]wait             Wait until queued publish work finishes before returning.
  --wait-timeout=<value>  [default: 900] Seconds to wait for the version to become live.

DESCRIPTION
  Promote a version to production.

  Promote an existing ready version to production. Use `rollback` to roll back to an older version instead.

EXAMPLES
  Make version v12 live.

    $ stattic promote v12

  Queue promotion and print the operation as JSON.

    $ stattic promote ver_123 --no-wait --json
```

## `stattic provider OPERATION`

Run hosting provider operations.

```
USAGE
  $ stattic provider OPERATION [--json] [--api-url <value>] [--token <value>] [-y] [--client <value>]
    [--domain <value>] [--key <value>] [--value <value>] [--action <value>] [--type <value>] [--id <value>] [--site
    <value>] [--response-ticket-id <value>] [--start <value>] [--end <value>] [--metric <value>] [--dimension <value>]
    [--summarize] [--keep] [--body <value>]

ARGUMENTS
  OPERATION  Hosting provider operation.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

PROVIDER FLAGS
  --action=<value>              Provider action argument.
  --body=<value>                JSON request body for provider operations.
  --client=<value>              Provider client name.
  --dimension=<value>           Dimension name or JSON dimension array.
  --domain=<value>              Domain argument for domain operations.
  --end=<value>                 Unix end timestamp.
  --id=<value>                  Job or task ID.
  --[no-]keep                   Keep the previous domain as an alias when changing the primary domain.
  --key=<value>                 Key or metrics key argument.
  --metric=<value>              Metric name or JSON metric array.
  --response-ticket-id=<value>  Response ticket ID.
  --site=<value>                Provider site ID or domain.
  --start=<value>               Unix start timestamp.
  --summarize                   Request metrics summary.
  --type=<value>                Provider type argument.
  --value=<value>               JSON value for client-meta operations.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Run hosting provider operations.

  Run superadmin hosting provider operations. Requires a superadmin Stattic token.
```

## `stattic publish [DIR]`

Publish files to Stattic.

```
USAGE
  $ stattic publish [DIR] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [-n <value>] [--spa auto|true|false] [--git-branch <value>] [--git-commit <value>]
    [--git-ref <value>] [--git-repository <value>] [--source-type direct-upload|git] [--dry-run] [--runtime
    static|php|wordpress] [--type static|php|wordpress] [--lamp] [--wait] [--wait-timeout <value>]

ARGUMENTS
  [DIR]  File or directory to publish. Defaults to the current directory.

SPACE METADATA FLAGS
  -n, --name=<value>      Set the space title.
      --lamp              Deprecated for publish. Use spaces create --type php.
      --runtime=<option>  Space type for a new Static space. PHP and WordPress use spaces create.
                          <options: static|php|wordpress>
      --spa=<option>      [default: auto] Control single-page app fallback detection.
                          <options: auto|true|false>
      --type=<option>     Space type for a new Static space. PHP and WordPress use spaces create.
                          <options: static|php|wordpress>

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

EXECUTION FLAGS
  --dry-run               Build the publish plan without creating spaces, uploading files, or writing state.
  --[no-]wait             Wait until queued publish work finishes before returning.
  --wait-timeout=<value>  [default: 900] Seconds to wait for the version to become ready.

VERSION SOURCE FLAGS
  --git-branch=<value>      [env: STATTIC_GIT_BRANCH] Git branch name to record on the version.
  --git-commit=<value>      [env: STATTIC_GIT_COMMIT] Git commit SHA to record on the version.
  --git-ref=<value>         [env: STATTIC_GIT_REF] Git ref to record on the version.
  --git-repository=<value>  [env: STATTIC_GIT_REPOSITORY] Git repository to record on the version, for example
                            owner/repo.
  --source-type=<option>    [env: STATTIC_SOURCE_TYPE] Version source type to record.
                            <options: direct-upload|git>

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Publish files to Stattic.

  Publish a file or directory to a Stattic space. Without --space, the CLI creates or reuses the space saved in
  .stattic/state.json.

EXAMPLES
  Publish a build directory.

    $ stattic publish ./dist

  Publish with explicit SPA fallback and space title.

    $ stattic publish ./dist --spa true --name docs

  Update an existing space and print machine-readable output.

    $ stattic publish ./dist --space pr-preview --json
```

## `stattic rollback VERSION`

Roll back to a previous version.

```
USAGE
  $ stattic rollback VERSION [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--wait] [--wait-timeout <value>]

ARGUMENTS
  VERSION  Version ID, ref, or number to make live, for example ver_123, v12, or 12.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]wait             Wait until queued publish work finishes before returning.
  --wait-timeout=<value>  [default: 900] Seconds to wait for the version to become live.

DESCRIPTION
  Roll back to a previous version.

  Roll production back to an existing ready version. Use `versions ls` to find a version.

EXAMPLES
  List versions and find the target rollback version.

    $ stattic versions ls

  Make version v12 live.

    $ stattic rollback v12

  Make version v12 live for a selected space.

    $ stattic rollback 12 --space docs
```

## `stattic routing`

Routing utilities.

```
USAGE
  $ stattic routing [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Routing utilities.

  Inspect routing configuration and compute redirects/headers.
```

## `stattic routing compute`

Compute routing.

```
USAGE
  $ stattic routing compute [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Compute routing.

  Resolve the latest deployment's _redirects and _headers with current variables.
```

## `stattic routing inspect`

Inspect local routing files.

```
USAGE
  $ stattic routing inspect [--json] [--api-url <value>] [--token <value>] [-y] [-r <value>] [--url <value>...]

FLAGS
  -r, --routing=<value>  [default: .] Directory containing _redirects and _headers to inspect.
      --url=<value>...   URL or path to match against local routing rules. Repeat for multiple URLs.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Inspect local routing files.

  Compile local _redirects and _headers files and optionally match URLs against the compiled rules.
```

## `stattic settings`

Manage settings.

```
USAGE
  $ stattic settings [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage settings.

  Manage advanced site controls for a PHP or WordPress space.
```

## `stattic settings access-type`

Set site access type.

```
USAGE
  $ stattic settings access-type --type ssh|sftp|legacy [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

SETTINGS FLAGS
  --type=<option>  (required) access type.
                   <options: ssh|sftp|legacy>

DESCRIPTION
  Set site access type.

  Set the site access type for a PHP or WordPress space.
```

## `stattic settings edge-cache`

Run an edge cache action.

```
USAGE
  $ stattic settings edge-cache --action on|off|ddos|purge [--json] [--api-url <value>] [--token <value>] [-y]
    [--claim-token <value>] [-o <value>] [--space <value>] [--domain <value>] [--timestamp <value>] [--purge-uris
    <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

SETTINGS FLAGS
  --action=<option>     (required) Edge cache action.
                        <options: on|off|ddos|purge>
  --domain=<value>      Domain for a domain-specific purge.
  --purge-uris=<value>  Comma-separated URIs to purge.
  --timestamp=<value>   Unix timestamp for DDoS mode. Use 0 to disable or -1 indefinitely.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Run an edge cache action.

  Run a raw edge cache action for a PHP or WordPress space.
```

## `stattic settings persistent-data`

Set persistent site data.

```
USAGE
  $ stattic settings persistent-data --key <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>] [--value <value>] [--delete]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

SETTINGS FLAGS
  --delete         Remove this persistent data key.
  --key=<value>    (required) Persistent data key.
  --value=<value>  Persistent data value.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Set persistent site data.

  Set or remove persistent site data for a PHP or WordPress space.
```

## `stattic settings site-meta`

Manage site meta.

```
USAGE
  $ stattic settings site-meta --key <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>]
    [-o <value>] [--space <value>] [--action get|add|update|remove] [--value <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

SETTINGS FLAGS
  --action=<option>  [default: get] Site meta action.
                     <options: get|add|update|remove>
  --key=<value>      (required) Site meta key.
  --value=<value>    Site meta value for add or update.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Manage site meta.

  Read or change site meta for a PHP or WordPress space.
```

## `stattic settings site-options`

Update raw site options.

```
USAGE
  $ stattic settings site-options --options <value> [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token
    <value>] [-o <value>] [--space <value>] [--type atomic|wpcom]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

SETTINGS FLAGS
  --options=<value>  (required) JSON options payload.
  --type=<option>    [default: atomic] Provider site identifier type.
                     <options: atomic|wpcom>

DESCRIPTION
  Update raw site options.

  Update raw WordPress site options for a PHP or Wp space.
```

## `stattic settings ssh-migration`

Allow incoming SSH migration.

```
USAGE
  $ stattic settings ssh-migration [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Allow incoming SSH migration.

  Allow an incoming SSH migration for a PHP or WordPress space. This cannot be undone.
```

## `stattic sftp`

Manage SFTP.

```
USAGE
  $ stattic sftp [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage SFTP.

  Manage SFTP users and file sync for a PHP or WordPress space.
```

## `stattic sftp add USERNAME`

Create an SFTP user.

```
USAGE
  $ stattic sftp add USERNAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--password <value>] [--public-key <value>]

ARGUMENTS
  USERNAME  SFTP username to create.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

SFTP USER FLAGS
  --password=<value>    Password for the SFTP user. Omit for a generated password.
  --public-key=<value>  SSH public key in authorized_keys format.

DESCRIPTION
  Create an SFTP user.

  Create an SFTP user for a PHP or WordPress space. Omit --password to generate one.
```

## `stattic sftp disconnect`

Disconnect active SFTP sessions.

```
USAGE
  $ stattic sftp disconnect [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Disconnect active SFTP sessions.

  Disconnect all active SFTP sessions for a PHP or WordPress space.
```

## `stattic sftp get USERNAME`

Show SFTP user details.

```
USAGE
  $ stattic sftp get USERNAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  USERNAME  SFTP username to inspect.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show SFTP user details.

  Show raw details for an SFTP user.
```

## `stattic sftp ls`

List SFTP users.

```
USAGE
  $ stattic sftp ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List SFTP users.

  List SFTP users for a PHP or WordPress space.
```

## `stattic sftp rm USERNAME`

Remove an SFTP user.

```
USAGE
  $ stattic sftp rm USERNAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  USERNAME  SFTP username to remove.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Remove an SFTP user.

  Remove an SFTP user from a PHP or WordPress space.
```

## `stattic sftp sync [DIR]`

Sync files over SFTP.

```
USAGE
  $ stattic sftp sync [DIR] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--backup] [--delete] [--diff] [--dry-run] [--no-purge] [--prefer local|remote|skip]
    [--remote-root <value>] [--tui]

ARGUMENTS
  [DIR]  Local directory to sync.

FLAGS
  -y, --yes                  Apply without prompting.
      --backup               Request an fs backup before applying risky changes.
      --delete               Apply deletes. Deletes are skipped by default.
      --diff                 Show text diffs or binary metadata in the preview.
      --dry-run              Preview the sync plan without applying changes.
      --no-purge             Skip runtime cache purge after remote writes.
      --prefer=<option>      [default: skip] Resolve conflicts by preferring local files, remote files, or skipping.
                             <options: local|remote|skip>
      --remote-root=<value>  Remote SFTP root. Defaults to the login directory.
      --tui                  Render diffs through OpenTUI when --diff is enabled.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Sync files over SFTP.

  Preview and apply bidirectional SFTP file sync.
```

## `stattic sftp sync pull [DIR]`

Pull files over SFTP.

```
USAGE
  $ stattic sftp sync pull [DIR] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--backup] [--delete] [--diff] [--dry-run] [--no-purge] [--prefer local|remote|skip]
    [--remote-root <value>] [--tui]

ARGUMENTS
  [DIR]  Local directory to pull into.

FLAGS
  -y, --yes                  Apply without prompting.
      --backup               Request an fs backup before applying risky changes.
      --delete               Delete local files missing remotely.
      --diff                 Show text diffs or binary metadata in the preview.
      --dry-run              Preview the pull plan without applying changes.
      --no-purge             Skip runtime cache purge after remote writes.
      --prefer=<option>      [default: remote] Conflict preference.
                             <options: local|remote|skip>
      --remote-root=<value>  Remote SFTP root. Defaults to the login directory.
      --tui                  Render diffs through OpenTUI when --diff is enabled.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Pull files over SFTP.

  Pull remote SFTP files locally after previewing the plan.
```

## `stattic sftp sync push [DIR]`

Push files over SFTP.

```
USAGE
  $ stattic sftp sync push [DIR] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--backup] [--delete] [--diff] [--dry-run] [--no-purge] [--prefer local|remote|skip]
    [--remote-root <value>] [--tui]

ARGUMENTS
  [DIR]  Local directory to push.

FLAGS
  -y, --yes                  Apply without prompting.
      --backup               Request an fs backup before applying risky changes.
      --delete               Delete remote files missing locally.
      --diff                 Show text diffs or binary metadata in the preview.
      --dry-run              Preview the push plan without applying changes.
      --no-purge             Skip runtime cache purge after remote writes.
      --prefer=<option>      [default: local] Conflict preference.
                             <options: local|remote|skip>
      --remote-root=<value>  Remote SFTP root. Defaults to the login directory.
      --tui                  Render diffs through OpenTUI when --diff is enabled.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Push files over SFTP.

  Push local files to SFTP after previewing the plan.
```

## `stattic sftp sync status [DIR]`

Show SFTP sync status.

```
USAGE
  $ stattic sftp sync status [DIR] [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--delete] [--diff] [--prefer local|remote|skip] [--remote-root <value>] [--tui]

ARGUMENTS
  [DIR]  Local directory to inspect.

FLAGS
  --delete               Include delete operations in the plan.
  --diff                 Show text diffs or binary metadata in the preview.
  --prefer=<option>      [default: skip] Resolve conflicts by preferring local files, remote files, or skipping.
                         <options: local|remote|skip>
  --remote-root=<value>  Remote SFTP root. Defaults to the login directory.
  --tui                  Render diffs through OpenTUI when --diff is enabled.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show SFTP sync status.

  Show the SFTP sync plan without applying changes.
```

## `stattic sftp update USERNAME`

Update an SFTP user.

```
USAGE
  $ stattic sftp update USERNAME [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>] [--password <value>] [--public-key <value>]

ARGUMENTS
  USERNAME  SFTP username to update.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

SFTP USER FLAGS
  --password=<value>    New password for the SFTP user.
  --public-key=<value>  New SSH public key in authorized_keys format.

DESCRIPTION
  Update an SFTP user.

  Update an SFTP user's password or SSH public key.
```

## `stattic spaces`

Manage spaces.

```
USAGE
  $ stattic spaces [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage spaces.

  Manage Stattic spaces.
```

## `stattic spaces add`

Create an empty space.

```
USAGE
  $ stattic spaces add [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>] [-n <value>] [--spa
    auto|true|false] [--title <value>] [--slug <value>] [--type static|php|wordpress] [--runtime static|php|wordpress]
    [--mode website|files] [--save-state]

SPACE METADATA FLAGS
  -n, --name=<value>      Set the space title.
      --mode=<option>     Static space mode.
                          <options: website|files>
      --runtime=<option>  Space type: static, php, or wordpress.
                          <options: static|php|wordpress>
      --slug=<value>      Set the space slug.
      --spa=<option>      [default: auto] Control single-page app fallback detection.
                          <options: auto|true|false>
      --title=<value>     Set the space title. Alias for --name.
      --type=<option>     Space type: static, php, or wordpress.
                          <options: static|php|wordpress>

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]save-state  Write the created space to .stattic/state.json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Create an empty space.

  Create an empty Static, PHP, or WordPress space and save it to .stattic/state.json.

EXAMPLES
  Create an empty Static space.

    $ stattic spaces add --type static --name docs

  Create an empty PHP space in a team.

    $ stattic spaces add --type php --team acme --slug docs-php

  Create an empty WordPress space in a team.

    $ stattic spaces add --type wordpress --team acme
```

## `stattic spaces claim`

Claim an anonymous space.

```
USAGE
  $ stattic spaces claim [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--wait]

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]wait  Wait until queued publish work finishes before returning.

DESCRIPTION
  Claim an anonymous space.

  Move a saved anonymous space into your account. If needed, the CLI starts browser login first.

EXAMPLES
  Claim the space saved in the current directory.

    $ stattic spaces claim

  Claim a space into a specific team.

    $ stattic spaces claim --claim-token claim_xxx --team my-team
```

## `stattic spaces download`

Download a space version.

```
USAGE
  $ stattic spaces download [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [-o <value>] [--overwrite] [-j <value>] [-v <value>]

FLAGS
  -j, --concurrency=<value>  [default: 10] Number of files to download at the same time.
  -o, --output=<value>       [default: .] Directory to write downloaded files into.
  -v, --version=<value>      [default: latest] Version ID, version ref, number, or "latest".
      --overwrite            Overwrite files that already exist in the output directory.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Download a space version.

  Download files from a space version. Defaults to the latest version.
```

## `stattic spaces duplicate`

Duplicate a space with a download-and-publish copy.

```
USAGE
  $ stattic spaces duplicate [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--slug <value>] [--title <value>] [--version <value>] [--wait] [--wait-timeout <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DUPLICATE TARGET FLAGS
  --slug=<value>   Slug for the duplicate space.
  --title=<value>  Title for the duplicate space.

DUPLICATE SOURCE FLAGS
  --version=<value>  Version to duplicate. Defaults to the live version.

EXECUTION FLAGS
  --[no-]wait             Wait until queued publish work finishes before returning.
  --wait-timeout=<value>  [default: 900] Seconds to wait for the duplicate to become ready.

DESCRIPTION
  Duplicate a space with a download-and-publish copy.

  Download an existing space version and publish those files as a new space.
```

## `stattic spaces get`

Show a space.

```
USAGE
  $ stattic spaces get [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Show a space.

  Resolve a space from --space or .stattic/state.json and print its live runtime state, current version, and runtime
  details.
```

## `stattic spaces ls`

List spaces.

```
USAGE
  $ stattic spaces ls [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>] [--limit <value>]

FLAGS
  --limit=<value>  Maximum number of spaces to return (default 50, max 200).

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  List spaces.

  List spaces accessible to the current login, optionally filtered by team.
```

## `stattic spaces rm`

Delete a space.

```
USAGE
  $ stattic spaces rm [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--wait]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

EXECUTION FLAGS
  --[no-]wait  Wait until queued publish work finishes before returning.

DESCRIPTION
  Delete a space.

  Queue deletion for the selected space.
```

## `stattic spaces update`

Patch space metadata.

```
USAGE
  $ stattic spaces update [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>] [--wait] [--mode website|files] [--spa true|false] [--title <value>] [--viewer-description
    <value>] [--viewer-og-image-path <value>] [--viewer-title <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

SITE METADATA FLAGS
  --mode=<option>  Serving mode.
                   <options: website|files>
  --spa=<option>   Enable or disable SPA fallback.
                   <options: true|false>
  --title=<value>  Space title.

VIEWER METADATA FLAGS
  --viewer-description=<value>    Social preview description. Pass null to clear.
  --viewer-og-image-path=<value>  Social preview image path. Pass null to clear.
  --viewer-title=<value>          Viewer page title. Pass null to clear.

EXECUTION FLAGS
  --[no-]wait  Wait until queued publish work finishes before returning.

DESCRIPTION
  Patch space metadata.

  Patch space serving metadata and generated viewer metadata.
```

## `stattic status`

Show CLI status.

```
USAGE
  $ stattic status [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Show CLI status.

  Show authenticated user, default team, and the space the current directory is linked to.
```

## `stattic switch [TEAM]`

Switch teams.

```
USAGE
  $ stattic switch [TEAM] [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

ARGUMENTS
  [TEAM]  Team slug, ID, or name.

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Switch teams.

  Set the default team for future CLI commands.
```

## `stattic teams`

Manage teams.

```
USAGE
  $ stattic teams [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage teams.

  Manage teams and members.
```

## `stattic teams invitations`

Manage team invitations.

```
USAGE
  $ stattic teams invitations [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage team invitations.

  Manage team invitations.
```

## `stattic teams invitations add EMAIL`

Create a team invitation.

```
USAGE
  $ stattic teams invitations add EMAIL [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>] [--role
    owner|admin|member]

ARGUMENTS
  EMAIL  Email address to invite.

FLAGS
  --role=<option>  [default: member] Role to grant when the invitation is accepted.
                   <options: owner|admin|member>

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Create a team invitation.

  Invite a person to a team.
```

## `stattic teams invitations cancel INVITATION`

Cancel a team invitation.

```
USAGE
  $ stattic teams invitations cancel INVITATION [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

ARGUMENTS
  INVITATION  Invitation id.

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Cancel a team invitation.

  Cancel a team invitation.
```

## `stattic teams invitations ls`

List team invitations.

```
USAGE
  $ stattic teams invitations ls [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  List team invitations.

  List pending and historical team invitations.
```

## `stattic teams invitations resend INVITATION`

Resend a team invitation.

```
USAGE
  $ stattic teams invitations resend INVITATION [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

ARGUMENTS
  INVITATION  Invitation id.

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Resend a team invitation.

  Resend a pending team invitation.
```

## `stattic teams ls`

List teams.

```
USAGE
  $ stattic teams ls [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  List teams.

  List teams available to the current login.
```

## `stattic teams members`

Manage team members.

```
USAGE
  $ stattic teams members [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage team members.

  Manage team members.
```

## `stattic teams members ls`

List team members.

```
USAGE
  $ stattic teams members ls [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  List team members.

  List members in a team.
```

## `stattic teams members rm MEMBER`

Remove a team member.

```
USAGE
  $ stattic teams members rm MEMBER [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

ARGUMENTS
  MEMBER  Member id or email.

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Remove a team member.

  Remove a member from a team.
```

## `stattic teams switch [TEAM]`

Set default team.

```
USAGE
  $ stattic teams switch [TEAM] [--json] [--api-url <value>] [--token <value>] [-y] [-o <value>]

ARGUMENTS
  [TEAM]  Team slug, ID, or name.

SPACE SELECTION FLAGS
  -o, --team=<value>  [env: STATTIC_TEAM] Team slug, ID, or name.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Set default team.

  Set the default team for future CLI publishes.
```

## `stattic versions`

Manage versions.

```
USAGE
  $ stattic versions [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage versions.

  List, promote, and roll back space versions.
```

## `stattic versions ls`

List space versions.

```
USAGE
  $ stattic versions ls [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o <value>]
    [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List space versions.

  List space versions and mark the live and currently deploying entries.
```

## `stattic whoami`

Show the current Stattic account.

```
USAGE
  $ stattic whoami [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Show the current Stattic account.

  Verify the active token and print the authenticated account.
```

## `stattic wp`

Manage WordPress.

```
USAGE
  $ stattic wp [--json] [--api-url <value>] [--token <value>] [-y]

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

GLOBAL FLAGS
  --json  Format output as json.

AUTHENTICATION FLAGS
  --token=<value>  [env: STATTIC_TOKEN] Access token for non-interactive auth.

DESCRIPTION
  Manage WordPress.

  Manage WordPress runtime settings for a PHP or WordPress space.
```

## `stattic wp software`

Manage plugin and theme software.

```
USAGE
  $ stattic wp software --slug <value> --action
    activate|install|activate-locked|install-locked|deactivate|remove|lock|unlock [--json] [--api-url <value>] [--token
    <value>] [-y] [--claim-token <value>] [-o <value>] [--space <value>]

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

SOFTWARE FLAGS
  --action=<option>  (required) Software action.
                     <options: activate|install|activate-locked|install-locked|deactivate|remove|lock|unlock>
  --slug=<value>     (required) Plugin or theme software slug.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Manage plugin and theme software.

  Manage plugin and theme software actions for a PHP or WordPress space.
```

## `stattic wp version VERSION`

Set the WordPress version channel.

```
USAGE
  $ stattic wp version VERSION [--json] [--api-url <value>] [--token <value>] [-y] [--claim-token <value>] [-o
    <value>] [--space <value>]

ARGUMENTS
  VERSION  Managed WordPress version channel: latest, previous, or beta.

SPACE SELECTION FLAGS
  -o, --team=<value>   [env: STATTIC_TEAM] Team slug, ID, or name.
      --space=<value>  [env: STATTIC_SPACE] Space ID, live URL, domain, or slug.

GLOBAL FLAGS
  -y, --yes              [env: STATTIC_YES] Skip confirmation prompts.
      --api-url=<value>  [default: https://api.stattic.net, env: STATTIC_API_URL] Stattic API base URL.

AUTHENTICATION FLAGS
  --claim-token=<value>  [env: STATTIC_CLAIM_TOKEN] Anonymous space claim token.
  --token=<value>        [env: STATTIC_TOKEN] Access token for non-interactive auth.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Set the WordPress version channel.

  Set the managed WordPress version channel.
```

<!-- commandsstop -->

## Common Workflows

````bash
stattic publish [dir] [--spa auto|true|false] [--name name] [--token token] [--json]
stattic publish [dir] --dry-run [--json]
stattic init [--title name] [--mode website|files] [--spa auto|true|false]
stattic doctor [--json]
stattic claim [--team team] [--token token]
stattic delete [--space ref] [--json]
stattic login [--token token]
stattic logout
stattic whoami
stattic inspect [--space ref]
stattic versions [--space ref]
stattic rollback <version> [--space ref]
stattic promote <version> [--space ref]
stattic deploy [dir] [--root-directory path] [--output-directory dist] [--skip-install] [--skip-build]
stattic sync [--space ref] [--no-wait]
stattic routing compute [--space ref]
stattic duplicate [--space ref] [--title value] [--slug value] [--team team]
stattic variables
stattic variables list [--show-values]
stattic variables pull [--format env|json]
stattic variables set <name> <value>
stattic variables delete <name>
stattic domains
stattic domains add <hostname> [--role standard|redirect] [--redirect-to hostname] [--no-wait]
stattic domains check <domain-id-or-hostname> [--no-wait]
stattic teams default [team]
stattic teams members [--team team]
stattic teams invitations [--team team]
stattic teams invitations create <email> [--role owner|admin|member]
stattic teams invitations resend <invitation>
stattic teams invitations cancel <invitation>
stattic metadata patch [--title value] [--mode website|files] [--spa true|false]
printf '%s\n' "$PASSWORD" | stattic password set --stdin [--no-wait]
stattic password clear [--no-wait]
```text

`publish` defaults to the current directory. `--spa auto` is the default and only
enables SPA fallback when the output strongly looks like a single-page app.
`delete` removes the current space selected by `.stattic/state.json`, or the
space passed with `--space`.

The CLI is oclif-native. Use `stattic help` or `stattic <command> --help` for
generated command docs, strict flag validation, aliases, grouped flags,
environment-variable hints, and examples. Use `stattic autocomplete` to install
shell completions.

## Output and errors

Use `--json` on any Stattic command for machine-readable output. Errors
use the same shape everywhere:

```json
{
  "error": {
    "code": "auth_required",
    "message": "No access token available. Run `stattic login` first.",
    "details": {}
  }
}
````

Stable exit codes:

- `0`: success
- `1`: unexpected error
- `2`: validation error
- `10`: auth required or invalid token
- `20`: resource not found
- `30`: conflict
- `40`: network/API reachability failure
- `50`: wait timeout

## Agent examples

````bash
stattic doctor --json
stattic teams --json
stattic teams default my-team
stattic init --title "Docs" --mode website
stattic publish ./dist --dry-run --json
stattic publish ./dist --json --wait
stattic publish ./dist --space docs --json --no-wait
stattic domains add docs.example.com --space docs --json --wait
```text

## Auth

Interactive login uses browser device authorization:

```bash
npx stattic-cli login
````

For CI, pass `--token` or set `STATTIC_TOKEN`.

Authenticated first publishes use your default team. If your account has
one team, the CLI stores it automatically after login or the first
authenticated publish. If you belong to multiple teams, set the default
once:

````bash
npx stattic-cli teams default my-team
```text

You can still override a single command with `--team`.

Anonymous publishes save the claim token locally and print a browser claim URL.
To keep publishing and managing an anonymous space:

```bash
npx stattic-cli claim
````

If you are not logged in, `claim` starts login first, then moves the saved space
into your account.
