Complete Parameter Reference¶
This reference documents all parameters available in Agoras CLI commands.
Note
For a comprehensive reference including environment variables and unattended execution parameters, see Platform Arguments and Environment Variables Reference.
Platform Commands vs Utils Commands¶
Platform commands use simplified parameter names:
agoras x post --consumer-key "$KEY" --text "Hello"
Utils commands use prefixed parameter names to support multiple platforms:
agoras utils feed-publish --network x --x-consumer-key "$KEY"
Note
The agoras twitter command and --twitter-* parameters are deprecated. Use agoras x and --x-* parameters instead.
Authentication Parameters¶
X (formerly Twitter)¶
Platform commands (agoras x):
--consumer-key- X API consumer key (required)--consumer-secret- X API consumer secret (required)--oauth-token- X OAuth token (required for most actions)--oauth-secret- X OAuth secret (required for most actions)
Deprecated since version 2.0: The --twitter-* parameters in utils commands are deprecated. Use --x-* parameters instead.
Note
The agoras twitter command is deprecated. Use agoras x instead.
Facebook¶
Changed in version 2.0: Facebook now uses OAuth 2.0. Token parameters removed. Run agoras facebook authorize first.
Platform commands (agoras facebook):
authorize- OAuth 2.0 authorization action (required first step)--client-id- Facebook App client ID (required for authorize)--client-secret- Facebook App client secret (required for authorize)--app-id- Facebook App ID (required for authorize)--object-id- Facebook page or profile ID (required for authorize and post/video)
Note
OAuth platforms require authorization via agoras <platform> authorize before use.
Instagram¶
Changed in version 2.0: Instagram now uses OAuth 2.0. Token parameters removed. Run agoras instagram authorize first.
Platform commands (agoras instagram):
authorize- OAuth 2.0 authorization action (required first step)--client-id- Facebook App client ID (required for authorize, Instagram uses Facebook OAuth)--client-secret- Facebook App client secret (required for authorize)--object-id- Facebook user ID for Instagram business account (required for authorize and post/video)
Note
OAuth platforms require authorization via agoras <platform> authorize before use.
LinkedIn¶
Changed in version 2.0: LinkedIn now uses OAuth 2.0. Token parameters removed. Run agoras linkedin authorize first.
Platform commands (agoras linkedin):
authorize- OAuth 2.0 authorization action (required first step)--client-id- LinkedIn App client ID (required for authorize)--client-secret- LinkedIn App client secret (required for authorize)--object-id- LinkedIn user/organization ID (required for authorize)
Note
OAuth platforms require authorization via agoras <platform> authorize before use.
Discord¶
Platform commands (agoras discord):
--bot-token- Discord bot token (required)--server-name- Discord server/guild name (required)--channel-name- Discord channel name (required)
YouTube¶
Changed in version 2.0: YouTube now uses OAuth 2.0 “authorize first” workflow. Run agoras youtube authorize first.
Platform commands (agoras youtube):
authorize- OAuth 2.0 authorization action (required first step)--client-id- YouTube (Google) OAuth client ID (required for authorize)--client-secret- YouTube (Google) OAuth client secret (required for authorize)
Note
OAuth platforms require authorization via agoras <platform> authorize before use.
TikTok¶
Changed in version 2.0: TikTok now uses OAuth 2.0. Token parameters removed. Run agoras tiktok authorize first.
Platform commands (agoras tiktok):
authorize- OAuth 2.0 authorization action (required first step)--client-key- TikTok client key (required for authorize)--client-secret- TikTok client secret (required for authorize)--username- TikTok username (required for authorize)
Note
OAuth platforms require authorization via agoras <platform> authorize before use.
Threads¶
Changed in version 2.0: Threads now uses OAuth 2.0. Token parameters removed. Run agoras threads authorize first.
Platform commands (agoras threads):
authorize- OAuth 2.0 authorization action (required first step)--app-id- Threads (Meta) App ID (required for authorize)--app-secret- Threads (Meta) App secret (required for authorize)
Note
OAuth platforms require authorization via agoras <platform> authorize before use.
Telegram¶
Platform commands (agoras telegram):
--bot-token- Telegram bot token from @BotFather (required)--chat-id- Target chat ID (user, group, or channel) (required)--message-id- Message ID for delete action (required for delete)
Telegram-specific parameters:
--parse-mode- Message parse mode:HTML,Markdown,MarkdownV2, orNone(default: HTML)
WhatsApp¶
Platform commands (agoras whatsapp):
--access-token- Meta Graph API access token (required)--phone-number-id- WhatsApp Business phone number ID (required)--recipient- Target recipient phone number in E.164 format, e.g., +1234567890 (required)
WhatsApp-specific parameters:
--template-name- Template name (for template action)--language-code- Template language code (ISO 639-1 format, default: en, for template action)--template-components- Template components as JSON string (optional, for template action)--business-account-id- WhatsApp Business Account ID (optional)
Content Parameters¶
These parameters are standardized across all platforms.
Text and Links¶
--text- Text content of the post (replaces--status-text)--link- URL to include in post (replaces--status-link)
Images¶
--image-1- First image URL (replaces--status-image-url-1)--image-2- Second image URL (replaces--status-image-url-2)--image-3- Third image URL (replaces--status-image-url-3)--image-4- Fourth image URL (replaces--status-image-url-4)
Note
Not all platforms support 4 images. Check platform-specific documentation.
Video¶
--video-url- URL of video file to upload (required for video actions)--video-title- Video title or caption--video-description- Video description (YouTube, Facebook)--video-caption- Video caption (Instagram)--video-type- Video type (Instagram, Facebook)
Post Interaction¶
--post-id- Post ID for like/share/delete actions (standardized across platforms)Replaces platform-specific IDs:
--tweet-id(X, legacy format)--facebook-post-id(Facebook)--instagram-post-id(Instagram)--linkedin-post-id(LinkedIn)
Platform-Specific Parameters¶
YouTube¶
--video-id- YouTube video ID (for like/delete actions)--title- Video title (maps toyoutube_title)--description- Video description (maps toyoutube_description)--category-id- YouTube category ID--privacy- Privacy status:public,private, orunlisted(default:private)--keywords- Comma-separated keywords
TikTok¶
--title- Video title/caption (maps totiktok_title)--privacy- Privacy status (default:SELF_ONLY):PUBLIC_TO_EVERYONEMUTUAL_FOLLOW_FRIENDSFOLLOWER_OF_CREATORSELF_ONLY
Facebook¶
--profile-id- Facebook profile ID (for share action)
Utils Command Parameters¶
Platform Authentication Parameters¶
These parameters are used in utils commands (agoras utils feed-publish and agoras utils schedule-run) with platform prefixes.
X (formerly Twitter)¶
--x-consumer-key- X API consumer key--x-consumer-secret- X API consumer secret--x-oauth-token- X OAuth token--x-oauth-secret- X OAuth secret
Deprecated since version 2.0: The --twitter-* parameters in utils commands are deprecated. Use --x-* parameters instead.
Facebook¶
--facebook-access-token- Facebook access token--facebook-object-id- Facebook page or profile ID--facebook-app-id- Facebook App ID
Instagram¶
--instagram-access-token- Instagram access token--instagram-object-id- Instagram business account ID--instagram-client-id- Facebook App client ID (Instagram uses Facebook OAuth)--instagram-client-secret- Facebook App client secret
LinkedIn¶
--linkedin-client-id- LinkedIn App client ID--linkedin-client-secret- LinkedIn App client secret--linkedin-refresh-token- LinkedIn refresh token (optional, can be loaded from storage)
Discord¶
--discord-bot-token- Discord bot token--discord-server-name- Discord server/guild name--discord-channel-name- Discord channel name
YouTube¶
--youtube-client-id- YouTube (Google) OAuth client ID--youtube-client-secret- YouTube (Google) OAuth client secret
TikTok¶
--tiktok-client-key- TikTok App client key--tiktok-client-secret- TikTok App client secret--tiktok-access-token- TikTok access token--tiktok-refresh-token- TikTok refresh token--tiktok-username- TikTok username
Threads¶
--threads-app-id- Threads (Meta) App ID--threads-app-secret- Threads (Meta) App secret--threads-refresh-token- Threads refresh token
Telegram¶
--telegram-bot-token- Telegram bot token from @BotFather--telegram-chat-id- Target chat ID (user, group, or channel)
WhatsApp¶
--whatsapp-access-token- Meta Graph API access token--whatsapp-phone-number-id- WhatsApp Business phone number ID--whatsapp-business-account-id- WhatsApp Business Account ID--whatsapp-recipient- Target recipient phone number in E.164 format
Feed Automation¶
--network- Target social network (required)--mode- Feed mode:lastorrandom(required)--feed-url- URL of RSS/Atom feed (required)--max-count- Maximum posts to publish at once--post-lookback- Only posts within last N seconds--max-post-age- Maximum post age in days
Schedule Automation¶
--network- Target network (optional; if omitted, processes all networks from sheet)--sheets-id- Google Sheets document ID (required)--sheets-name- Sheet name within document (required)--sheets-client-email- Google service account email (required)--sheets-private-key- Google service account private key (required)
Legacy Parameters¶
The legacy agoras publish command uses the original parameter names with platform prefixes. These are maintained for backward compatibility but are deprecated.
See the Migration Guide: Legacy to New CLI for a complete mapping of legacy to new parameters.