|
| 1 | +# flow |
| 2 | + |
| 3 | +> Unified CLI dispatcher for all flow-cli commands |
| 4 | +
|
| 5 | +The `flow` command is the main entry point for the flow-cli plugin. It provides access to all subcommands through a unified namespace. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## Usage |
| 10 | + |
| 11 | +```bash |
| 12 | +flow <command> [args] |
| 13 | +``` |
| 14 | + |
| 15 | +## Getting Help |
| 16 | + |
| 17 | +```bash |
| 18 | +flow help # Show all commands |
| 19 | +flow help <command> # Help for specific command |
| 20 | +flow help --list # List all commands |
| 21 | +flow help --search <term> # Search commands |
| 22 | +``` |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## Command Categories |
| 27 | + |
| 28 | +### Core Workflow |
| 29 | + |
| 30 | +| Command | Description | |
| 31 | +| ---------------------- | ------------------------------ | |
| 32 | +| `flow work <project>` | Start focused work session | |
| 33 | +| `flow pick [category]` | Interactive project picker | |
| 34 | +| `flow dash [scope]` | Project dashboard | |
| 35 | +| `flow finish [note]` | End session, optionally commit | |
| 36 | +| `flow hop <project>` | Quick switch (tmux) | |
| 37 | +| `flow why` | Show current context | |
| 38 | + |
| 39 | +### ADHD Helpers |
| 40 | + |
| 41 | +| Command | Description | |
| 42 | +| ------------------- | -------------------------- | |
| 43 | +| `flow start`, `js` | Just start (picks for you) | |
| 44 | +| `flow stuck` | Get unstuck when blocked | |
| 45 | +| `flow focus <text>` | Set current focus | |
| 46 | +| `flow next` | What to work on next | |
| 47 | +| `flow break [min]` | Take a proper break | |
| 48 | + |
| 49 | +### Capture & Track |
| 50 | + |
| 51 | +| Command | Description | |
| 52 | +| ------------------- | ------------------------ | |
| 53 | +| `flow catch <idea>` | Quick capture to inbox | |
| 54 | +| `flow crumb <note>` | Leave breadcrumb | |
| 55 | +| `flow inbox` | View inbox | |
| 56 | +| `flow win <text>` | Log a win | |
| 57 | +| `flow goal [set n]` | Daily win goal tracking | |
| 58 | +| `flow status` | View/update .STATUS file | |
| 59 | + |
| 60 | +### Context-Aware Actions |
| 61 | + |
| 62 | +| Command | Description | |
| 63 | +| -------------- | ----------------------------- | |
| 64 | +| `flow test` | Run tests (auto-detects type) | |
| 65 | +| `flow build` | Build project | |
| 66 | +| `flow preview` | Preview output | |
| 67 | +| `flow sync` | Smart git sync | |
| 68 | +| `flow check` | Health check (lint, types) | |
| 69 | +| `flow plan` | Sprint/project planning | |
| 70 | +| `flow log` | Activity log | |
| 71 | + |
| 72 | +### Timer & Routine |
| 73 | + |
| 74 | +| Command | Description | |
| 75 | +| ------------------ | ----------------------- | |
| 76 | +| `flow timer [min]` | Start focus timer | |
| 77 | +| `flow morning` | Morning startup routine | |
| 78 | + |
| 79 | +### Setup & Diagnostics |
| 80 | + |
| 81 | +| Command | Description | |
| 82 | +| -------------- | --------------------------- | |
| 83 | +| `flow doctor` | Check dependencies & health | |
| 84 | +| `flow setup` | Interactive setup wizard | |
| 85 | +| `flow install` | Install tools | |
| 86 | +| `flow upgrade` | Update flow-cli | |
| 87 | +| `flow learn` | Interactive tutorial | |
| 88 | + |
| 89 | +### AI-Powered |
| 90 | + |
| 91 | +| Command | Description | |
| 92 | +| ------------------- | ------------------------- | |
| 93 | +| `flow ai <query>` | Ask AI anything | |
| 94 | +| `flow do "request"` | Natural language commands | |
| 95 | + |
| 96 | +### Configuration |
| 97 | + |
| 98 | +| Command | Description | |
| 99 | +| ------------------ | ------------------ | |
| 100 | +| `flow config show` | Show settings | |
| 101 | +| `flow config set` | Set a config value | |
| 102 | +| `flow plugin` | Manage plugins | |
| 103 | + |
| 104 | +--- |
| 105 | + |
| 106 | +## Direct Command Access |
| 107 | + |
| 108 | +Most commands work directly without the `flow` prefix: |
| 109 | + |
| 110 | +```bash |
| 111 | +# These are equivalent: |
| 112 | +flow work my-project |
| 113 | +work my-project |
| 114 | + |
| 115 | +# Direct access commands: |
| 116 | +work, pick, dash, finish, hop, why |
| 117 | +catch, crumb, inbox, win |
| 118 | +timer, morning |
| 119 | +doctor, status |
| 120 | +``` |
| 121 | + |
| 122 | +--- |
| 123 | + |
| 124 | +## Examples |
| 125 | + |
| 126 | +### Starting Your Day |
| 127 | + |
| 128 | +```bash |
| 129 | +# Morning routine |
| 130 | +flow morning |
| 131 | + |
| 132 | +# Or quick version |
| 133 | +am |
| 134 | + |
| 135 | +# Start working |
| 136 | +flow work my-project |
| 137 | +# or just |
| 138 | +work my-project |
| 139 | +``` |
| 140 | + |
| 141 | +### During Work |
| 142 | + |
| 143 | +```bash |
| 144 | +# Log wins as you go |
| 145 | +flow win "Fixed the auth bug" |
| 146 | + |
| 147 | +# Check progress |
| 148 | +flow status |
| 149 | + |
| 150 | +# Take a break |
| 151 | +flow break 5 |
| 152 | +``` |
| 153 | + |
| 154 | +### Context-Aware Actions |
| 155 | + |
| 156 | +```bash |
| 157 | +# Run tests (auto-detects R/Node/Python) |
| 158 | +flow test |
| 159 | + |
| 160 | +# Build project (auto-detects Quarto/npm/R CMD) |
| 161 | +flow build |
| 162 | + |
| 163 | +# Preview output |
| 164 | +flow preview |
| 165 | +``` |
| 166 | + |
| 167 | +### Getting Help |
| 168 | + |
| 169 | +```bash |
| 170 | +# Search for git-related commands |
| 171 | +flow help --search git |
| 172 | + |
| 173 | +# Get help on sync |
| 174 | +flow help sync |
| 175 | + |
| 176 | +# List all available commands |
| 177 | +flow help --list |
| 178 | +``` |
| 179 | + |
| 180 | +--- |
| 181 | + |
| 182 | +## Dispatchers |
| 183 | + |
| 184 | +Flow-cli includes domain-specific dispatchers that are separate from the `flow` command: |
| 185 | + |
| 186 | +| Dispatcher | Domain | Example | |
| 187 | +| ---------- | ----------------- | -------------------- | |
| 188 | +| `g` | Git workflows | `g push`, `g status` | |
| 189 | +| `r` | R package dev | `r test`, `r check` | |
| 190 | +| `qu` | Quarto publishing | `qu preview` | |
| 191 | +| `mcp` | MCP servers | `mcp status` | |
| 192 | +| `obs` | Obsidian notes | `obs daily` | |
| 193 | +| `cc` | Claude Code | `cc`, `cc pick` | |
| 194 | + |
| 195 | +Get help for any dispatcher with `<dispatcher> help`. |
| 196 | + |
| 197 | +--- |
| 198 | + |
| 199 | +## Version |
| 200 | + |
| 201 | +```bash |
| 202 | +flow version |
| 203 | +# flow-cli v4.0.1 |
| 204 | +``` |
| 205 | + |
| 206 | +--- |
| 207 | + |
| 208 | +## Tips |
| 209 | + |
| 210 | +!!! tip "Use Direct Commands" |
| 211 | +For common commands like `work`, `dash`, `pick`, skip the `flow` prefix for speed. |
| 212 | + |
| 213 | +!!! tip "Search When Unsure" |
| 214 | +Use `flow help --search <term>` to find commands you don't remember. |
| 215 | + |
| 216 | +!!! tip "Tab Completion" |
| 217 | +If you have completions installed, `flow <Tab>` shows available commands. |
| 218 | + |
| 219 | +--- |
| 220 | + |
| 221 | +## Related |
| 222 | + |
| 223 | +- [Command Quick Reference](../reference/COMMAND-QUICK-REFERENCE.md) |
| 224 | +- [Dispatcher Reference](../reference/DISPATCHER-REFERENCE.md) |
| 225 | +- [Getting Started](../getting-started/quick-start.md) |
0 commit comments