Migration Guide: Legacy to New CLI¶
Note
v2.0 Package Split: This guide covers CLI migration (v2.0+). For v2.0 package split and import path changes, see the sections below on “Package Installation” and “Import Path Changes”.
Overview¶
Agoras uses a platform-first CLI structure that is more intuitive, discoverable, and aligned with how users think about social media operations. This guide helps you migrate from the legacy agoras publish command to the new agoras <platform> <action> format.
This migration guide is organized into the following sections:
- Package Installation (v2.0+)
- Understanding the Package Split
- Import Path Changes (v2.0)
- CLI Commands Migration
- Quick Reference
- Parameter Changes
- Async/Await Pattern (v2.0)
- Platform-by-Platform Migration
- Platform-Specific Notes
- Automation Commands Migration
- Testing Your Migration
- Gradual Migration Strategy
- Test Migration
- CI/CD Migration
- Complete Parameter Reference
- Frequently Asked Questions
- Common Migration Pitfalls
- Troubleshooting
- Getting Help
- See Also
- Resources
- Support Timeline
Quick Start¶
If you’re in a hurry, here’s the quickest path to migration:
Update Installation:
pip install agoras>=2.0.0(>=2.1.0if you rely on credential flags on platform actions — that pattern was removed in 2.1.0)Update Commands: Replace
agoras publish --network <platform> --action <action>withagoras <platform> <action>Update Parameters: Remove platform prefixes (e.g.,
--twitter-consumer-key→--consumer-key) and pass credential parameters onagoras <platform> authorizeonly (since 2.1.0), not on action commandsAuthorize First: Run
agoras <platform> authorizebefore actions on all platforms (OAuth via browser for Facebook, Instagram, etc.; CLI credentials or env vars for X, Discord, Telegram, WhatsApp)
For detailed information, see the sections below.