Skip to content

CLI Commands Reference ​

Reference guide for all commands and options available in the acodez CLI.


Global Options ​

These options apply to all commands or control CLI output behavior:

Option / VariableDescription
-q, --quietSuppress all decorative banners, spinners, and info logs; emit only critical errors
-V, --versionOutput the current version of the CLI
-h, --helpDisplay usage instructions and available command flags
NO_COLOR=1Disable ANSI color sequences (also honored automatically when stdout is non-TTY)

acodez init [dir] ​

Initializes a new Acode plugin directory.

bash
acodez init my-plugin [options]

Options ​

OptionDescriptionDefault
-y, --yesSkip interactive prompts and use defaultsfalse
-n, --name <name>Plugin display name"My Acode Plugin"
-i, --id <id>Plugin ID (must match ^[a-z][a-z0-9._]{3,49}$)"com.example.plugin"
-v, --ver <version>Initial plugin version"1.0.0"
--author-name <name>Author display name"Acode Developer"
--author-email <email>Author contact email""
--author-github <user>Author GitHub handle""
-r, --repository <url>GitHub Repository URL""
-l, --license <license>License type"MIT"
-p, --price <price>Price in INR0
-o, --obfuscateEnable production obfuscation flagfalse
--lang <language>Template language (TypeScript or JavaScript)"TypeScript"
--skip-installSkip automatic dependency installationfalse
--pm <manager>Package manager to use (bun, pnpm, npm, or yarn)"bun"
--no-gitSkip initializing a Git repositoryfalse

acodez dev ​

Starts the local development server with direct-to-device zero-restart hot reloading.

bash
acodez dev [options]

Options ​

OptionDescriptionDefault
-p, --port <port>Port to run development server on3000
-H, --host <host>Host address to bind development server to"0.0.0.0"

Endpoints & Shortcuts ​

  • Endpoints:
    • http://<host>:<port>/plugin.zip — Compiled plugin package for initial installation.
    • http://<host>:<port>/plugin.json — Live manifest metadata.
    • http://<host>:<port>/main.js — Live compiled plugin script with cache-busting headers.
    • ws://<host>:<port> — WebSocket bridge for console streaming and HMR signals.
  • Shortcuts:
    • r — Manually trigger reload broadcast to all connected Acode instances.
    • q — Cleanly exit and dispose of watchers.

acodez build ​

Compiles and packages the plugin for production release.

bash
acodez build [options]

Options ​

OptionDescription
--cleanWipe dist/ and plugin.zip before compilation
-o, --obfuscateForce enable code obfuscation
--no-obfuscateForce disable code obfuscation
--jsonOutput production build metrics and asset sizes as structured JSON
-q, --quietSuppress spinners and decorative output (exits with code 0 on success)
  • Minifies JavaScript and compiled CSS for Chrome 90+ WebViews.
  • Optimizes images inside assets/ and compresses icon.png under store limits.
  • Outputs production statistics report with file sizes.

acodez lint ​

Runs the multi-engine code health and type-safety analyzer.

bash
acodez lint [options]

Options ​

OptionDescription
--fixAutomatically resolve fixable linting and formatting issues
--typesRun deep TypeScript compiler diagnostics (tsc)
--no-cacheDisable persistent caching and re-analyze all files
--jsonOutput linting issues and compiler diagnostics in structured JSON format
-q, --quietSuppress banners and spinners; exits non-zero on failure

acodez scan ​

Runs local security and compliance analysis using the native Rust plugin_scanner binary.

bash
acodez scan [options]

Options ​

OptionDescription
--jsonOutput raw scanner diagnostic results as JSON
-q, --quietSuppress non-essential logs and scanner progress messages
  • Inspects AST and manifest metadata.
  • Reports security violations, risky APIs, or oversize icon assets before store submission.

acodez publish ​

Builds, scans, and uploads your plugin directly to the official Acode Store registry via Bearer API Key.

bash
acodez publish [options]

Options ​

OptionDescription
-k, --key <apiKey>Bearer API Key (acode_...) from acode.app/api-keys
--dry-runCompile and run pre-flight scans without uploading to the store

Workflow ​

  1. Resolves API key from --key, ACODE_API_KEY environment variable, or ~/.acodez/apiKey.
  2. Compiles production bundle and crushes assets.
  3. Runs pre-flight security scan with plugin_scanner.
  4. Checks if the plugin exists on https://acode.app/api/plugin/<id>.
  5. Submits new plugins (POST /api/plugin) or publishes updates (PUT /api/plugin) with changelog attachment.

Built with precision by Rugved.