Skip to main content

Creating Posts

Use posts:create to schedule or draft posts to one or more platforms.

Simple Post

Options

FlagDescription
-c, --contentPost content. Use multiple times for threads/comments.
-s, --dateSchedule date in ISO 8601 format (required)
-t, --typeschedule (default) or draft
-m, --mediaComma-separated media URLs (use after uploading)
-i, --integrationsComma-separated integration IDs (required)
-d, --delayDelay between comments in milliseconds (default: 5000)
--settingsPlatform-specific settings as JSON
-j, --jsonPath to a JSON file for complex posts

Draft Post

Post with Media

Upload your media first with the upload command, then reference the returned URL:

Threads and Comments

Pass -c multiple times to create a thread. Each comment can have its own media with a corresponding -m flag:
Use -d to control the delay between comments (in milliseconds):

Multi-Platform Post

Send the same content to multiple platforms by passing comma-separated integration IDs:

Platform-Specific Settings

Some platforms require additional settings. Pass them as JSON with --settings:
Use groniz integrations:settings <id> to discover what settings are available for each platform. See Integrations for details.

Complex Posts with JSON

For posts with detailed platform-specific content, use a JSON file:
Example post.json:

Listing Posts

Filter by Date Range

Filter by Customer

Connecting Missing Posts

Some platforms don’t return a post ID immediately after publishing (the releaseId is set to "missing"). When this happens, you can fetch recent content from the provider and connect the correct one to your post. This enables analytics tracking.

List Available Content

Returns an array of recent content items from the provider with their ID and thumbnail URL:
This only works for posts where the releaseId is "missing". Returns an empty array if the provider doesn’t support this feature.

Connect a Post

Once you’ve identified the correct content, update the release ID:
After connecting, the post will support full analytics via groniz analytics:post.

Full Workflow

Changing Post Status

Move a post between draft and schedule without changing its date.
  • --status schedule promotes a draft into the publishing queue and (re)starts the workflow so it will publish at its stored date.
  • --status draft moves a scheduled post back to draft and terminates any running publishing workflow, so it will not publish.
Use this when you want to pause a scheduled post without deleting it, or hand a draft off to the scheduler once it’s ready.

Deleting Posts