@anaella/cli
v0.2.2
Published
Command-line tool for anaella.com — schedule and publish social posts.
Readme
@anaella/cli
Command-line tool for anaella.com — schedule and publish social posts via the /v1 API.
Install
npm i -g @anaella/cli
# or run without installing:
npx @anaella/cli --helpAuth
The API key is resolved with this precedence: --api-key flag > ANAELLA_API_KEY env var > the
file saved by anaella login (~/.config/anaella/config.json, or under $XDG_CONFIG_HOME if set).
anaella login --api-key ana_xxx # verifies the key against the API, then saves it
echo ana_xxx | anaella login # or pipe it on stdin
anaella logout # remove the saved keyCommands
anaella channels # list connected channels
anaella post -c <channelId> -t "hello" -w now # publish now
anaella post -c <channelId> -t "hello" # -w/--when defaults to "draft"
anaella post -c c1 -c c2 -m https://x/a.jpg -t hi # -c and -m are repeatable
anaella posts --limit 20 --cursor 0 # list recent posts
anaella get <id> # fetch one post
anaella delete <id> # delete a draft / cancel a scheduled postGlobal options
--api-key <key>— override the resolved API key for this invocation.--api-url <url>— override the API base URL (defaulthttps://api.anaella.com).--json— print raw JSON instead of a table.
post options
-c, --channel <id>— channel id, repeatable, required.-t, --text <text>— post text.-w, --when <when>—"now"|"draft"| an ISO-8601 timestamp (defaultdraft).-m, --media <url>— public media URL, repeatable.--type <type>—post|reel|thread|story.--first-comment <text>— first comment text.
