The CLI

modular drives a running Modular from a terminal: the board, agents, sessions, plugins, settings. Agents use it from their own shells too.

Installing#

Settings → General → Desktop → CLI installs modular and kanbo:

From a clone, pnpm cli <command> runs it without installing.

Which Modular it talks to#

In this order: --server <url>, then MODULAR_SERVER_URL, then the desktop app that is running, then http://127.0.0.1:21423. Commands that need a project use the project of the current folder, or MODULAR_WORKSPACE_ID (set in every terminal Modular opens).

Commands#

modular --help lists them all, and modular <group> --help a group. The main groups:

GroupFor
issue, boardCards, columns, delegation to agents (The board)
sessionAgent sessions and their awaits (session await …)
agent, agent-peerAgents and agent peers
workspaceProjects
pull-request, github-repoPull requests and repositories
automationAutomations
pluginInstall, update, develop (plugin dev) and read the docs (plugin docs) of plugins
skill, mcp-server, provider, secret, preferencesSettings
usage, search, observability, healthUsage, search and diagnostics

Also: modular open [path] opens a folder in the app, and modular man prints the full reference.