CLI
The ZhinNX CLI is named zz. It is designed to remove repetitive work from setup, build, deploy config, and debugging.
Current install status
If ZhinNX is already published to npm, install it globally.
npm install -g zhinnx@betaIf you are testing the source ZIP or the GitHub repository before npm release, use the local CLI.
cd zhinnx-cli
npm install --package-lock=false --no-audit --no-fund
node bin/zz.js --help
node bin/zz.js create my-appYou can also link the command locally.
chmod +x bin/zz.js
npm link
zz --helpCreate
zz create my-appProject creation is explicit. Bare commands like zz my-app are not supported, so typos such as zz crete show an error and help instead of accidentally creating a folder.
Create with template
zz create my-app --template landing
zz create my-app --template dashboard
zz create my-app --template music-app
zz create my-app --template adminRead the Templates guide for every template.
Create with deploy target
zz create my-app --vercel
zz create my-app --netlify
zz create my-app --vercel --netlifyThese flags generate provider config during project creation. Read the Deployment guide for how the generated files work.
Run generated project
cd my-app
npm install --package-lock=false --no-audit --no-fund
npm run devBuild
zz buildThe build command generates a static output directory that can be served by Vercel, Netlify, or any static host.
Update deploy config
zz update --vercel
zz update --netlify
zz update --allUse this after changing project settings or adding deploy targets.
Deploy
zz deploy --vercel
zz deploy --netlify
zz deploy --allDeploy commands wrap provider CLIs. You still need provider authentication from Vercel or Netlify. If authentication fails, run the provider CLI login command first.
Migrate React + Vite
zz migrate react --syntax=jsx
zz migrate react --syntax=tsx --vercel --netlifyMigration updates package.json scripts, adds zhinnx@beta to devDependencies, writes zz.config.json, and preserves your React source files. After migrating, run:
npm install --package-lock=false --no-audit --no-fund
npm run devFor production builds on Vercel or Netlify, zhinnx must be in project dependencies because the host runs npm run build in a clean environment.
Debug
zz dev --debugThis starts the dev server with the debug overlay enabled. It helps inspect current route, registered pages, state, action calls, API requests, and last errors.
Safe fallback
If zz is not available yet, run the CLI through Node.
node bin/zz.js create my-app --template landing
node bin/zz.js build
node bin/zz.js dev --debug