Skip to content

social ​

Post the current release on Twitter (X), Slack and Microsoft Teams from the command line.

Usage ​

bash
relizy social [options]

Posts the release once per enabled platform (social.<platform>.enabled): the versions of the package.json files and their changelog since the previous tags. relizy release runs the same step with the versions it just bumped. Setup of the platforms and shape of the posts: Social Media.

The command exits with code 1 when a post fails, after the other posts, or when it cannot prepare them (missing credentials, a failed check): the failure is shown in its output. In relizy release, a failed post does not stop the release.

Options ​

--from ​

Start of the commits of the changelog (default: the previous release tag).

bash
relizy social --from v1.2.0

--to ​

End of the commits of the changelog (default: the tag of the current version).

bash
relizy social --from v1.2.0 --to v1.3.0

--ai / --no-ai ​

Turn the AI rewrite of the posts on or off for this run, whatever ai.social. See AI-Enhanced Changelogs.

bash
relizy social --ai

--slack-format ​

full, summary or none: overrides social.slack.changelog for this run.

bash
relizy social --slack-format full

Global Options ​

These global options also apply: --dry-run (show the posts without posting them, the tweet with its length), --ai-preview (call the AI in a dry run), --no-preview, --group (only the given version groups), --no-safety-check (skip the check of the credentials and dependencies), --config and --log-level.

bash
relizy social --dry-run --ai-preview

Credentials ​

Twitter reads TWITTER_API_KEY, TWITTER_API_KEY_SECRET, TWITTER_ACCESS_TOKEN and TWITTER_ACCESS_TOKEN_SECRET; Slack reads SLACK_WEBHOOK_URL, or SLACK_TOKEN with social.slack.channel; Teams reads TEAMS_WEBHOOK_URL, or its base64 in TEAMS_WEBHOOK_URL_B64. Each one also has a RELIZY_ variant: see Tokens.

See Also ​