CLI

Run a command with npx @tryzine/cli <command>. For local release testing, install the CLI tarball and run ./node_modules/.bin/zine from that project.

Install and connect

Command What it does
init Detects Next.js or Astro, proposes file changes, and applies them after approval. An interactive install offers sign-in after scaffolding.
detect --json Prints a read-only profile of the project, including the framework, routes, package manager, and layout.
plan --json Prints the install operations without applying them.
apply --plan-file plan.json Applies a reviewed plan. It also accepts a plan on stdin.
login Opens device approval and writes the selected site’s keys and API URL to .env.local.
doctor Reports the runtime version, scaffold status, credential presence, and admin reachability.
update Updates the installed runtime and offers any registered migrations for the version change.
--version Prints the CLI version.
npx @tryzine/cli plan --json > plan.json
npx @tryzine/cli apply --plan-file plan.json
npx @tryzine/cli login
npx @tryzine/cli doctor

Use --cwd <path> to target another project. --agent streams events and reads approvals on stdin. --json suppresses prompts. Use --yes to approve prompts from a script. init --dry-run --yes generates the plan without applying it, and init --no-login skips the interactive connection step.

Login and doctor use the hosted admin by default. Pass --api <origin> to target another environment. --dev uses https://localhost:8001. If that development server uses a self-signed certificate, add --insecure-localhost to allow it for that loopback connection.

Local project tools

  • brand scans brand assets and writes .zine/brand.json.
  • theme list lists the runtime’s themes. theme state, theme apply --slug <slug>, and theme refine --key <token> --value <value> manage local theme settings.
  • pages list, pages scan, and pages scaffold <file> inspect App Router pages and propose editable slots.
  • import webflow <zip> reads a Webflow export. Zine admin also has import tools for Ghost, Substack, and Beehiiv.