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.0Update Commands: Replace
agoras publish --network <platform> --action <action>withagoras <platform> <action>Update Parameters: Remove platform prefixes (e.g.,
--twitter-consumer-key→--consumer-key)For OAuth Platforms: Run
agoras <platform> authorizefirst
For detailed information, see the sections below.