Requirements
- Node.js 20 or newer
- An OpenRouter API key
Documentation
CodeFlex converts your git work into polished technical content. Use this guide to install, configure, generate, edit, and save posts faster.
Quick path from install to first generated post.
npm install -g codeflex-cli
# or
npx codeflex-cli --helpcp .env.example .env
# then set
OPENROUTER_API_KEY=your_openrouter_api_key_hereGet your key from https://openrouter.ai/keys
Everything you need for the standard CodeFlex workflow.
Interactive setup for tone, output directory, and style defaults.
codeflex initGenerate a post from local git history or from a PR/MR URL.
codeflex generate --from v1.0.0 --to HEAD --tone changelogCreate and manage writing style profiles from markdown samples.
codeflex style add ./posts/*.md --name technicalUpdate model, tone, output path, project name, and style settings.
codeflex configBrowse previously generated posts from your output directory.
codeflex historyUse flags to control context, tone, and output behavior.
--from <ref>
Start ref for commit analysis (tag, branch, or hash).
--to <ref>
End ref for analysis. Defaults to HEAD.
--pr <url>
Generate from GitHub PR or GitLab MR context.
--tone <tone>
Set tone directly: changelog, casual, product-announcement, deep-dive, devto-blog-post, release-notes, postmortem, storytelling, tweet-thread, eli5.
--style <style>
Apply one style profile or a blend like technical:70,casual:30.
--no-preview
Skip preview and jump straight to save flow.
Recommended sequence for repeatable, high quality outputs.
codeflex init once to set defaults.codeflex generate or use --from, --to, or --pr.codeflex history.Keep credentials safe while using AI-powered generation.
.env files..env.example.