CLI V1
reference
7 min read

CLI Reference

Every OpenDash CMS workflow — running the HTTP server, scaffolding themes and plugins, creating scoped API tokens, extracting localization catalogs, tailing extension logs, or executing offline storage maintenance — ships inside the single opendash (opendash.exe) executable.

Server startup & dev flags

Running opendash with no subcommand starts the HTTP server directly, equivalent to opendash serve [SERVER_FLAGS].

FlagArgumentsBehavior
--dev—Enable development mode with live-reload and on-screen error overlay.
--dev-theme<dir>Mount a local Theme Format V1 directory live during development.
--dev-plugin<dir>Mount a local plugin directory live during development.
--allow-dev-remote—Allow non-loopback requests while running with --dev enabled.
--help / -h—Print CLI usage summary and exit 0 (also available as opendash help).
--version / -V—Print binary version string and exit 0.

Theme, plugin & validation commands

Developer subcommands validate manifests locally and package deterministic distributables before upload.

# Scaffold a Theme Format V1 folder or Plugin (js, rust, or as)
opendash new <theme|plugin> <slug> [--lang js|rust|as] [--dir <path>] [--force]

# Validate folder or .zip archive, or check config/site.json
opendash check <theme|plugin|config> [path]

# Package a validated directory into a .zip bundle (32 MiB theme limit)
opendash pack <theme|plugin> <dir> [--out <file.zip>]

# Tail extension logs from a running instance
opendash logs <id> [--owner plugin|theme] [--follow] [--limit <n>] [--url <url>] [--token <token>] [--json]

opendash pack skips .git, node_modules, target, .DS_Store, and *.swp files automatically, and rejects symlinks or path traversal entries.

AI, tokens, schemas & blueprints

Use these subcommands to provision machine credentials, inspect compiled schemas, or apply declarative infrastructure payloads:

CommandOptionsPurpose
opendash token create[--user <username>] --name <1..80 chars> [--expires-days <1..365>] [--preset <name>] [--scopes <csv>] [--json]Mint an od_pat_ Bearer token stored in SQLite (enforces per-user token cap).
opendash schema <kind>theme | block | plugin | blueprintPrint the exact JSON Schema compiled into the binary.
opendash docs --ai--aiPrint concise AI-first Markdown reference documentation to stdout.
opendash blueprint apply <file.json>[--dry-run] [--mode upsert|create_only] [--url <url>] [--token <token>] [--json]Apply a SiteBlueprintV1 payload locally against SitePaths or remotely via Bearer auth.
opendash mcpUses OPENDASH_URL & OPENDASH_TOKENRun the JSON-RPC 2.0 MCP server over standard input/output.

Offline storage & backup commands

opendash storage <command> [options] runs strictly offline (never boots HTTP servers or extension workers) to inspect storage format or run staged migrations.

  • Commands: status, plan, backup, prepare, migrate, verify, finalize, rollback.
  • Shared options: --site-root, --db-path, --output, --plan, --destination, --backup-receipt, --safety-receipt, --run, --bundle, --selections, and --raw-pre-prepare.

Legacy validation & L10n flags

opendash --check-theme <path>
opendash --check-plugin <path>
opendash --check-config
opendash --l10n-extract <src> --out <file.pot> [--domain <d>]
opendash --l10n-compile <file.po> --out <file.mo> [--pot <file.pot>]

Environment variables & precedence

Runtime configuration merges sources in strict precedence order: built-in defaults < config/site.json (max 64 KiB, symlinks rejected) < valid explicit environment variables.

VariableDefaultUsed By
OPENDASH_SITE_ROOTExecutable workspace directoryResolves database/, themes/, plugins/, uploads/, backups/, config/, runtime/.
OPENDASH_DB_PATH$OPENDASH_SITE_ROOT/database/opendash.sqliteOverrides exact SQLite database file path.
OPENDASH_PORT18766Loopback HTTP port parsed as u16.
OPENDASH_PUBLIC_ORIGINUnset (loopback)Canonical public origin URL trusted behind a TLS reverse proxy.
OPENDASH_LOG_LEVELConfigured defaultDiagnostic log verbosity (error, warn, info, debug, trace).
OPENDASH_URL / OPENDASH_TOKENUnsetTarget base URL and od_pat_ Bearer token for mcp, blueprint apply, and logs.

Continue to Architecture, Security & V1 Scope to inspect internal crate boundaries, sandbox limits, and explicit V1 boundaries.

Edit Source URL:

Search OpenDash

Use Arrow keys & Enter to navigate Full search page →