All commands accept the global flags
--json (default), --table, --verbose,
--api-key <key>, and --api-url <url>. You can also authenticate with the SOME_API_KEY
and SOME_API_URL environment variables.drafts:list
List draft posts in your workspace.Examples
drafts:get
Get a single draft by ID.Example
drafts:create
Create a new draft post.The
--platform value is uppercased automatically before it is sent. Media URLs passed via
-m, --media are merged into the draft’s metadata, alongside any keys supplied in --metadata.Examples
drafts:update
Update an existing draft.Example
drafts:delete
Delete one or more drafts. You’ll be asked to confirm unless you pass-y, --yes.
The CLI continues deleting the remaining IDs even if one of them fails.
Examples
drafts:convert
Convert a draft into a post. Any options you pass override the values stored on the draft.Examples