Headless mode
You can run Junie CLI in headless mode without interactive UI in CI/CD environments and build pipelines. Such integration will automatically trigger AI code reviews or other prompts as part of your CI or build pipeline.
Installation
npm install -g @jetbrains/junie-cli
brew tap jetbrains-junie/junie
brew update
brew install junie
Authentication token
Junie CLI requires an authentication token to run. To generate the token, go to junie.jetbrains.com/cli.
Usage
Authenticate Junie CLI using the --auth option and run the junie command with your prompt as a positional argument:
junie --auth="$JUNIE_API_KEY" "Review and fix any code quality issues in the latest commit"
To list all available command options, run:
junie --help
For the full list of available options and environment variables, see reference.
27 January 2026