Install
Section titled âInstallâflo ships on npm as flo-tools (its binary is flo). Install it globally:
npm install -g flo-toolsOr run it on demand without installing:
npx flo-tools --helpUpgrade later with:
npm install -g flo-tools@latestThe source lives under tools/flo. For the release flow, see the Contributing guide.
First-run setup
Section titled âFirst-run setupâflo setup walks you through a one-time per-repo config â trunk branch, optional branch-name prefix, default PR submission mode. Config is stored outside the repo, under ~/.flo/projects/<host>/<owner>/<repo>/config.yml, so thereâs nothing to .gitignore.
? Trunk branch (main)? Prefix your branches with a personal tag? (Y/n)? Prefix (bk)? How should `flo submit` open PRs? (Use arrow keys)⯠Draft â safer default, ready for review later Open â immediately ready for reviewYou donât strictly need to run flo setup first â any other command will offer to run it inline if no config is found.
A typical loop
Section titled âA typical loopâflo sync # fetch, prune merged branches, restackflo commit -a -m "wip" # branches off trunk if needed, then commitsflo submit # push + open a draft PR
# come back laterflo modify -a # amend with new changesflo submit # PR is updated automatically by the pushRun project recipes
Section titled âRun project recipesâflo run <name> executes commands declared in a repoâs flo.yml. Top-level shortcut works too: flo test if test isnât a built-in.
commands: test: description: Run the test suite command: pnpm --filter flo test aliases: [t]flo test # â pnpm --filter flo testflo t -- --watch # extra args appended with shell-safe quotingFor the full flo.yml schema, see Configuration.
Where to next
Section titled âWhere to nextâ- The full Command reference with every flag.
- Common Recipes for
flo.yml. - The Contributing guide if you want to hack on flo itself.