@cmo-so/cli 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/dist/cmo.mjs +4894 -841
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,6 +28,30 @@ cmo tools every action, then: cmo run <tool> key
|
|
|
28
28
|
cmo mcp local MCP server (stdio)
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
### WordPress sites (Maggie Core theme)
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
cmo wp connect <site> -u <admin> save the site's Administrator application password (asked, never shown)
|
|
35
|
+
cmo wp status | map [--sections] | pages [--search …] [--missing-seo] | sections
|
|
36
|
+
cmo wp page <page> [--section s2] a page's sections (ids: m… bands, s… reading column, a… sidebar)
|
|
37
|
+
cmo wp page create --title … --from sections.json [--parent …] [--publish] [--menu-parent …]
|
|
38
|
+
cmo wp page update <page> title=… slug=… status=… | delete <page> [--redirect-to …] | undo <page>
|
|
39
|
+
cmo wp page duplicate <page> --title … --replace Fairfax=Vienna
|
|
40
|
+
cmo wp section add <page> <type> --from slots.json [--after s1] [--preview]
|
|
41
|
+
cmo wp section update <page> <section> --from change.json [--preview] (edits | slots | faq)
|
|
42
|
+
cmo wp section move <page> <section> --before faq | section remove <page> <section>
|
|
43
|
+
cmo wp seo get <page> | set <page> --title … --description … --keywords … | audit [--posts 50] | import
|
|
44
|
+
cmo wp seo site --home-title … | seo business name=… telephone=…
|
|
45
|
+
cmo wp redirects [ls] | set <from> <to> [--code 301] | remove <from…>
|
|
46
|
+
cmo wp menu [get] | set --from menu.json cmo wp header|footer [get] | set --replace a=b --link old=new
|
|
47
|
+
cmo wp header set --button-text "Book Now" --button-url … cmo wp style [get] | set olive=#4F5B48
|
|
48
|
+
cmo wp pattern contact --replace "old=new" shared contact band / share buttons on every page
|
|
49
|
+
cmo wp child-theme <slug> --name "…" --from-site [--out dir] the site's look as a child theme of Maggie Core
|
|
50
|
+
cmo wp migrate plan [--out wp-baseline.json] | migrate verify --baseline wp-baseline.json the SEO gate
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Pages are a path (`/fairfax-va/hydrafacial/`), URL, slug or id. Signed in, cmo.so signs each request with the saved login. `--site <url> --user <name>` goes straight to the site with the application password in `WP_APP_PASSWORD` (local development, staging); never pass a password as an argument.
|
|
54
|
+
|
|
31
55
|
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).
|
|
32
56
|
|
|
33
57
|
Commands that change something show what will happen and ask first. In scripts, pass `--yes`; without a terminal and without `--yes`, nothing is changed.
|