Skip to main content

Requirements

  • macOS 15 or later
  • Xcode 16 or later
  • Swift 6.1+ (only needed to build from source)

Install

Upgrade the same way:

Verify

doctor checks Xcode and its version, whether a simulator is booted, whether the runner is extracted, grantiva.yml, the git repository, your Grantiva auth, and GitHub App configuration. A failing required check exits 1; the optional ones are advisory and do not affect the exit code, so grantiva doctor || exit 1 is a usable CI preflight.

Extract the runner

UI automation runs through GrantivaAgent, a WebDriverAgent embedded in the CLI. Extract it once after installing or upgrading:
Commands that drive the simulator extract it on demand too, so this step is optional — running it up front just moves the one-time cost out of your first test run.

Authenticate

Local capture and comparison work with no account. You need credentials for grantiva ci run, cloud baselines, and every grantiva console command.
Opens your browser and polls for up to 5 minutes. Credentials are written to ~/.grantiva/auth.json with mode 0600.
Check what the CLI is using:
It reports the source as env or file, the base URL, and the key prefix. grantiva auth logout deletes ~/.grantiva/auth.json; it does not clear GRANTIVA_API_KEY from your environment.

Next steps