blodemd
v0.2.0
Published
Blode.md CLI
Readme
- One-command deploy: Push your entire docs folder to Blode.md with
blodemd push. - Scaffold in seconds: Generate a ready-to-edit docs folder with
blodemd new. - Config validation: Catch
docs.jsonerrors before deploying. - Zero keys locally: Sign in once with GitHub in your browser — no keys for local deploys. CI uses a project deploy key.
Install
npm install -g blodemdOr run without installing:
npx blodemdRequires Node.js 24.x.
Quick Start
# Sign in with GitHub (opens your browser)
blodemd login
# Create a new docs site
blodemd new
# Preview locally
blodemd dev
# Deploy
blodemd pushDeploy from CI
The GitHub App is the recommended zero-config path. To run the deploy yourself from GitHub Actions, use a project deploy key stored in the BLODEMD_API_KEY secret:
name: Deploy docs
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- run: npx blodemd@latest push --project your-project-slug
env:
BLODEMD_API_KEY: ${{ secrets.BLODEMD_API_KEY }}Create a deploy key in the dashboard under Settings → Deploy keys, or copy the bmd_... key that blodemd push prints the first time it auto-creates a project. Deploy keys are project-scoped and deploy-only — store them as CI secrets, never commit them.
Commands
blodemd new [directory] Create a new blode.md documentation site
blodemd login Sign in with GitHub in your browser
blodemd logout Remove stored credentials
blodemd whoami Show current authentication
blodemd validate [dir] Validate docs.json
blodemd push [dir] Deploy docs
blodemd dev [dir] Start the local docs preview serverpush Options
--project <slug> Project slug (env: BLODEMD_PROJECT)
--api-key <token> API key (env: BLODEMD_API_KEY)
--api-url <url> API URL (env: BLODEMD_API_URL)
--branch <name> Git branch (env: BLODEMD_BRANCH)
--message <msg> Deploy message (env: BLODEMD_COMMIT_MESSAGE)The CLI reads the project slug from the slug field in docs.json when --project is not set.
dev Options
--dir <dir> Docs directory
--port <port> Local preview port (default: 3030)
--no-open Don't open the browser automaticallyAuto-deploy without the CLI
Install the Blode.md GitHub App from your project's Git tab in the dashboard. Pushes to your configured branch deploy automatically — no CLI, no tokens, no workflows.
Configuration
The CLI looks for a docs.json file in the docs directory. Minimal example:
{
"$schema": "https://blode.md/docs.json",
"slug": "my-project",
"name": "My Project"
}The CLI searches for docs.json in the current directory, then docs/, then apps/docs/.
License
This repository is licensed under MIT. Generated docs folders do not include a license file by default.
