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

# CLI reference

> Find Lettercamp commands and focused guides for setup, preview, authentication, uploads, publishing, domains, and static builds.

Use the Lettercamp CLI to create, preview, and publish a publication. Each guide
below documents one command or workflow, including its options and examples.

In a project created with `npm create lettercamp@latest`, run commands as
`npx lettercamp <command>`. A global installation also supports
`lettercamp <command>` directly.

## Command reference

| Command | Purpose |
| - | - |
| [`lettercamp new [directory]`](https://www.lettercamp.com/docs/cli/new) | Create a publication from the starter. |
| [`lettercamp connect <code>`](https://www.lettercamp.com/docs/cli/connect) | Connect an agent and download a cloud site's source. |
| [`lettercamp pull`](https://www.lettercamp.com/docs/cli/connect#pull-remote-changes) | Fetch remote source while preserving local edits. |
| [`lettercamp push`](https://www.lettercamp.com/docs/cli/connect#develop-and-push-a-preview) | Save a checkpoint and build a cloud preview without publishing. |
| [`lettercamp status`](https://www.lettercamp.com/docs/cli/connect#pull-remote-changes) | Show local/remote changes and preview build errors. |
| [`lettercamp posts <command>`](https://www.lettercamp.com/docs/cli/connect#write-a-shared-post) | Find, read, create, and revise shared posts in the cloud editor. |
| [`lettercamp assets list`](https://www.lettercamp.com/docs/cli/upload) | Search the connected site's media library and recover previous uploads. |
| [`lettercamp publish`](https://www.lettercamp.com/docs/cli/connect#publish-saved-posts) | Queue all saved page changes using a publishing-enabled connection. |
| [`lettercamp dev`](https://www.lettercamp.com/docs/cli/dev) | Preview your publication with live reload. |
| [`lettercamp check`](https://www.lettercamp.com/docs/cli/check) | Check imports and build a temporary Cloud deployment copy without uploading. |
| [`lettercamp deploy`](https://www.lettercamp.com/docs/publishing/deploy) | Create a site on first use, then update this folder's site. |
| [`lettercamp deploy --new`](https://www.lettercamp.com/docs/publishing/deploy#deploy-as-a-new-site) | Create another site and use it for future deployments from this folder. |
| [`lettercamp domain [address]`](https://www.lettercamp.com/docs/publishing/domains) | Connect a hostname or subfolder, or check and resume setup. |
| [`lettercamp domain remove`](https://www.lettercamp.com/docs/publishing/domains) | Disconnect the custom address after confirmation. |
| [`lettercamp login`](https://www.lettercamp.com/docs/cli/account) | Authorize the CLI through your browser. |
| [`lettercamp whoami`](https://www.lettercamp.com/docs/cli/account) | Show the signed-in account. |
| [`lettercamp logout`](https://www.lettercamp.com/docs/cli/account) | Revoke the current CLI session. |
| [`lettercamp upload <files...>`](https://www.lettercamp.com/docs/cli/upload) | Upload images, fonts, or videos and print their hosted URLs. |
| [`lettercamp build --site <url>`](https://www.lettercamp.com/docs/publishing/build) | Build a static publication for hosting. |
| [`lettercamp version`](https://www.lettercamp.com/docs/cli/installation#check-your-version) | Show the installed and latest published versions. |
| [`lettercamp update`](https://www.lettercamp.com/docs/cli/installation#update-the-cli) | Update the project's CLI, or use `--global` for a global npm installation. |
| [`lettercamp --version`](https://www.lettercamp.com/docs/cli/installation#check-your-version) | Show the installed version. |
| [`lettercamp --help`](https://www.lettercamp.com/docs/cli#command-reference) | List available commands. |

Add `--help` to a command to see its arguments and options:

```bash theme={null}
npx lettercamp build --help
```

## Setup and help

* [Install and update the CLI](https://www.lettercamp.com/docs/cli/installation.md), including Node.js requirements.
* [Subfolder hosting](https://www.lettercamp.com/docs/publishing/subfolders.md) for an address such as `example.com/blog`.
* [Troubleshooting](https://www.lettercamp.com/docs/cli/troubleshooting.md) for setup, preview, and publishing problems.
* [Content components](https://www.lettercamp.com/docs/components/overview.md) for supported article blocks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.