Skip to main content
Create a Lettercamp publication with the setup command. It copies the starter bundled with your CLI version, asks for a directory and preset, and installs the CLI inside your project.

Create with npm

npx create-lettercamp@latest runs the same setup. If you already have a global CLI installation, use lettercamp new my-publication. The destination must be new or empty. If you omit it, interactive setup asks for a directory with my-lettercamp as the default. Without a terminal, unanswered questions use defaults.

Setup options

With npm create, place options after --:
Presets apply initial settings and page metadata. You can edit the generated settings and articles after setup; there is no ongoing preset dependency. The starter includes sample articles, a React calculator, custom header and footer examples, local images, and the fonts used by these presets. Setup applies the selected preset and omits the presets/ input folder from your new project. See Project structure for what to edit.

Optional: start with remote assets

By default, setup includes local images and fonts. Add --remote-assets if you prefer to start with hosted URLs, for example before connecting a new publication through GitHub publishing:
With an existing CLI installation:
You can combine this option with --preset, --yes, and --no-install. Setup writes hosted image URLs into the articles and settings, selects hosted fonts, and omits the starter’s public/ directory. These assets are already hosted; creation does not upload them or require a Lettercamp account. Viewing them requires an internet connection. Sites created through Lettercamp Cloud use the same starter with remote assets, so starter images are available immediately in the rich editor. This option only affects creation; images and other media you add later still follow the normal Cloud asset requirements.

Project-local CLI

Setup creates a package.json with a pinned CLI version and these scripts: For other commands, use npx lettercamp, for example npx lettercamp --help. Existing global CLI installations are unchanged. If you used --no-install or dependency installation failed, run npm install inside the created directory before using the scripts. See Project structure for the generated files.