The command-line client for the Proofline review API. See the CLI documentation for commands.
This repository is the published distribution of the Proofline CLI. openapi.public.json is the generated public API contract pinned for this revision. During the build, build.rs generates request URLs for the operations it declares. Open an issue for changes to openapi.public.json, generated code, or workflows. Pull requests are welcome for the hand-written installer in install.sh, commands in src/, release scripts in scripts/, and tests in tests/.
On Linux and macOS, install the CLI and start setup from your coding agent's shell:
curl -fsSL https://proofline.sh/cli | sh
proofline initIf you started on the signup page, use the proofline init command it gives you. Its organization options select the team shown on that page. Approve sign-in if prompted and install the GitHub App if it is missing. Once Proofline records the installation, the CLI prints the setup brief. Run proofline setup status to see the current gaps.
proofline init requests the setup:write and org:configure scopes when it needs a new sign-in. It waits up to 15 minutes by default. Change the wait with --timeout MINUTES, or use --no-browser to print the install address without opening it. Exit code 0 means the brief is printed, 2 that the installation was not recorded in time, 3 that the sign-in or token was refused, and 4 that Proofline could not be reached. proofline setup guide prints the same brief and needs no sign-in. When a token in PROOFLINE_TOKEN works in more than one organization, add --org ORGANIZATION_ID to init and every later setup command, so each reads the organization you authorized.
proofline setup status refreshes the gap list. It prints one line for each gap, with its scope (Organization or the repository's full name), a sentence naming what is missing, and the command to run. For a cloud trust or connection gap, follow its command and use the recorded repair link when someone needs to act in a browser. While the GitHub repository import runs, or after it fails, the import's state, detail and any recovery link come first. An empty list prints Setup has no gaps., which does not mean an environment was checked. proofline setup status --json prints the complete hosted status, including gap codes, readiness, blockers, links and first-review candidates. proofline setup candidates [--query NAME] prints, as JSON, the repositories and deployments an answer may name. Both need setup:write, like proofline config get. The agent saves answers with the configuration commands.
To sign in outside setup, run proofline login. To open the organization selector in your browser, run proofline setup. Pass --organization NAME to open that GitHub organization's installation page, or --print to print the address.
proofline update replaces the binary the installer put in ~/.local/bin, or in PROOFLINE_INSTALL_DIR when you set it, and an interactive command suggests it when a newer release exists. A source build or package-manager installation is told to update the way it was installed instead.
proofline completions SHELL prints a completion script for zsh, bash, fish, powershell, or elvish without signing in or making a network call. For example, add source <(proofline completions zsh) to ~/.zshrc.
Official releases include proofline-x86_64-pc-windows-msvc.tar.gz with proofline.exe. Download the archive and SHA256SUMS from the same GitHub release, and compare its SHA-256 hash using Get-FileHash -Algorithm SHA256. Extract the archive with tar -xzf and put proofline.exe in a directory on PATH. Run proofline init to start setup. The CLI stores the sign-in in Windows Credential Manager. To update, close running Proofline processes and replace the executable from a verified release. The Unix shell installer and self-update command do not install Windows binaries: proofline update refuses on Windows and names the archive, and the update notice names the new version's archive download instead of proofline update.
On Linux, coding agents that omit DBUS_SESSION_BUS_ADDRESS and XDG_RUNTIME_DIR
can still use the stored sign-in when the standard /run/user/<uid>/bus socket
is available. An explicit bus address or runtime directory keeps precedence.
PROOFLINE_TOKEN continues to take precedence over the stored sign-in.
A host with no keychain at all, such as a shell over SSH or in a container,
cannot keep a sign-in: proofline login refuses before any approval and names
/account/tokens in the console, where the person creates a personal token to
set as PROOFLINE_TOKEN. A token that works in one organization needs no
--org: commands that target an organization read it from the server, and
proofline mcp reads none.
To register MCP without a prompt, run proofline agent install CLIENT --yes. Supported clients include claude-code (or claude), cursor, codex, gemini, and kiro. Without --yes, the command previews the entry and asks for confirmation, while --print previews without writing. Existing Proofline entries remain unchanged. New entries use this executable's absolute path and store no credentials. Claude Code uses the top-level mcpServers in ~/.claude.json; a custom CLAUDE_CONFIG_DIR requires manual configuration with --print.
For Codex's default configuration, add the entry to ~/.codex/config.toml with this command.
proofline agent install codex --yesIf CODEX_HOME points to a different directory, preview the server entry without editing your configuration.
proofline agent install codex --printCopy the printed [mcp_servers.proofline] section into config.toml in the directory selected by CODEX_HOME.
Native knowledge, fix and configuration commands send the selected organization as organization_id in each MCP tool call. These commands need a person's token: a service account key reads only reviews, findings and review guidance over MCP, and the server refuses it the rest. With a PROOFLINE_TOKEN that works in more than one organization, select an authorized UUID using --org ORGANIZATION_ID or PROOFLINE_ORGANIZATION_ID; the flag takes precedence. A token that works in exactly one, such as a personal token, needs neither. A stored device sign-in uses its approved organization and refuses a different selection. For example, proofline --org ORGANIZATION_ID config get targets that organization with a shared MCP OAuth credential. Selection grants no authority: the server checks each call, and a foreign target returns its refusal with a nonzero exit. MCP OAuth credentials remain limited to MCP and cannot use REST commands. The raw proofline mcp bridge preserves the caller's messages and per-call target unchanged. It needs no organization selection and sends the MCP server nothing before the caller's first message, so it works with a service account key or a token that works in several organizations.
proofline review --path src/main.rs reviews only that file's local changes against the normal merge-base. The path is literal and repository-relative; the command refuses directories, globs, and ... Combine it with --staged to read the index, or --include-untracked to select a new, non-ignored file. The command preserves the real index and applies the usual secret preflight. You cannot combine --path with pushed-commit, range, or pull-request review.
proofline reviews --repository-id UUID --cursor CURSOR returns one page with its continuation metadata, and all flags are optional. proofline routing REVIEW_ID reads recorded routing. proofline run --repo owner/name --pr 7 --run 2 reads one retained run, and proofline history --repo owner/name --pr 7 reads all recorded runs. These commands can find the reviews your token can still read after a repository disconnects. With a clone URL or Git remote, they resolve the project on its registered host and read its runs by repository ID. A repository with no reviews in the organization exits nonzero. proofline findings --pr 7 finds the pull request's newest review through the same route and counts only runs of the repository whose full name matches. None of these commands reads the organization's review list.
proofline rerun REVIEW_ID requests the original immutable subject and waits, while --no-wait returns its link. Reruns require reviews:rerun. proofline guidance --repo owner/name requires guidance:read, and proofline fix-prompt FINDING_ID requires findings:read. History, guidance, and fix prompts print JSON; prompt text remains untrusted.
Repository commands use the checkout’s origin by default. Use --remote NAME to select another remote or --repo URL to supply a clone URL. The CLI sends the host and full project path to Proofline, including subgroup names. The CLI recognizes gitlab.com and otherwise looks for a GitHub repository on the exact remote host, including GitHub Enterprise Server. Use --source-provider gitlab for private GitLab hosts or --source-provider git for other Git servers. Hooks can read the same choice from PROOFLINE_SOURCE_PROVIDER. A connected private Git repository can use proofline review --source-provider git --range BASE..HEAD to request a review of two pushed commits.
proofline review --range BASE..HEAD --fail-on serious exits 3 when a complete review has an unresolved finding at or above the threshold. PR reviews use the server’s effective open-item counts; other reviews count unresolved findings, including those a partial code assessment recorded. Incomplete and unavailable results retain their nonzero exits. --fail-on cannot be combined with --no-wait.
In GitHub Actions, proofline ci review --annotations prints unresolved findings as workflow annotations at verified cited lines. Findings without a verified head location appear on the job. The review link contains the full result.
For a CodePipeline execution or Amplify job, run proofline ci deploy --commit SHA --aws-run ID in a later pipeline. Add --environment-id UUID to select its Proofline environment. The output names the AWS provider and run ID. Proofline records successful CodePipeline executions and failed, stopped or cancelled ones it ties to the ECS rollout that served the commit. A reader inside a still-running execution finds no matching deploy, waits until its timeout and exits 2. On a GitHub workflow_run event, an explicit --aws-run disables the default Actions run and attempt filters.
Outside a workflow_run event, name the deploy with --environment, --environment-id, --aws-run, --deployment or --run. When Proofline records one GitHub deploy in several Proofline environments, add --environment-id to select the intended copy.
proofline ci deploy --environment production --until 1h waits until Proofline has recorded the selected deploys' checks through the hour check, then exits 0 when each recorded HEALTHY with no gap, 3 when a deploy failed or regressed, and 2 when the result is not established, including when a deploy reads a state this CLI version does not know. After a read that answered, the wait keeps reading through a read that fails in transport, times out or gets a 5xx answer, and exits 4 after five such failures in a row, naming the last error; the first read and a refusal end it at once. The default deadline for --until landing, --until 20m and --until 1h starts at 30 minutes and extends to the latest due time among selected deploys whose check can still be recorded. --until 1d requires --timeout. --environment-id (the Proofline environment's UUID, the environment_id that --json prints for each deploy), --environment (the GitHub Environment name), --task, --deployment (the ID of the GitHub deployment a pipeline created), --run and --attempt select the deploy, and on a workflow_run event the commit, --run and --attempt default to the completed run's. When --run defaults to a completed run that did not succeed, the command waits at most 5 minutes for a deploy from that run, then exits 2 with a last line that names the run's conclusion and says it recorded no deploy; a deploy the run did record gets the usual wait for its check. --json prints the response. Each deploy prints one line per check. A deploy that rolled the environment back to an earlier commit first prints a rollback line with the page of the deploy it restores, when Proofline recorded one, and the pages of the deploys it rolled back. A deploy whose newest check found its service serving an earlier deploy again first prints a rolled back line, and stops printing it once a later check finds none; with --json the response carries it as rolled_back. A regressed deploy that a later rollback deploy of the same task rolled back within 30 days first prints a rolled back by the deploy of <page or landing> line naming that rollback deploy's page, or its landing time when no page opens in that environment; with --json the response carries it as rolled_back_by. Any of these lines can appear together for one deploy. A rollback's exit code comes from its checks like any other deploy's; none of these lines changes it or means the rollback fixed anything. A deploy whose deploy checks ended without recording the --until check ends the wait at once with exit 2, and the last line names the check and the deploy's page; a check that is overdue while the checks still run keeps the wait going until the timeout.
Proofline cannot analyze a scan's files yet. An accepted scan reads the repository's files at its commit but analyzes none of them, so a scan of a repository with files ends FAILED or INCOMPLETE with no findings, and the command exits 2. That empty finding list says nothing about the code.
proofline scan --ref main --budget 200 scans the whole repository at one commit, not a pull request's change. GitHub resolves the ref once, when the request arrives, and the scan records that commit; --commit SHA names an exact full SHA instead, and you give one of the two. The command waits for the scan review and prints it like proofline review, while --no-wait prints its link and --json prints JSON.
--budget is required and has no default: it is the most credits the whole scan may spend, capped by the organization's on-demand scan limit, and a limit of 0 turns on-demand scans off. Results stay in Proofline and are never posted to GitHub. The token needs scans:request and live GitHub write access to the repository. The default sign-in omits that scope, so run proofline login --scope reviews:read --scope findings:read --scope reviews:request --scope scans:request; --scope replaces the defaults, so list every scope you want. A sign-in that holds only scans:request and a repository restriction can request a scan, but cannot read the review it produces, so the command prints the scan's link instead of waiting.
When the server refuses the scan request, the command prints the server's reason and exits 1. With the organization's limit at 0, it then asks you to have an organization administrator raise the on-demand scan limit in review settings. When GitHub does not show your account write access to the repository, it asks you to get that access from a repository administrator. Neither suggests signing in again, which cannot change either answer. A sign-in without scans:request still gets the proofline login --scope … command above, and one whose repositories exclude this one is told to check the token's repositories.
The CLI prints the request ID before it sends anything and never repeats the request. When the outcome is unknown (the connection failed, the server failed, or its answer was unreadable) the command exits 4; repeat it with --request-id ID to read the first resolution instead of paying for a second scan. If GitHub cannot resolve the ref, nothing starts and nothing is spent, but repeating that ID returns the same answer, so omit --request-id to ask again; with --json the resolution is still printed. Other exit codes match proofline review: 0 for a complete result, 2 for an incomplete or unfinished one and 1 for a refusal or error.
review and findings print each finding’s ID in text output for use with fix context, fix-prompt, and review --verify.
proofline fix list --repo owner/repository --pr 42
proofline fix context FINDING_ID
proofline fix verify --review REVIEW_ID --findings FINDING_ID --commit FULL_PUSHED_SHA
proofline fix status REQUEST_IDfix list returns the open findings at the live pull-request head that Proofline can re-verify: ENV findings, migration compatibility findings and code findings whose reproduction kept its test as a check, including availability, assessment gaps, and truncation. fix context reads captured source excerpts and untrusted remediation. fix verify requests re-verification of 1 to 20 distinct findings from one review at the exact commit you pushed. The server confirms that the commit is the live head, and optional --note accepts 1 to 2,000 characters. The command makes one attempt; after an ambiguous failure, inspect the review before requesting again.
review --verify names findings in a patch review that runs no assessment. Each local outcome is PENDING until the review ends, then NOT_VERIFIED. If a finding has a kept check, fix context and review --verify give its command and last result. Read the command from fix context to run the check against your fix before pushing.
These fix commands return MCP tool results as JSON, and isError: true exits nonzero. A successful read is not a verdict: PENDING, UNAVAILABLE, and NOT_VERIFIED retain their meaning. Only the server's recorded re-verification establishes a fix. Reads require reviews:read, while verification also requires reviews:request and current repository write access.
proofline session prompt FINDING_ID returns the protected prompt and eligible connections. After reviewing it, run proofline session start FINDING_ID --connection-id UUID --prompt-digest DIGEST. This command starts once and can incur vendor charges. proofline session get SESSION_ID reads status, and proofline session list FINDING_ID lists the finding's recorded sessions, such as after a start whose answer was lost. These commands require a personal token with agent_sessions:start; device sign-in cannot grant this authority.
proofline ask --repo owner/name 'Where is authentication enforced?'
proofline architecture ENVIRONMENT_IDKnowledge commands return the MCP tool result as JSON, including untrusted-text wrappers, citations, and isError. A refused tool exits nonzero. They use the same origin and credential as the MCP bridge and never retry a tool call. Knowledge reads require reviews:read and knowledge:read.
If you plan to change settings and read the effective document, request both org:read and org:configure in one device sign-in. Approve both permissions in the browser as an organization administrator. A new login replaces the stored sign-in for this origin.
proofline login --scope reviews:read --scope org:read --scope org:configure
proofline config get --explainFor the setup tools, use the setup sign-in below. To read effective settings with that credential too, add --scope org:read to the same login request.
proofline login --scope reviews:read --scope findings:read --scope guidance:read --scope reviews:request --scope setup:write --scope org:configure
proofline config get
proofline config get --environment ENVIRONMENT_ID
proofline config get --repo owner/name
proofline config get [--repo REPOSITORY_ID] --explain
proofline config get --repo owner/name --explain
proofline config get --gcp-installer CONNECTION_ID --namespace NAMESPACE --namespace NAMESPACE
proofline config operations --area REPOSITORY_REVIEW_SETTINGS --subject repository
proofline config operations --agent-access console_only
proofline config describe OPERATION --param repo_id=REPOSITORY_ID
proofline config propose change.json
proofline config apply CHANGE_ID
PROOFLINE_TOKEN=ENTERPRISE_READ_GRANT proofline config get --enterprise ENTERPRISE_ID [--explain]
proofline config plan --file change.yaml [--repo REPOSITORY_ID] [--method put|patch]
PROOFLINE_TOKEN=ENTERPRISE_CONFIGURE_GRANT proofline config plan --enterprise ENTERPRISE_ID --file change.yaml [--method put|patch]All five commands print the hosted MCP tool result as JSON, except get --explain, get --enterprise and plan --enterprise, described below. get --gcp-installer reads the organization and generates that GKE connection's installer script for the namespaces you approved; give each with --namespace. It cannot be combined with --environment or --repo. get --explain prints the effective settings document with the source of each value, for the organization or with --repo for one repository, including the keys its .proofline.yaml sets. It needs org:read. operations --agent-access lists only the operations an agent applies (apply), an administrator approves in the browser (approval), or a person makes in the console (console_only); it combines with --area and --subject. get needs setup:write; describe and apply need org:configure; operations and propose accept either scope, although an ordinary proposal needs org:configure. A missing scope prints the server's refusal and a sign-in hint. setup:write and org:configure end when the approving browser session ends. proofline status reports whether they are active or ended.
The change file is a JSON object with operation, parameters and input, plus optional expected_revision from describe and cited_files. Each citation names a repository_id, full commit_sha and repository-relative path. Omit input for an operation without a body. propose adds a fresh request_id on each invocation and prints the diff and change ID; a sensitive proposal also includes its browser approval link. An optional top-level organization_id must be a UUID matching the selected organization; a conflicting or invalid value is refused before any request. The file stays unchanged. Proposing applies nothing and exits successfully when the server records it. After an uncertain response, run proofline config get and read configuration.pending_changes before proposing again. It lists up to 20 of the newest sensitive changes still waiting for approval that you may see, with their approval links, and up to 20 ordinary proposals that apply can still apply, by change ID. A change missing from it may still have been recorded and since decided, expired or fallen outside the list, so check the console's approval list before proposing it again.
get --explain reads organization configuration over API v2 instead of MCP. Add --repo REPOSITORY_ID or --repo owner/name to read one repository through the same API. The repository ID is the stable Proofline UUID that describe takes as repo_id; it survives a rename. Reuse the combined sign-in above. For read-only use, sign in with proofline login --scope org:read, or set PROOFLINE_TOKEN together with --org or PROOFLINE_ORGANIZATION_ID: with a token and no organization the command refuses before any request. It sends one request, prints the API document as JSON and never retries; a refusal prints the server's problem type and exits nonzero without falling back to MCP. A repository name selects one match within the credential's repository grant. An unknown, ambiguous or unreadable name returns not_found.
get --enterprise reads one enterprise's configuration with the public API v2 operation read_enterprise_config instead of MCP. It prints the API document as JSON: the settings saved in the enterprise document (overrides), the enterprise settings after those overrides apply to Proofline defaults (effective) and the body revision. With --explain, the document adds each value with its source and the owner of any lock. It reads with an enterprise read grant, a ple_ secret that an enterprise administrator issues on the enterprise's Administrators page in the console; set it as PROOFLINE_TOKEN. A stored sign-in belongs to one organization and cannot read an enterprise. The command takes no organization, repository or environment: --org, PROOFLINE_ORGANIZATION_ID, --repo, --environment and --gcp-installer are refused before any request. It sends one request and never retries it. A refusal, such as an enterprise the grant does not cover, an expired or revoked grant, or an unavailable service, prints the server's problem type and exits nonzero.
plan --file PATH previews changes to the selected organization's settings. Add --repo REPOSITORY_ID for one repository. It sends one request and prints the server's plan as JSON. Use a stored sign-in with org:configure, or supply PROOFLINE_TOKEN and its organization with --org or PROOFLINE_ORGANIZATION_ID.
plan --enterprise previews a change to one enterprise's settings or locks with the public API v2 operation plan_enterprise_configuration and writes nothing. The file holds the request input as one JSON or YAML object. With --method patch, the default, use set to assign values and unset to remove overrides. Omit locks to keep the current locks, or supply the full list of keys to lock.
With --method put, list the complete set of enterprise overrides as top-level keys, with an optional locks list alongside them. For example, this replacement sets and locks strictness.
strictness: HIGH
locks:
- strictnessThe replacement removes any overrides omitted from the file. Omitting locks clears all current locks in the preview.
The command prints the server's plan as JSON, including the revision it planned against, the redacted diff, each key's validation and the approval category each change would need. Planning needs an enterprise grant issued with the org:configure scope, set as PROOFLINE_TOKEN. Like get --enterprise, it takes no organization, repository or environment and refuses --org and PROOFLINE_ORGANIZATION_ID before any request. It also refuses an unreadable file or a file that does not contain a single object. It sends one request and never retries it. A refusal, such as a read-only grant, another enterprise, an expired or revoked grant, or invalid input, prints the server's problem type and exits nonzero.
apply sends the change ID and selected organization. An ordinary change prints its route result; a sensitive change prints applied: false, the reason and approval link, then exits nonzero. An administrator must open that link and approve the exact diff in a fresh browser session. Server refusals, including stale revisions and another organization's resources, also exit nonzero. Commands use the existing MCP transport and its 8,192-byte request limit, and never retry a tool call.
To read an organization's stored rules, sign in with proofline login --scope org:read,
or set PROOFLINE_TOKEN to an organization token with that scope. With a token,
select its organization with --org or PROOFLINE_ORGANIZATION_ID. A stored
sign-in already selects its organization.
proofline rules list --org ORGANIZATION_ID
proofline rules list --org ORGANIZATION_ID --limit 10 --cursor NEXT_CURSOR
proofline rules get RULE_NAME --org ORGANIZATION_IDWhen an enterprise rule shadows a listed organization rule, shadowed_by names
the linked enterprise. The named read returns the organization's stored rule.
Use an enterprise grant with org:read to read the markdown rules that
linked organizations inherit. Set the grant in PROOFLINE_TOKEN and leave
PROOFLINE_ORGANIZATION_ID unset.
proofline rules list --enterprise ENTERPRISE_ID --limit 10
proofline rules list --enterprise ENTERPRISE_ID --limit 10 --cursor NEXT_CURSOR
proofline rules get RULE_NAME --enterprise ENTERPRISE_IDThe list prints one JSON page in name order. Pass its next_cursor on the
next call until the value is null. Each rule includes its name, revision,
markdown, path patterns and blocks_merge. The named read prints the
latest saved revision. Both commands send one request. A refusal prints the
API problem type and exits nonzero.
Proofline proposes learnings from review replies, dismissals, reactions and
confirmed incident causes. To read the queue, sign in with
proofline login --scope org:read, or set PROOFLINE_TOKEN to an organization
token with that scope and select its organization with --org or
PROOFLINE_ORGANIZATION_ID.
proofline learnings list --org ORGANIZATION_ID
proofline learnings list --org ORGANIZATION_ID --repository REPOSITORY_ID
proofline learnings list --org ORGANIZATION_ID --limit 20 --cursor NEXT_CURSORThe list prints one JSON page: organization learnings first, then repository
learnings by repository ID. Each learning has its sentence, scope, status
(proposed, approved, declined or retired), last_confirmed_at
and up to 50 evidence references, each with its kind and source_id.
--repository lists one repository's learnings; keep the same filter when you
pass next_cursor on the next call, until the value is null. A token limited
to some repositories sees only theirs. The command sends one request. A
refusal prints the API error, including its problem type when present, and
exits nonzero. If repository access checks cannot complete a page, narrow
the read with --repository.
proofline secret set NAME --from-env VAR
proofline secret set NAME --from-file PATHsecret set stores a value under a name, replacing any earlier value of that name. Configuration refers to the secret by name, and no command reads the value back. The value comes from an environment variable or a file, never from an argument, so it stays out of shell history and the process list. A file must be UTF-8 text; one trailing line ending is dropped. A name starts with a letter and continues with letters, digits, _ or -, up to 64 characters. The value is 1 to 32,768 bytes. On success, the command prints only the name. It needs org:configure.
Upload reports your CI produced for an exact commit:
proofline --org "$PROOFLINE_ORGANIZATION_ID" coverage upload \
--repository-id "$PROOFLINE_REPOSITORY_ID" \
--commit "$TESTED_COMMIT_SHA" --report coverage/lcov.info --jsonSet PROOFLINE_TOKEN to a repository-restricted token with coverage:write. The token holder needs current GitHub write access to the repository. Uploads accept LCOV, Cobertura XML, JaCoCo XML, and Go cover profiles. Repeat --report for up to 50 UTF-8 files with distinct report names, and the JSON body cannot exceed 30 MiB. Relative paths retain their directories, so packages/a/lcov.info and packages/b/lcov.info are distinct. Leading ./ is removed, relative paths cannot contain .., and absolute paths use only the file name.
The command sends the exact 40-character lowercase SHA supplied by CI and does not resolve a branch or run tests. An identical upload returns the recorded report. Upload success records evidence; the server evaluates the coverage check separately.
proofline export reviews --from 2026-10-01T00:00:00Z --to 2026-10-25T00:00:00Z --format csv writes one export page to stdout and requires analytics:read. The datasets are reviews, findings, finding_outcomes, finding_validations, and spend. The default format is NDJSON, while CSV repeats its header on every page. The settled horizon and optional next cursor go to stderr. Repeat with --cursor and the same window and --group-by to continue. A failed page exits nonzero; never treat partial output from several invocations as a complete export.
Build from source with cargo build --locked --release. rustup installs the pinned Rust toolchain. Run cargo fmt --check, cargo clippy --locked --all-targets -- -D warnings, cargo test --locked, and cargo deny check before submitting a pull request. Adding an API operation exposes a CLI command only when a command in src/ declares and uses it.
GitHub Actions checks pull requests and main. Run Release on main with publish=false to build the Linux, macOS, and Windows archives. A vX.Y.Z tag equal to Cargo's version, or a main dispatch with publish=true, publishes the checked archives through the release environment. The commit must be on main.
The build jobs have no write credential. The publisher creates a GitHub draft to reserve the version and records artifact attestations. It then uploads the binaries and SHA256SUMS to the existing R2 download bucket and GitHub Releases. The bucket-scoped credential is the CLI_RELEASE_R2_CREDENTIALS environment secret, and CLOUDFLARE_ACCOUNT_ID is an environment variable. The publisher reserves R2 versions with a conditional write. Retry a failed publishing job with its original build artifacts; it verifies existing files, uploads missing ones, and advances the installer only after the archives match. Install and update URLs stay on proofline.sh.
Licensed under Apache-2.0.