@autoposting.ai/cli 0.3.2 → 0.3.4
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 +18 -3
- package/dist/cli.cjs +767 -58
- package/dist/cli.cjs.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -69,7 +69,13 @@ ap doctor
|
|
|
69
69
|
# Posts — create, schedule, publish, AI-rewrite, AI-score
|
|
70
70
|
ap posts create --brand my-brand --text "Launch day!" --platforms x,linkedin,threads
|
|
71
71
|
ap posts create --brand my-brand --text "Tweet 1" --thread "Tweet 2" "Tweet 3" --platforms x # multi-tweet thread (X/Threads, max 25)
|
|
72
|
+
ap posts create --brand my-brand --text "Ship day 🚀" --platforms x --media chart.png demo.mp4 --alt-text "Q2 chart" # attach media (alt text aligns by index)
|
|
73
|
+
ap posts create --brand my-brand --text "Update" --platforms linkedin --account linkedin=@acme-corp # pick one of several accounts on a platform
|
|
74
|
+
ap posts create --brand my-brand --text "Update" --platforms linkedin --account linkedin=all # fan out to every connected account (prints the count)
|
|
75
|
+
ap posts create --brand my-brand --text "Preview me" --platforms x --dry-run # print the resolved request without uploading or posting
|
|
76
|
+
ap posts create --from posts.csv # bulk create one post per row (CSV or JSON array)
|
|
72
77
|
ap posts schedule <id> --at "2025-06-01T09:00:00Z"
|
|
78
|
+
ap posts schedule <id> --cancel # unschedule, back to draft
|
|
73
79
|
ap posts publish <id>
|
|
74
80
|
ap posts rewrite <id> # AI-rewrite for better engagement
|
|
75
81
|
ap posts score <id> # AI scoring with feedback
|
|
@@ -94,6 +100,11 @@ ap clips render <id>
|
|
|
94
100
|
ap brands list
|
|
95
101
|
ap brands auth-status my-brand # check platform connections
|
|
96
102
|
ap brands create --name "My Brand" --timezone "America/New_York"
|
|
103
|
+
ap brands set-default-account my-brand x=@main linkedin=all # default target per platform when --account is omitted
|
|
104
|
+
|
|
105
|
+
# Config — default brand context (drop --brand on posts commands)
|
|
106
|
+
ap config set-context --brand my-brand
|
|
107
|
+
ap config get-context
|
|
97
108
|
|
|
98
109
|
# Agents — AI-powered automated posting
|
|
99
110
|
ap agents create --name "Daily News" --type publish --frequency daily --time "09:00"
|
|
@@ -198,10 +209,13 @@ All tools use correct domain terminology (`brandSlug`, `text`) — no translatio
|
|
|
198
209
|
|
|
199
210
|
| Mode | When | Format |
|
|
200
211
|
|------|------|--------|
|
|
201
|
-
|
|
|
202
|
-
|
|
|
212
|
+
| Auto (default) | — | Table on a TTY, JSON when piped or non-interactive |
|
|
213
|
+
| Interactive | `--format table` | Tables, spinners, colors |
|
|
214
|
+
| JSON | `--json`, `--format json`, or piped | Clean JSON for parsing |
|
|
203
215
|
| Quiet | `--quiet` | Errors only, no spinners |
|
|
204
216
|
|
|
217
|
+
Shape JSON inline with the built-in `--jq <expr>` filter (no external `jq` needed), e.g. `ap posts list --jq '.[].id'`.
|
|
218
|
+
|
|
205
219
|
### Exit Codes
|
|
206
220
|
|
|
207
221
|
| Code | Meaning |
|
|
@@ -223,7 +237,8 @@ All tools use correct domain terminology (`brandSlug`, `text`) — no translatio
|
|
|
223
237
|
| `--api-key <key>` | Override API key |
|
|
224
238
|
| `--json` | JSON output |
|
|
225
239
|
| `--quiet` | Suppress non-essential output |
|
|
226
|
-
| `--format <type>` | `
|
|
240
|
+
| `--format <type>` | `auto` (default), `table`, or `json` |
|
|
241
|
+
| `--jq <expr>` | Filter JSON output with a built-in minimal jq |
|
|
227
242
|
| `--no-color` | Disable colors |
|
|
228
243
|
|
|
229
244
|
### Auth Priority
|