Micropub CLI
An ultra-compliant Micropub CLI for interacting with Micropub-enabled sites like micro.blog.
Features
- ✅ Full W3C Micropub spec compliance
- ✅ CLI-managed drafts with YAML frontmatter
- ✅ Automatic media upload and URL replacement
- ✅ Multi-site support with profiles
- ✅ IndieAuth/OAuth authentication
- ✅ Create, update, delete, undelete posts
- ✅ Backdated post publishing
- ✅ XDG-compliant configuration storage
Installation
Quick Start
-
Authenticate with your site:
-
Create a new draft:
-
List drafts:
-
Publish a draft:
See USAGE.md for detailed documentation.
Architecture
config- Configuration and XDG directory managementauth- IndieAuth/OAuth authenticationdraft- Draft lifecycle managementclient- Micropub HTTP clientmedia- Media upload and path replacementpublish- Post publishing orchestrationoperations- Update/delete/undelete operations
Testing
# Run all tests
# Run with output
# Run specific test
Development
Built with Rust using:
- clap - CLI argument parsing
- reqwest - HTTP client
- tokio - Async runtime
- serde - Serialization
- oauth2 - OAuth flow
License
MIT