Commands
Reference for every reqlo CLI command: setup, workspace, agents, schema, checks, keys, approvals and policies.
Every command accepts the global flags and returns the documented exit codes.
Set up a repository
reqlo init
Creates reqlo.config.yaml, reqlo/schema.yaml, a policy in reqlo/policies/ (with a freshly generated policy
ID) and tests in reqlo/tests/ that pass out of the box. The environment comes from --environment, or from
REQLO_API_KEY if it's set. Refuses to overwrite existing files unless you pass --force. Works offline.
reqlo init✓ Created reqlo.config.yaml
✓ Created reqlo/schema.yaml
✓ Created reqlo/policies/documents.yaml
✓ Created reqlo/tests/documents.test.yaml
Next: reqlo schema push, then reqlo policies test and reqlo policies push --publish.Side effects: writes files in the current directory. Exit codes: 0, 2
Workspace
These commands use your CLI login and show only organizations you belong to.
reqlo projects list
reqlo projects listORGANIZATION PROJECT ID YOUR ROLE
Acme Support app PROJ_7Hq2mK9xR4vTq8Lp ownerSide effects: none. Exit codes: 0, 1, 3
reqlo env list
Lists every environment you can reach and its ID. --project <id> narrows it to one project. The environment that
reqlo.config.yaml points at is marked.
reqlo env listPROJECT ENVIRONMENT ID
Support app sandbox 6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10 ← reqlo.config.yamlSide effects: none. Exit codes: 0, 1, 3
reqlo env use <environment-id>
Writes environment: <id> into reqlo.config.yaml, keeping your other settings. Every command that acts on an
environment uses it unless you pass --environment.
Side effects: edits reqlo.config.yaml. Exit codes: 0, 2
Agents
Agent commands act on the environment from --environment, reqlo.config.yaml, or REQLO_API_KEY, as you.
Creating, tagging, disabling and enabling need a developer, admin or owner role; deleting follows the same rules as
the dashboard.
reqlo agents list
ID NAME STATUS TAGS
agt_7Hq2mK9xR4vTq8Lp Document assistant active assistantreqlo agents create --name <name> [--tag <tag>]...
Registers an agent and prints its ID. Use that ID as agent.id when you authorize.
reqlo agents create --name "Support reply agent" --tag support --tag customer_facing✓ Created agt_7Hq2mK9xR4vTq8Lp (Support reply agent) tagged customer_facing, support. Use this ID as agent.id when authorizing.reqlo agents tag <agent-id> --tag <tag>...
Replaces the agent's tags. Pass no --tag to clear them. Tag rules (agents: { tags: [...] }) use the new tags on
the next request.
reqlo agents disable <agent-id> and reqlo agents enable <agent-id>
A disabled agent's requests are denied with agent_revoked until you enable it again.
reqlo agents delete <agent-id> [--yes]
Deletes the agent permanently after confirmation. Its requests are denied from then on.
Side effects: change agents in the environment, recorded in the agent's activity. Exit codes: 0, 1,
2, 3
Schema
reqlo schema push [--dry-run] [--yes]
Registers the actions and resource types in reqlo/schema.yaml, so every environment can have the same catalog:
resource_types:
document:
description: A workspace document.
attributes:
owner_id: { type: id, required: true }
actions:
documents.read:
resource_type: document
description: Read a document.
context_schema:
document_classification: { type: enum, values: [public, internal, confidential], required: true }It shows a plan and asks before applying. New resource types and actions are created, and actions whose
context_schema changed are updated. Nothing is ever archived or deleted: entries registered in ReQlo but missing
from the file are only reported. A registered resource type's attributes and an action's resource type can't be
changed, so differences there are reported too.
reqlo schema push --dry-run+ create resource type document
+ create action documents.read
! action old.action is registered but not in schema.yaml. It is left as is; archive it in the dashboard if it's unused.
Dry run: nothing changed.Attribute types and options are the same as in the dashboard; see Custom attributes. Needs a developer, admin or owner role.
Side effects: registers or updates catalog entries. Exit codes: 0, 1, 2, 3
Check a request
reqlo check
Evaluates one request and prints the decision. The exit code is the decision, so scripts can branch on it:
0 allow, 5 deny, 6 approval required.
| Flag | Description |
|---|---|
--agent <id> | Agent ID |
--subject <kind:id> | Subject, such as user:usr_94 |
--action <name> | Action name |
--resource <type:id> | Resource, such as document:doc_831 |
--attr <key=value> | Resource attribute (repeatable). Use key:=JSON for numbers, booleans and lists, such as amount:=120 |
--context <key=value> | Context attribute (repeatable), same syntax |
--tag <tag> | The agent's tags, for simulation (repeatable) |
--fixture <file> | Read the whole request from a JSON or YAML file instead |
--published | Simulate against the policies live in the environment instead of your files |
--live | Call POST /v1/authorize with REQLO_API_KEY. Recorded, and may create an approval |
By default it simulates against your local policy files, offline, with the same engine as the API. Simulations
aren't recorded and never create approvals. --published uses your CLI login to read the live policies and the
agent's real tags.
reqlo check --agent agt_7Hq2mK9xR4vTq8Lp --tag assistant --subject user:usr_94 --action documents.read \
--resource document:doc_831 --attr owner_id=usr_94 --context document_classification=internalallow (simulated against reqlo/policies) reason=policy_allowed rules=allow-own-documents version=localSimulation checks policies only. --live also validates attributes against the registered schemas, so use it to
catch a missing or mistyped attribute.
Side effects: none, except --live, which records a decision. Exit codes: 0, 5, 6, 1, 2, 3
API keys
reqlo keys list
Lists the environment's keys: name, prefix and last four characters, status and expiry. Secrets are never shown.
ID NAME KEY STATUS EXPIRES
0c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f Backend rq_test_…9f2c active -reqlo keys revoke <key-id> [--yes]
Revokes a key immediately after confirmation. Requests with it fail with 401 api_key_invalid.
Creating and rolling keys stay in the dashboard (API keys), because ReQlo asks you to confirm your password first and shows the new secret only there.
Side effects: revokes a key. Exit codes: 0, 1, 2, 3
Sign-in
reqlo login
Opens your browser to authorize the CLI, then asks for the code shown there. See Sign in.
| Flag | Description |
|---|---|
--no-browser | Print the link instead of opening a browser. |
Side effects: creates a personal access token and saves it to ~/.config/reqlo/credentials.json (owner-only).
Exit codes: 0, 1, 2
reqlo whoami
Shows the signed-in person and the API in use.
reqlo whoamijane@example.com (6f1c…) on https://api.reqlo.ioSide effects: none.
Exit codes: 0, 1, 3
reqlo logout
Revokes this machine's token on the server, then deletes the saved login.
Side effects: revokes and deletes the token. Other machines stay signed in.
Exit codes: 0
Approvals
An approval holds an action that a policy rule marked require_approval. Approving never runs the action: it lets
the agent redeem the identical request once before the approval expires. See
Human approvals.
reqlo approvals list
Lists approval requests in the environment of REQLO_API_KEY, newest first.
| Flag | Description |
|---|---|
--status <status> | Only show pending, approved, rejected, expired or consumed requests. |
Needs: REQLO_API_KEY.
reqlo approvals list --status pendingID STATUS ACTION RESOURCE AGENT EXPIRES
APR_ZEuq05Gdw1YKQP2A pending refunds.issue order/ord_1002 agt_blW9V7OjE2e3n6tO 2026-11-08 19:27 UTC
APR_JBOlIQAEnwvRE3RO pending payments.initiate card/card_4242 agt_crF4WXQ4a4x4vcLY 2026-11-08 22:27 UTCSide effects: none.
Exit codes: 0, 1, 2
reqlo approvals view <id>
Shows one request: action, resource, agent, subject, timing, resolution note and request digest.
Needs: REQLO_API_KEY.
reqlo approvals view APR_ZEuq05Gdw1YKQP2AID: APR_ZEuq05Gdw1YKQP2A
Status: pending
Action: refunds.issue
Resource: order/ord_1002
Agent: agt_blW9V7OjE2e3n6tO
Subject: usr_522
Requested: 2026-11-08 18:27 UTC
Expires: 2026-11-08 19:27 UTC
Digest: sha256:…Side effects: none.
Exit codes: 0, 1, 2
reqlo approvals approve <id>
Approves a pending request as you. The CLI shows the request and asks you to confirm.
| Flag | Description |
|---|---|
--note <text> | Note for the audit trail (up to 1,000 characters). Don't include secrets. |
--environment <id> | Environment of the request. Default: the environment of REQLO_API_KEY. |
-y, --yes | Skip the confirmation prompt. Required when not running in an interactive terminal. |
Needs: your CLI login (reqlo login or REQLO_ACCESS_TOKEN), plus REQLO_API_KEY unless you pass
--environment. You must be allowed to resolve the request: a listed approver on its channel, or an owner or admin
when it has no channel.
reqlo approvals approve APR_ZEuq05Gdw1YKQP2A --note "Confirmed with the customer"Approve this request as jane@example.com? [y/N] y
Approved APR_ZEuq05Gdw1YKQP2A. The agent can redeem it once with the identical request.Side effects: marks the request approved and records you, the time and the note in the audit trail.
Exit codes: 0, 1, 2, 3
reqlo approvals reject <id>
Rejects a pending request as you. Takes the same flags as approve. When the agent redeems a rejected request, the
decision is deny with reason approval_rejected.
reqlo approvals reject APR_JBOlIQAEnwvRE3RO --yesSide effects: marks the request rejected and records you, the time and the note in the audit trail.
Exit codes: 0, 1, 2, 3
Policies
Manage policies as files in your repository. See Policy as code for the file formats.
validate and test run offline; the others act on the environment from --environment, reqlo.config.yaml or
REQLO_API_KEY, as you (your CLI login or REQLO_ACCESS_TOKEN).
reqlo policies list
Lists the environment's policies: ID, name, live or draft, the live version and the number of rules.
ID NAME STATUS VERSION RULES
POL_9c1e0a7b2d4f6e81 Document access live 2026-11-09.2 2Side effects: none. Exit codes: 0, 1, 3
reqlo policies validate
Checks every file in the policies directory: required fields, rule IDs, effects, actions and condition syntax. Reports every problem with its file.
reqlo policies validate✓ 2 policies, 7 rules are valid.Side effects: none. Exit codes: 0, 1 (invalid), 2
reqlo policies test
Runs each case in the tests directory against your local policies, with the same evaluation engine the API uses.
reqlo policies test✓ owner reads an internal document
✗ confidential is denied (expected deny/policy_denied, got allow/policy_allowed)
1 passed, 1 failed.Side effects: none. Exit codes: 0, 1 (a case failed or files are invalid), 2
reqlo policies diff
Compares your files with what is published: new, changed, not published, unchanged, or
published, no local file. Key order in YAML is ignored.
reqlo policies diffSide effects: none. Exit codes: 0, 1, 2, 3
reqlo policies push
Saves each new or changed policy as a draft. Drafts don't affect decisions.
| Flag | Description |
|---|---|
--publish | Also publish each saved policy. Needs an owner or admin. Prints any deny-rule warnings. |
--yes | Skip the confirmation prompt (required when not in an interactive terminal). |
reqlo policies push --publish --yesSaved 1 draft(s).
Published 1; live version 2026-11-09.3.Side effects: creates or updates drafts; with --publish, changes live decisions. Exit codes: 0, 1, 2, 3
reqlo policies versions
Lists the 50 most recent policy-set versions, newest (live) first, including which ones were rollbacks.
Side effects: none. Exit codes: 0, 1, 2, 3
reqlo policies rollback <version>
Republishes an earlier version as a new version and restores each policy's published state to match. Needs an owner
or admin. Takes --yes.
reqlo policies rollback 2026-11-09.1 --yesRolled back: 2026-11-09.1 is live again as 2026-11-09.4.Side effects: changes live decisions; recorded as policy.rolled_back in the audit log. Exit codes: 0, 1, 2, 3
Something wrong or unclear? Report an issue with this page.