Getting Started
Prerequisites
- Node.js >= 20.12
- Git
- GitHub CLI (gh) — required for PR and release commands
Installation
bash
npm install -D @alejandrochaves/devflow-cliInit Wizard
Run the interactive setup wizard to configure your project:
bash
npx devflow initThe wizard walks you through:
- Workflow preset — choose Scrum, Kanban, Simple, or Custom
- Ticket base URL — for linking tickets in PRs (skipped for Simple preset)
- Scopes — add project-specific scopes (or use defaults)
- PR checklist — customize or use defaults
- package.json scripts — auto-adds
commit,branch,prscripts - Commitlint — creates config with the devflow parser preset
- Husky — installs and creates
commit-msghook + optionalpre-pushhook - CI workflow — optionally generates
.github/workflows/ci.yml
Presets
| Preset | Best For |
|---|---|
| Scrum | Teams using Agile/Scrum with user stories and acceptance criteria |
| Kanban | Flow-based workflows with simpler issue types |
| Simple | Personal projects or small teams (no ticket numbers required) |
| Custom | Full control over all configuration options |
Visual Walkthrough
See devflow in action with these demos of the core workflow:
Creating a Branch

Making a Commit

Creating a PR

Quick Start
Add scripts to your package.json:
json
{
"scripts": {
"branch": "devflow branch",
"commit": "devflow commit",
"pr": "devflow pr"
}
}Then use the core workflow:
bash
# Create a branch
npx devflow branch
# Stage files and commit
npx devflow commit
# Create or update a PR
npx devflow prGlobal Options
Commands that modify git state support --dry-run to preview without executing:
bash
devflow commit --dry-run
devflow branch --dry-run
devflow pr --dry-runInteractive Navigation
All multi-step interactive commands support back navigation:
- Press Escape at any prompt to return to the previous step
This lets you review and change earlier choices without restarting the entire command.
Command Aliases
Most commands have short aliases for quick access:
| Command | Alias |
|---|---|
devflow branch | devflow b |
devflow commit | devflow c |
devflow pr | devflow p |
devflow amend | devflow a |
devflow undo | devflow u |
devflow fixup | devflow f |
devflow merge | devflow m |
devflow release | devflow rel |
devflow review | devflow rv |
devflow comments | devflow cm |
devflow stash | devflow st |
devflow worktree | devflow wt |
devflow log | devflow l |
devflow status | devflow s |
devflow test-plan | devflow tp |
devflow lint-config | devflow lint |