#mission-control

    The Mission Control command.

    mission-control version mission-control help mission-control config show

    Most commands are a noun and a verb, such as mission-control kb validate. mission-control kb lists the commands of the kb noun. Every command accepts --format text (the default) or --format jsonl, which writes one JSON record on each line of standard output; see the record schemas. Messages for people go to standard error.

    #Open Mission Control

    mission-control web # start the server if it does not run, and open the browser mission-control web . # add the current folder as a project and open it mission-control web --no-open # only print the link, alone on standard output mission-control status # the instances that run mission-control stop mission-control serve # run the server in this terminal, until Ctrl+C

    The server continues in the background when the command and the terminal end.

    mission-control desktop [FOLDER] opens the same page in the window of the desktop app. mission-control desktop install downloads and installs the app, and mission-control desktop update replaces it with the newest release. Desktop window describes both, the settings for a proxy, and which app the command starts.

    The wasm build starts its server with moonrun or moonx from the PATH. Without them, mission-control serve still works.

    #Change the project list

    mission-control project add ../docs # a complete path or a relative path mission-control project list mission-control project show docs # an ID, a path or a name; none: the current folder mission-control project remove docs # keeps the files

    Each of these commands, also list, starts the server if it does not run. mission-control stop ends it.

    Web UI and projects describes links, the arguments of the project commands, instances, ports and files.

    #Validate knowledge bundles

    mission-control kb validate docs # every bundle under docs mission-control kb validate docs/decisions/0001.md # one document mission-control kb validate 0001.md --related # and its linked documents mission-control kb validate docs --use openspec --use rules/decisions.yaml mission-control kb validate docs --format jsonl | jq -c 'select(.finding)'

    kb validate takes directories and Markdown files as targets, or JSONL records and paths on standard input with --stdin. --select KEY=VALUE keeps the documents that match (type, status, tag, bundle or a frontmatter key). --related[=DEPTH] and --direction both|out|in add linked documents. --use NAME|PATH turns on a built-in profile or a rule pack, --severityRULE=LEVEL and --skip RULE change rules, and --strict makes warnings fail. See Validate knowledge bundles.

    #Inspect rules and rule packs

    mission-control kb rules list docs # the active rules, their sources and layers mission-control kb rules show decision-needs-owner # one rule and what the layers did to it mission-control kb rules check rules/decisions.yaml # check that packs parse (none: the configured packs) mission-control kb rules test rules/decisions.yaml # run the test cases of packs on their fixtures mission-control kb profiles list # the built-in profiles mission-control kb profiles show openspec

    kb rules list and kb rules show take the same targets and options as kbvalidate, so they show the rules that a run of kb validate would use. kbrules check and kb rules test exit with 1 when a pack has a problem or a test case fails.

    The command reads its settings from YAML configuration files, such as .config/mission-control/config.yaml in a repository, and from the root index.md of each bundle. See Configuration.

    The command exits with 0 for success, 1 for a failure and 2 for a usage error, such as an unknown command. --help after any command prints its options.

    On Windows, the kb and config commands stop with a message: they read paths with / between names only. All other commands work.

    Install a native binary from a GitHub release:

    mise use -g github:moonrockz/mission-control

    Run the published module without a native install:

    moonx moonrockz/mission-control-cli@latest version