Introduction
The DeesseJS CLI.
The @deessejs/cli npm package provides the deessejs command for discovering and scaffolding templates, inspecting blocks, publishing immutable managed releases, and signing in to the DeesseJS server. After scaffolding, the generated project runs independently of the CLI.
What the CLI does
- Browse the registry:
deessejs listshows every template, optionally filtered by category. - Inspect a template:
deessejs info <slug>prints metadata plus the install line. - Scaffold a template:
deessejs init <slug-or-github-url>uses the repository'sdeesse-template.json, detects the package manager, and installs dependencies. - Publish a managed release:
deessejs template publish --slug <slug> --destination <organization-or-deessejs>uploads the current committed descriptor and selected files as an immutable version.deessejs block publishpublishes a block release. - Request a catalog listing:
deessejs organization template request-listing <organization> <slug> --confirm-distribution-rightsasks for catalog review. It neither publishes a managed release nor approves a catalog entry. - Inspect blocks:
deessejs block inforeads block metadata.deessejs block checkchecks a local or GitHub block source. - Sign in:
deessejs auth loginopens the browser for a device-flow approval. The CLI stores the resulting token at~/.deessejs/auth.json.
Use deessejs --help to see the top-level commands and deessejs <command> --help for command options. deessejs --version prints the installed version.
Install
# Use once, no install
npx --yes @deessejs/cli@latest init <slug>
# Or install globally
npm install -g @deessejs/cli
deessejs init <slug>The release workflow publishes stable releases to npm’s latest channel. It can also publish an on-demand prerelease of the current staging branch to npm’s canary channel. Pull requests receive temporary previews through pkg.pr.new.
Requirements
- Node.js 22.14.0 or newer: declared in
apps/cli/package.json.npxand global installs both enforce it. - GitHub access: required by
initto download the repository archive and read its descriptor. - A package manager:
pnpm,npm,yarn, orbun.initpicks one based on the generated project. Override with--pm <name>.
The CLI defaults to https://app.deessejs.com. Set DEESSEJS_API_URL to use another API host, for example in development, integration, or test environments.
What the CLI doesn't do
- It doesn't host templates. They live in GitHub repositories, and the CLI uses each repository's descriptor to select files.
- The API stores managed releases as private R2 artifacts. It checks and seals each archive, then returns short-lived download links after access checks. The catalog uses a placeholder when a repository has no preview image.
- It doesn't manage your environment variables. Templates ship
.env.examplefiles. Copy one and add your values. - It doesn't deploy. Use your platform's tools to deploy the generated project, such as Vercel, Expo Application Services (EAS), or Cloudflare.
Where to go next
- CLI: Authentication: use the optional device sign-in commands.
- CLI: Commands Reference: every flag, every exit code.
- CLI: Blocks: inspect block descriptors.