Skip to main content
Draft commands let you save work-in-progress posts, refine them over time, and convert them into scheduled posts when you’re ready to publish.
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
When you pass --platform but omit --account, the CLI looks up your connected accounts for that platform. If exactly one matches it’s selected automatically; if several match you’re prompted to choose one interactively. If no account is found, the conversion proceeds without a specific account and the backend decides how to handle it.