Global Flags
These flags are available on all commands:fossa review
Analyzes modified files for code quality issues, bugs, security vulnerabilities, and style violations.
Usage
Flags
Review Modes
- Interactive (Default)
- Auto-fix
- AI Agent
Navigate files with issue counts, preview suggested fixes, and apply them one by one.
fossa pr suggestions
Fetch AI-powered suggestions for open pull requests.
Usage
Flags
fossa pr business-validation
Validate a local diff against the business rules/acceptance criteria of a task. Useful before merging to confirm the implementation matches the task intent.
Usage
Flags
fossa auth
Manage authentication with the Fossa API.
auth login
auth logout
auth status
auth team-key
FOSSA_TEAM_KEY environment variable.
auth team-status
auth token
FOSSA_TOKEN environment variable.
fossa hook
Manage pre-push Git hooks for automatic code review before pushing.
hook install
hook uninstall
hook status
Skipping the Hook
fossa config centralized
Manage centralized configuration from the CLI.
Usage
Subcommands
Flags
For a complete walkthrough, see: /en/how_to_use/code_review/configs/centralized_config#cli-dedicated-section
fossa config repo
Inspect and update repository settings stored in Fossa. Team-key auth is required. Use . to target the current repository.
fossa config repo and fossa config remote are aliases for the same command group.Usage
Subcommands
Flags
fossa rules
Create, update, and view Fossy Rules — structured rules that Fossa applies during review.
Usage
Subcommands
rules create Flags
rules update Flags
rules view Flags
fossa skills
Inspect and install the agent skills bundled with the CLI (Claude Code, Cursor, Codex).
Usage
Subcommands
Flags
fossa status
Show a consolidated Fossa status: auth mode, organization, repository, hook, bundled skills, and CLI version.
fossa diff
Open the current changeset in the Hunk terminal diff viewer.
hunk diff — every argument you pass is forwarded to it
unchanged, so any flag Hunk supports works here too.
Useful for eyeballing a changeset before running
fossa review on it. The same viewer backs
the interactive review experience; pass --no-hunk to fossa review if you prefer the
legacy list.fossa update
Update the Fossa CLI to the latest version from npm.
npm, yarn, pnpm, bun) and runs it. If an installer script was used, the CLI points you to the re-run command instead.