codeflex-cli
v0.1.1
Published
CLI tool that generates blog posts from your git changes using AI
Maintainers
Readme
CodeFlex CLI
Generate developer-focused blog posts from git history or PR/MR context using OpenRouter models.
The binary is available as codeflex.
Install
npm install -g codeflex-cliOr run without installing:
npx codeflex-cli --helpRequirements
- Node.js 20+
- OpenRouter API key
Setup
Create a .env file in the project where you run the CLI:
cp .env.example .envThen set your key:
OPENROUTER_API_KEY=your_openrouter_api_key_hereGet a key at https://openrouter.ai/keys.
Usage
codeflex init
codeflex generate
codeflex config
codeflex style listGenerate from a commit range:
codeflex generate --from v1.0.0 --to HEAD --tone changelogGenerate from a PR/MR URL:
codeflex generate --pr https://github.com/org/repo/pull/123Security
- Never commit your
.envfile. - Keep only placeholder values in
.env.example.
Publish
Before publishing, verify the npm package name is available:
npm view codeflex-cli nameThen publish:
npm publish