Docs
CLI

CLI

The Floe command line interface (CLI) is the fastest way to get started with Floe.

Commands

init

Initializes a new Floe project in the current directory. This will create a .floe/config.json file in the current directory.

floe init

review diff

Reviews content and provides feedback based on changes between commits (git diff).

floe review diff [arguments]

Arguments

ArgumentDescriptionDefault
[diff]The diff to compare.HEAD

Options

OptionDescriptionDefault
--fix <fix>Enables 'fix mode'. Allows the user to step through issues and accept or deny suggested changes.false
--model <model>Set to pro or basic to specify which type of tokens to use.pro

Example

# Review the diff between the current commit and the previous commit
floe review diff HEAD~1

review files

Reviews content and provides feedback for entire files.

floe review files [arguments] [options]

Arguments

ArgumentDescriptionDefault
[files...]A space separated list of glob patterns to evaluate.include glob pattern specified in each ruleset

Options

OptionDescriptionDefault
--ignore <ignore...>A space separated list of glob patterns to ignore.
--fix <fix>Enables 'fix mode'. Allows the user to step through issues and accept or deny suggested changes.false
--ruleset <ruleset>Only evaluate against the specified ruleset.All rulesets
--model <model>Set to pro or basic to specify which type of tokens to use.pro

Example

# Review the diff between the current commit and the previous commit
floe review files 'apps/docs/**' --ignore 'apps/docs/README.md'