@autoposting.ai/cli 0.3.3 → 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 CHANGED
@@ -71,6 +71,9 @@ ap posts create --brand my-brand --text "Launch day!" --platforms x,linkedin,thr
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
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
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)
74
77
  ap posts schedule <id> --at "2025-06-01T09:00:00Z"
75
78
  ap posts schedule <id> --cancel # unschedule, back to draft
76
79
  ap posts publish <id>
@@ -97,6 +100,11 @@ ap clips render <id>
97
100
  ap brands list
98
101
  ap brands auth-status my-brand # check platform connections
99
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
100
108
 
101
109
  # Agents — AI-powered automated posting
102
110
  ap agents create --name "Daily News" --type publish --frequency daily --time "09:00"
@@ -201,10 +209,13 @@ All tools use correct domain terminology (`brandSlug`, `text`) — no translatio
201
209
 
202
210
  | Mode | When | Format |
203
211
  |------|------|--------|
204
- | Interactive | TTY terminal | Tables, spinners, colors |
205
- | JSON | `--json` or piped | Clean JSON for parsing |
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 |
206
215
  | Quiet | `--quiet` | Errors only, no spinners |
207
216
 
217
+ Shape JSON inline with the built-in `--jq <expr>` filter (no external `jq` needed), e.g. `ap posts list --jq '.[].id'`.
218
+
208
219
  ### Exit Codes
209
220
 
210
221
  | Code | Meaning |
@@ -226,7 +237,8 @@ All tools use correct domain terminology (`brandSlug`, `text`) — no translatio
226
237
  | `--api-key <key>` | Override API key |
227
238
  | `--json` | JSON output |
228
239
  | `--quiet` | Suppress non-essential output |
229
- | `--format <type>` | `table` or `json` |
240
+ | `--format <type>` | `auto` (default), `table`, or `json` |
241
+ | `--jq <expr>` | Filter JSON output with a built-in minimal jq |
230
242
  | `--no-color` | Disable colors |
231
243
 
232
244
  ### Auth Priority