@profullstack/bl0ggers
v0.2.0
Published
Post to your bl0ggers.com publications from the terminal: blog posts, newsletter issues, podcast episodes.
Readme
@profullstack/bl0ggers
Post to your bl0ggers.com publications from the terminal. Blog posts, newsletter issues and podcast episodes. No dependencies, Node 18+.
curl -fsSL https://bl0ggers.com/install.sh | sh # or: npm i -g @profullstack/bl0ggers
bl0ggers login # opens the browser; pick a publication
bl0ggers post --title "Hello" --file hello.md
bl0ggers postslogin uses an authorization code with PKCE (S256) delivered to a loopback
port on your machine, and stores the resulting publication key in
~/.config/bl0ggers/config.json (mode 0600). Run it again to connect more
publications, then switch with bl0ggers use <slug> or --pub <slug>.
On a box with no browser, create a key in the publication's settings and run
bl0ggers login --token blg_…, or set BL0GGERS_TOKEN.
Commands
login [--token blg_…] [--site URL] logout [<slug>] accounts use <slug> whoami
posts [--channel C] [--status S] [--limit N]
get <id|slug>
post --title T [body | --file F | stdin] [--channel blog|newsletter|podcast] [--draft]
[--slug S] [--excerpt T] [--image URL] [--audio URL] [--canonical URL]
[--tags a,b] [--html] [--external-id ID]
edit <id|slug> [same options]
publish <id|slug> unpublish <id|slug> delete <id|slug>
mcp print an MCP client config for this keyAdd --json to any command for machine-readable output. --external-id
makes a post retry-safe: sending the same id again updates that post.
Other ways in
- MCP:
https://bl0ggers.com/api/mcpwithAuthorization: Bearer blg_….bl0ggers mcpprints the config. - REST:
https://bl0ggers.com/api/v1, documented at bl0ggers.com/skill.md. - myna:
myna login bl0ggersadds a publication as a myna account.
