OpenDaemon

CLI Guide

Command reference, status model, and operational patterns for dmn.

The dmn CLI manages services defined in dmn.json.

Runtime behavior

  • If an extension daemon is running for the same config, CLI commands route to it.
  • Otherwise, commands use the local CLI supervisor runtime.

See Runtime Model for details.

Command reference

CommandPurpose
dmn --helpShow command help
dmn --versionShow CLI version
dmn start [service]Start all services, or one service with dependencies
dmn stop [service]Stop all services, or one service
dmn restart <service>Restart one service
dmn status [service]Show status for all services, or one service
dmn daemonRun daemon mode (extension RPC server)
dmn mcpRun MCP server mode
dmn mcp --checkValidate MCP setup and config, then exit

All service commands support -c, --config <path> and default to dmn.json.

Common usage

# start everything
dmn start

# start one service + dependencies
dmn start frontend

# check all statuses
dmn status

# check one service status
dmn status frontend

# restart one service
dmn restart frontend

# stop everything
dmn stop

Status values

  • Not Started
  • Starting
  • Running
  • Stopped
  • Failed (exit code: N)

Config path best practice

Use an absolute config path when commands run outside your workspace shell:

dmn start --config /absolute/path/to/dmn.json

CLI troubleshooting

  • No dmn.json found: pass --config or run in the correct folder.
  • Not routing to extension daemon: confirm extension is open on the same workspace/config.
  • Service stuck in Starting: verify ready_when pattern/URL and timeout values.

On this page