@cmo-so/cli

中文文档
0.13.20发布于 2026/11/09SEE LICENSE IN LICENSEES Module零依赖近 30 天下载 1.1万

CMO.so on the command line: your websites, ideas, blog posts, LinkedIn queue and results, plus a local MCP server for Claude Desktop, Cursor and other MCP clients.

原始使用文档
文档目录4 节
  1. Commands
  2. WordPress sites (Maggie Core theme)
  3. Signing in
  4. MCP

@cmo-so/cli

CMO.so on the command line. Check results, review your LinkedIn and Facebook Page queue, manage blog post ideas and drafts, and script it all in CI. Everything Maggie can do in the app is one command away.

npx @cmo-so/cli login        # sign in in your browser
npx @cmo-so/cli inbox        # what needs you now

Or install it: npm i -g @cmo-so/cli, then use cmo.

Commands

cmo login | logout | whoami
cmo init                                  sign in check + pick your default website
cmo workspaces [ls] | workspaces use <domain>
cmo inbox
cmo results [--period 7d|30d]
cmo ideas [ls] | add <url|text> | generate [-n 5] [--brief …] | import-sitemap [-n 10] [--sitemap <url>]
cmo ideas plan|discard|restore <id>
cmo posts [ls] [--status planned|draft|published] | show <id> | publish <id> | delete <id>
cmo social [ls] | approve <id…> | skip <id> | restore <id> | draft "<topic>" | pause | resume
cmo autopilot [status] | pause | resume
cmo keys [ls]            cmo apps            cmo open [path]
cmo connect api-pull [--key aicmo_…] [--write-env .env]
cmo tools                                 every action, then: cmo run <tool> key=value…
cmo mcp                                   local MCP server (stdio)

WordPress sites (Maggie Core theme)

cmo wp connect <site> -u <admin>          save the site's Administrator application password (asked, never shown)
cmo wp status | map [--sections] | pages [--search …] [--missing-seo] | sections
cmo wp page <page> [--section s2]         a page's sections (ids: m… bands, s… reading column, a… sidebar)
cmo wp page create --title … --from sections.json [--parent …] [--publish] [--menu-parent …]
cmo wp page update <page> title=… slug=… status=…   |  delete <page> [--redirect-to …]  |  undo <page>
cmo wp page publish <page> [--homepage]   |  cmo wp home <page> [--posts-page …] [--latest-posts]
cmo wp page duplicate <page> --title … --replace Fairfax=Vienna
cmo wp section add <page> <type> --from slots.json [--after s1] [--preview]
cmo wp section update <page> <section> --from change.json [--preview]   (edits | slots | faq)
cmo wp section move <page> <section> --before faq   |  section remove <page> <section>
cmo wp seo get <page> | set <page> --title … --description … --keywords … | audit [--posts 50] | import
cmo wp seo site --home-title …  |  seo business name=… telephone=…
cmo wp redirects [ls] | set <from> <to> [--code 301] | remove <from…>
cmo wp menu [get] | set --from menu.json      cmo wp header|footer [get] | set --replace a=b --link old=new
cmo wp header set --button-text "Book Now" --button-url …   cmo wp style [get] | set olive=#4F5B48
cmo wp pattern contact --replace "old=new"   shared contact band / share buttons on every page
cmo wp child [status] | create maggie-<name> --name … [--activate] | update --color olive=#4F5B48 --css-file x.css
cmo wp child activate <slug|maggie-core> | restore <slug> <backup>   the site's child theme, on the site (backups kept)
cmo wp child-theme <slug> --name "…" --from-site [--out dir]   export the site's look as a child theme folder (for git)
cmo wp migrate plan [--out wp-baseline.json]  |  migrate verify --baseline wp-baseline.json   the SEO gate

Pages are a path (/fairfax-va/hydrafacial/), URL, slug or id. cmo.so signs each request with the saved login (cmo wp connect); the website tools need a paid plan or the website's free trial.

Options for every command: --json (machine-readable), -w, --workspace <domain>, -y, --yes (don't ask before changes), --dry-run (show what a change would do).

Commands that change something show what will happen and ask first. In scripts, pass --yes; without a terminal and without --yes, nothing is changed.

Exit codes: 0 done · 2 wrong input · 3 not signed in · 4 plan, permission or daily limit · 5 server problem.

Signing in

  • cmo login uses a device code: open the link, check the code, approve. The sign-in is stored in ~/.config/cmo/credentials.json (readable only by you) and renews itself. cmo logout disconnects it; you can also remove it under Connected apps in your account.
  • For CI, create an API key in your account settings and set CMO_API_KEY. It takes priority over cmo login. A read-only key can only run reads.
  • CMO_WORKSPACE sets the default website for a script.

MCP

cmo mcp runs CMO.so as a local MCP server for Claude Desktop, Cursor, VS Code and others, signed in with cmo login or CMO_API_KEY. See @cmo-so/mcp for client configs, or connect the hosted server at https://mcp.cmo.so/mcp without installing anything.

版本与发布记录

@cmo-so/cli 共发布 70 个版本,首次发布于 2026/10/11;过去 12 个月发布了 70 个版本。

版本发布日期距今
0.13.20latest2026/11/09今天
0.13.192026/11/09今天
0.13.182026/11/09今天
0.13.172026/11/091 天前
0.13.162026/11/091 天前
0.13.152026/11/091 天前

关于 @cmo-so/cli 的常见问题

@cmo-so/cli 是什么?

CMO.so on the command line: your websites, ideas, blog posts, LinkedIn queue and results, plus a local MCP server for Claude Desktop, Cursor and other MCP clients.

如何安装 @cmo-so/cli?

在项目目录运行 npm install @cmo-so/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 cmo,可以用 npx cmo 直接运行。

@cmo-so/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cmo-so__cli 是否存在。

@cmo-so/cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cmo-so/cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cmo-so/cli 可以商用吗?

@cmo-so/cli 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@cmo-so/cli 的下载量有多少?

根据 npm 官方下载统计,@cmo-so/cli 在 2026/10/10 – 2026/11/08 这 30 天内被下载 11,165 次,日均约 372 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cmo-so/cli 还在维护吗?

最新版本 0.13.20 发布于 2026/11/09(今天);至今共发布 70 个版本,其中过去 12 个月发布了 70 个;首次发布于 2026/10/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。