Install
Install the CLI:Prerequisites
- Sign up for a Greptile account
- A local Git repository with commits to review
Sign in
Authenticate once on each device:greptile settings set apiBaseUrl <origin>. See CLI Reviews on Self-Hosted Greptile.
Check the signed-in account and org membership:
Review a branch
Checkout to the branch you’re working in and run a review from the repository root:main, and reviews the unmerged commits on the current branch.
Uncommitted changes are ignored.
Set the base branch explicitly and Greptile will compare current branch with this branch and review the unmerged commits:

Output formats
Use JSON when another tool needs to parse the review:--agent is an alias for --text. Plain text is also used automatically when output is piped.
Reopen a past review
Open a recent review picker:Command reference
Review options
Next
MCP
Use Greptile review data from your editor or coding agent.