GZ266 CLI
Create, build, and publish plugins and themes from the command line. Version 6.0.0.
Install
# From the monorepo (development) cd packages/gz-cli && npm install && npm run build node dist/cli.js --help # Or link globally npm link gz --help
Commands
gz plugin create <name>— Create a new plugin with plugin.json. Options:-d, --dir <path>,-t, --type system | app(default: system).gz plugin build— Build plugin into a .tar.gz archive. Options:-d, --dir <path>,-o, --out <path>.gz plugin publish— Publish to the marketplace. Options:--api-url <url>,--token <token>.
Environment variables
GZ_API_URL— API base URL (default:http://localhost:3001). Used bypublishwhen--api-urlis not set.GZ_TOKEN— JWT access token for publish. Use when--tokenis not passed.
Manifest format: see plugin.json in a created project or the repo docs (e.g. PLUGIN-MANIFEST.md) if present.