Skip to main content
The arga CLI authenticates your machine and gives scripts or coding agents access to the same core workflows as the web app.

Install

You can also use pipx install arga-cli or pip install arga-cli.

Authenticate

arga login starts the device authorization flow and stores a device-scoped credential in ~/.config/arga/config.json. Run arga logout to remove and revoke the current device credential.

Twin Runs

List the available services:
Provision a short-lived Twin Run and wait until it is ready:
Google Drive, Docs, Sheets, and the grouped Workspace service APIs are separate twins. Provision only what the app uses, or combine them:
google_docs and google_sheets are full twins: each provision exposes its provider-compatible API and an interactive editor UI. When you provision any two or more of google_drive, google_docs, and google_sheets under the same Twin Run ID, they share one run-scoped file state. Creates, edits, renames, permissions, revisions, trash, and deletes stay synchronized across the selected twins. Different Twin Run IDs remain isolated. google_workspace contains People, Workspace Events, Apps Script, Pub/Sub, and helper task/push-notification APIs. It does not contain Drive, Docs, Sheets, Gmail, or Calendar. When you use gws, cache each provisioned service’s Discovery document. See Use the Google Workspace CLI with Arga twins for the complete setup. Seed the twins from a saved Scenario:
Manage a running environment:
  • reset restores the baseline captured when the twins were provisioned.
  • extend changes the requested TTL within your plan limit.
  • lock revokes public access while preserving authenticated access.
  • teardown ends the run immediately.

Configure a local project

Run the wizard from your project directory:
The wizard detects supported provider configuration, backs up .env to .env.arga-backup, provisions selected twins, and replaces provider endpoints or credentials with twin values. Restore the original file with:

Scenarios

Use explicit JSON when an agent or fixture needs exact provider state. Use a prompt for faster exploratory setup.

Choose a generation mode

Requires arga-cli 0.1.20 or later. Upgrade with uv tool upgrade arga-cli. Use --generation-mode thorough for complex prompt requirements when a longer wait is acceptable. Omit the flag for Fast generation, or pass --generation-mode fast explicitly.
Scenario import and update also accept the flag. It overrides generation_mode in the JSON file; without the flag, the file’s value is preserved. To regenerate a saved scenario, provide prompt in the update file and omit seed_config:
The mode applies only to new prompt generation. Saved scenario IDs and explicit seed JSON reuse their existing data. The compatibility commands arga test-runner scenarios ... and arga previews twins provision accept the same flag.

Test Runs

Start a browser run against a reachable URL:
For an authenticated application flow, pass --email and --password together. Inspect and manage run history:

Saved Tests

Create a Saved Test from a Test Run:
List, edit, and run saved tests:
Add --ci when creating a test to make it eligible for that repository’s PR Test Runs.

TestConfig JSON

Saved Tests use agent-editable TestConfig JSON. Validate or normalize a file before importing it:
TestConfig assertions are deliberately small and deterministic:

PR Test Runs

Install and configure repository automation:
For a branch trigger:
Pause or resume a configuration:
Start a run manually:
PR Test Runs use the repository’s configured application target. They do not create a per-PR Arga deployment.

JSON output

Commands that return structured data accept --json:

Git helpers

Create a commit that skips Arga validation for that head commit:
The commit wrapper appends [skip arga]. The push wrapper verifies that the current commit already contains it.

Install MCP

The installer adds the Arga MCP server to supported local coding agents without removing existing MCP entries. See MCP for the installed files and tool reference.

Custom API URL

Pass --api-url where supported or set ARGA_API_URL: