Skip to Content
Agent integrationsVeriProof CLI

VeriProof CLI

Use the CLI to configure applications, manage API keys, check a deployment, inspect session evidence, test rules before release, and keep application definitions in source control. The CLI supports Managed SaaS and Customer-managed Azure.

Requirements

  • Python 3.10 or later
  • An active VeriProof customer account with CLI access

Install

Download the approved CLI from your customer portal. You do not need a GitLab account or a package-source URL.

  1. Sign in to your VeriProof customer portal.
  2. Open Tools and SDKs.
  3. Choose VeriProof CLI. Customer Administrators see the CLI selected for them.
  4. Select the CLI download shown for the approved version.
  5. Choose PowerShell or Bash and run the install commands.
  6. Open a new terminal.
  7. Run the commands under Sign in and verify.

The portal downloads the approved veriproof-cli wheel. The shown pipx command keeps the CLI separate from application Python environments.

If you already installed the CLI with pip in a virtual environment, activate that environment and upgrade it there. The following commands download and install the CLI 1.0.4 wheel from GitLab.

curl -fLO https://gitlab.com/api/v4/projects/85245455/packages/generic/veriproof-cli/1.0.4/veriproof_cli-1.0.4-py3-none-any.whl python -m pip install --upgrade ./veriproof_cli-1.0.4-py3-none-any.whl

Confirm the installation:

veriproof --version veriproof --help

The install commands add the CLI command to your terminal path. Opening a new terminal applies that change before you run veriproof.

Configure a deployment

Sign in and verify in Tools and SDKs already provides these commands with your current portal address. Do not enter an API or ingest URL.

veriproof profile add production https://my.veriproof.app veriproof auth login veriproof doctor

For Customer-managed Azure, use that deployment’s portal URL:

veriproof profile add enterprise https://veriproof.contoso.com veriproof --profile enterprise auth login veriproof --profile enterprise doctor

The CLI requires HTTPS. It reads the deployment’s public service addresses and OAuth settings from /.well-known/veriproof-configuration. The profile file contains no credentials.

profile add selects the saved profile. Use --profile NAME for one command, or set VERIPROOF_PROFILE for the current shell or automation process.

veriproof profile list veriproof --profile enterprise profile show veriproof --profile enterprise profile refresh

Run profile refresh after a deployment administrator changes a service address or OAuth registration. If its OAuth binding changed, the CLI clears the saved sign-in credential and asks you to sign in again.

Sign in

veriproof auth login opens the identity provider configured for the selected deployment. For a remote or headless terminal, use the OAuth device-code flow:

veriproof auth login --device-code --no-browser

Open the displayed portal URL in a browser, enter the short code, and approve access. Device-code sign-in does not open a callback listener on the terminal host.

For regular browser sign-in, the callback listener accepts one response on 127.0.0.1 and then closes. The browser confirms the selected profile. VeriProof stores the refresh credential in the operating-system credential store, not the profile file.

If the CLI reports that the credential store could not save your sign-in on Linux or WSL, configure a Secret Service keyring  and sign in again. On a Windows workstation, you can also install the CLI in PowerShell and sign in there. Your Python application can stay in WSL and use its own application SDK key.

veriproof auth status veriproof auth logout

auth status checks the deployment and shows your email, user ID, organization, and role. A saved credential alone does not confirm an active sign-in.

Sign in from a pipeline

A pipeline signs in as a service principal instead of a person. Store its client ID and secret as pipeline secrets. The CLI requests a short-lived token for each command and stores nothing:

export VERIPROOF_CLIENT_ID="<service principal client ID>" export VERIPROOF_CLIENT_SECRET="<client secret>" veriproof --profile production policy test --application <APPLICATION_ID>

With a Microsoft Entra workload identity, set VERIPROOF_CLIENT_ASSERTION to the Entra access token instead of VERIPROOF_CLIENT_SECRET. Request that token for your deployment’s VeriProof audience; Azure Resource Manager and Microsoft Graph tokens are refused. A service principal acts with its own role and group scope.

Work with applications and evidence

veriproof init veriproof apps list veriproof apps list --all veriproof apps get <APPLICATION_ID> veriproof apps create "loan-review-agent" --environment development veriproof keys list <APPLICATION_ID> veriproof keys create <APPLICATION_ID> veriproof keys create <APPLICATION_ID> --human-review-access veriproof sessions list --application-id <APPLICATION_ID> veriproof sessions list --application-id <APPLICATION_ID> --all veriproof sessions get <SESSION_ID> veriproof sessions export <SESSION_ID> --output evidence.zip

CLI 1.0.4 uses Development when you omit --environment. If you use CLI 1.0.3, pass --environment development explicitly. Pass --environment staging to start in Staging. To move an application to Production, request production from the application’s page in the portal once it’s set up.

API-key creation and rotation show a new secret once. Store it in your approved secret manager. Session export does not replace an existing file unless you pass --force.

Use --human-review-access with keys create or keys rotate when the application needs to confirm outcomes after human review.

For independently verified business outcomes, use keys create --verified-outcomes. The two options can’t be combined.

Both require Administrator permission to manage keys. Without that permission, the command exits with code 4 and shows the server’s message. Successful output states whether the key has human-review access.

veriproof init writes project configuration in the current folder. Review the generated file before you commit it. It does not store a sign-in credential or API key.

Rotate or revoke a key

Check the previous secret’s expiry before rotating a running application’s key. Coordinate the change so you can store the replacement and update every application instance within the available window.

veriproof keys rotate <APPLICATION_ID> <KEY_ID> veriproof keys rotate <APPLICATION_ID> <KEY_ID> --human-review-access

The key ID stays the same. Do not revoke it after rotation; that would also disable the new secret. Revoke a key only when the application no longer needs it:

veriproof keys revoke <APPLICATION_ID> <KEY_ID>

Test rules before release

veriproof policy test replays an application’s or group’s saved rule tests against the current rules and, optionally, a candidate:

  • the positive, negative, and boundary tests recorded when each rule’s readiness was checked;
  • the saved rule test datasets of recorded sessions, for every rule the candidate changes.
veriproof policy test --application <APPLICATION_ID> veriproof policy test --application <APPLICATION_ID> --candidate <RULE_DRAFT_ID> --fail-on-change veriproof policy test --group claims --definition claims-group.json --junit results/rules.xml
OptionUse
--application ID or --group SLUGTest the rules that apply to this application, or to the group’s applications.
--candidate DRAFT_IDTest a rule draft in place of the rule’s last deployed version.
--definition FILETest the rules in a configuration document. Rules are matched by name; new names are added.
--fail-on-changeExit with code 5 when any outcome changed or couldn’t be evaluated.
--junit FILEWrite JUnit XML for your CI system.
--timeout SECONDSWait this long for the run. The default is 300.

Each result shows the rule, the test case, and the expected and actual outcome: Allow, Warn, Transform, Escalate, or Deny. A rule test expects the outcome it was written for. A recorded session expects what the current rule decides, so a change means the candidate would decide that session differently.

A run only reads rules and recorded sessions. It never changes a rule, a deployment, or enforcement. Runs are bounded; when a run stops early, the result says what it covered. You need policy workspace access to the application or group. The latest run appears with the application’s policy rules in the portal.

See Test rules in CI for GitHub Actions and Azure DevOps examples.

Export and import definitions

Keep an application’s or group’s governance definition in source control as a veriproof.configuration/v1 document:

veriproof config export --application <APPLICATION_ID> --out refund-assistant.json veriproof config export --group <GROUP_ID> --out claims-group.json veriproof config import refund-assistant.json --dry-run veriproof config import refund-assistant.json

config export writes to standard output unless you pass --out, and doesn’t replace an existing file unless you pass --force. config import targets the application or group recorded in the document. Pass --application or --group to import it somewhere else.

Import lists changes by section and saves rules as drafts for a person to deploy. Changes to enforcement appear as needs_person; production changes become approval_requested.

Exit code 1 means a section failed or your role doesn’t permit the change. See Import a definition for document contents and how changes are applied.

Verify exported evidence

To verify an exported evidence pack without calling the VeriProof API, first install the separate public veriproof-verify tool. Then run:

veriproof verify evidence.zip

See Verify exported evidence for signed downloads and platform instructions.

veriproof doctor is read-only. It checks local profile and credential configuration, then checks the selected deployment’s organization proof provider and API health. JSON output labels each check as local or deployment.

Help, output, and exit codes

Run veriproof --help or veriproof COMMAND --help for command-specific arguments and options. Use veriproof --version to print the installed version.

Lists show named columns and complete IDs. Add --json before or after a subcommand when you need structured output.

JSON errors go to standard error. Each includes a category, code, retry guidance, correlation ID, and HTTP status when available. Keep the correlation ID for troubleshooting, and remove credentials and evidence content before sharing diagnostic notes.

CodeMeaning
0The command completed.
1The operation could not be completed.
2The command or option was invalid.
3Sign-in is required or expired.
4Your VeriProof role does not permit the action.
5policy test --fail-on-change found changed or failed outcomes.

Credential safety

  • Download the CLI only from Tools and SDKs in your VeriProof portal.
  • Use VERIPROOF_ACCESS_TOKEN only with a short-lived token in controlled automation.
  • Store VERIPROOF_CLIENT_SECRET in your pipeline’s secret store. Give each pipeline its own service principal, limited to the groups it manages.
  • Customer-managed Azure deployments can enable workload identity. Set VERIPROOF_AZURE_WORKLOAD_TOKEN to a short-lived Azure access token for the deployment’s VeriProof audience, not Azure Resource Manager. The CLI exchanges it for an organization-bound VeriProof token and does not store either token.
  • Do not put refresh credentials or API keys in the profile file.
  • Review build logs when a command can return a new API-key secret.

Update or remove the CLI

Tools and SDKs always shows the approved CLI version. To update, open the page again, download the current package, and run its install command. pipx install --force replaces the installed CLI.

When retiring a workstation, sign out of each saved profile before removing it. Then uninstall the CLI:

veriproof --profile organization auth logout veriproof profile remove organization python -m pipx uninstall veriproof-cli

Replace organization with the profile name shown by veriproof profile list. Removing portal access prevents future downloads but does not remove installed files.

Shell completion

The CLI can generate completion scripts for Bash, Zsh, and Fish. Bash users can add this line to ~/.bashrc:

eval "$(_VERIPROOF_COMPLETE=bash_source veriproof)"

See Agent integration troubleshooting for sign-in, discovery, and connectivity errors.

Last updated on