Install
openclaw skills install gblogBlogger API CLI for managing blog posts. Post, edit, delete, list, and monitor Blogger blogs. Use when the user wants to: (1) publish blog posts to Blogger,...
openclaw skills install gblogManage Blogger blogs via command line. Supports posting, editing, listing, and monitoring.
# Authenticate with Google
gblog auth
# List your blogs
gblog list-blogs
# List posts from a blog
gblog list-posts --blog-id YOUR_BLOG_ID
# Create a new post
gblog post --blog-id YOUR_BLOG_ID --title "My Post" --content ./post.html
# Edit a post
gblog edit --blog-id YOUR_BLOG_ID --post-id POST_ID --content ./updated.html
# Delete a post
gblog delete --blog-id YOUR_BLOG_ID --post-id POST_ID
http://localhost:8085/oauth2callbackhttp://localhost:8080/oauth2callback# Create config directory
mkdir -p ~/.config/gblog
# Save credentials
cp ~/Downloads/client_secret_*.json ~/.config/gblog/credentials.json
# Run authentication
gblog auth
The first time you run gblog auth, it will:
~/.config/gblog/token.jsongblog auth # Authenticate with Google
gblog auth --status # Check auth status
gblog auth --logout # Clear saved tokens
gblog list-blogs # List all your blogs
gblog get-blog --id BLOG_ID # Get blog details
# List posts
gblog list-posts --blog-id BLOG_ID
# Create post
gblog post \
--blog-id BLOG_ID \
--title "Post Title" \
--content ./content.html \
--labels "AI, Tutorial" \
--draft
# Edit post
gblog edit \
--blog-id BLOG_ID \
--post-id POST_ID \
--title "Updated Title" \
--content ./updated.html
# Delete post
gblog delete --blog-id BLOG_ID --post-id POST_ID
# Get post
gblog get-post --blog-id BLOG_ID --post-id POST_ID
# Monitor new posts (poll every 5 minutes)
gblog monitor --blog-id BLOG_ID --interval 300
# Get post statistics
gblog stats --blog-id BLOG_ID
Posts support full HTML. Example structure:
<div style="font-family: Arial, sans-serif; line-height: 1.8;">
<h1 style="color: #27ae60;">Post Title</h1>
<p>Your content here...</p>
<div style="background: #f5f5f5; padding: 20px; border-radius: 8px;">
<h3>Call to Action</h3>
<a href="...">Subscribe</a>
</div>
</div>
| File | Purpose |
|---|---|
~/.config/gblog/credentials.json | OAuth client credentials |
~/.config/gblog/token.json | Saved access/refresh tokens |
~/.config/gblog/config.json | User preferences |
export GBLOG_CREDENTIALS_PATH=/path/to/credentials.json
export GBLOG_TOKEN_PATH=/path/to/token.json
export GBLOG_DEFAULT_BLOG_ID=your-blog-id
Common errors and solutions:
| Error | Solution |
|---|---|
invalid_grant | Run gblog auth again |
insufficient_permissions | Check Blogger API is enabled |
blog not found | Verify blog ID is correct |
rate limit exceeded | Wait 60 seconds and retry |
Uses Blogger API v3:
https://www.googleapis.com/blogger/v3scripts/gblog.py - Main CLI scriptscripts/auth.py - OAuth authenticationscripts/blogger_api.py - API wrapperPowered by Google Blogger API v3