Skip to content

Command Line (blaze)

Blaze ships with a blaze command-line tool that mirrors core app actions from your terminal. Run WP-CLI against the right PHP version, tail logs, open a shell in a site’s directory, start and stop sites — all without leaving the terminal.

The CLI talks to the running Blaze app over a local Unix socket, so the app must be running. No headless mode.

  1. Open Settings → Command Line
  2. Click Install CLI — Blaze symlinks /usr/local/bin/blaze to the bundled binary (requires your admin password)
  3. When prompted, allow Blaze to install shell tab completion for zsh, bash, or fish
  4. Verify with blaze --version

To remove the CLI, open the same pane and click Uninstall CLI.

Commands that take a [site] argument resolve the site in this order:

  1. Explicit positional argument: blaze start myblog
  2. --site flag: blaze start --site myblog
  3. Current working directory — if you cd into a site’s folder (or any subfolder), blaze detects it automatically. blaze wp with no site argument just works.

If you mistype a site name, the CLI suggests the closest match:

Error: no site named "myblg". Did you mean "myblog"?
Terminal window
blaze list # list all sites (alias: ls)
blaze info [site] # site metadata, URL, PHP version, status
blaze doctor # check CLI ↔ app connection, PATH, completions
blaze --version
Terminal window
blaze start [site]
blaze stop [site]
blaze restart [site]
blaze open [site] # open the site URL in your browser
Terminal window
blaze wp [site] -- <wp-cli args> # runs WP-CLI with the site's PHP version
blaze php [site] -- <args> # invokes the site's PHP binary
blaze shell [site] # spawns $SHELL with PATH and cwd set to the site

Examples:

Terminal window
blaze wp myblog -- plugin install woocommerce --activate
blaze wp -- user list # uses cwd detection
blaze php -- -v # show PHP version for the current site
Terminal window
blaze logs [site] # tail the nginx error log
blaze logs [site] --follow # stream new lines as they appear
blaze logs [site] --php # PHP-FPM log instead of nginx
Terminal window
blaze tunnel start [site]
blaze tunnel stop [site]
blaze tunnel status

These require an active Blaze Pro license. Without one, the CLI exits with a clear upgrade message.

  • --json — machine-readable JSON output (supported on commands that have output)
  • --site <name> — override cwd detection
  • --quiet — suppress non-essential output
  • --help, --version

Example:

Terminal window
blaze list --json | jq '.[] | select(.status == "running")'

Completion is installed automatically during CLI setup. To install or reinstall it later:

Terminal window
blaze completion install --shell zsh # or bash, fish
blaze completion uninstall

Completion covers commands, flags, and live site names — press TAB after blaze start to see the current list.

CodeMeaning
0Success
1Generic error
2Bad usage / unknown command
3Site not found
4Blaze app not running
5Pro license required

The CLI requires the Blaze app to be open. Launch Blaze.app and try again — the CLI does not auto-start the app.

”Installed (different version — reinstall)”

Section titled “”Installed (different version — reinstall)””

You’re running a newer Blaze app than the CLI binary on disk. Open Settings → Command Line and click Install CLI again.

blaze doctor checks the symlink target, socket reachability, version match, and PATH. Run it first whenever something feels off.