DevFlow Command Center CLI - Synchronized project execution control for AI-powered development
npm install dflowclibash
npm install -g dflowcli
`
Quick Start
$3
`bash
cd your-project
devflow init
`
This will:
- Connect to your DevFlow Command Center project
- Generate a CLAUDE.md with MCP tool documentation
- Set up the .devflow-context/ directory for context sync
- Configure Claude Code MCP integration
$3
`bash
devflow status
`
Watch tasks as they're assigned, in-progress, and completed.
$3
`bash
devflow sync
`
Exports all project context to local markdown files:
- .devflow-context/ACTIVE.md - Current task details
- .devflow-context/PROJECT.md - PRD, milestones, artifacts
- .devflow-context/CLIENT.md - Client info, communications
- .devflow-context/EXECUTION.md - All deliverables and tasks
- .devflow-context/DECISIONS.md - Decision log
- .devflow-context/ACTIVITY.md - Recent activity
Commands
| Command | Description |
|---------|-------------|
| devflow init | Initialize DevFlow in current project |
| devflow status | Show current execution status |
| devflow tasks | List all tasks and their status |
| devflow sync | Sync project context to local files |
| devflow watch | Watch for real-time execution updates |
| devflow login | Authenticate with DevFlow |
| devflow --help | Show all available commands |
$3
`bash
devflow login \
--url https://devflow.now \
--token YOUR_TOKEN \
--actor-id YOUR_USER_ID \
--actor-name "Your Name"
`
$3
`bash
Start a task
devflow task start
Block a task
devflow task block --reason "Waiting for API credentials"
Complete a task
devflow task complete --note "Feature implemented and tested"
Add a note to a task
devflow task note --type decision --content "Using PostgreSQL for JSON support"
List task notes
devflow task notes
`
$3
`bash
View execution state
devflow exec status --project
Watch real-time activity
devflow exec watch --project
`
Environment Variables
Set these in your project's .env file:
`bash
DEVFLOW_PROJECT_ID=your-project-uuid
DEVFLOW_API_URL=https://devflow.now/api
`
Claude Code Integration
After running devflow init, your CLAUDE.md will contain instructions for Claude Code to use the MCP server. Install the MCP server:
`bash
npm install -g dflowmcp
`
The init command auto-configures your Claude Code MCP settings.
$3
| Tool | Description |
|------|-------------|
| get_active_task | Get currently assigned task |
| start_task | Start working on a task |
| complete_task | Mark task as done |
| block_task | Report a blocker |
| log_progress | Log progress updates |
| add_task_note | Add structured notes |
| sync_project_context | Sync context to local files |
Configuration
The CLI stores configuration in ~/.devflow/config.json:
`json
{
"apiUrl": "https://devflow.now",
"token": "eyJhbGciOi...",
"actorId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"actorName": "Sarah"
}
`
Real-Time Synchronization
All changes are instantly visible across:
- Web UI (devflow.now/command-center)
- CLI (devflow watch`)