Skip to content

Latest commit

 

History

History
100 lines (64 loc) · 1.68 KB

File metadata and controls

100 lines (64 loc) · 1.68 KB

ErrorLoop CLI

Latest Version

A standalone command-line client for managing issues on an ErrorLoop server.

Requirements

  • PHP 8.3+
  • Composer

Installation

Global install (recommended)

composer global require errorloop/cli

Make sure ~/.composer/vendor/bin or ~/.config/composer/vendor/bin is in your PATH.

Project-local install

composer require errorloop/cli
./vendor/bin/errorloop issues --status open

Configuration

Run the config command once:

errorloop config --endpoint https://er.ma.rs --token your-agent-token

This writes ~/.config/errorloop/config.json with 0600 permissions.

You can also use environment variables, which take precedence over the config file:

export ERRORLOOP_ENDPOINT=https://er.ma.rs
export ERRORLOOP_AGENT_TOKEN=your-agent-token

The agent token is configured on the ErrorLoop server, not per-project.

Usage

Create a project (returns the API key for the Laravel SDK):

errorloop create-project babyprocare

List projects:

errorloop projects

List open issues:

errorloop issues --status open

Show a single issue:

errorloop issue 123 --for-agent

Claim an issue to work on it:

errorloop claim 123

Record a fix attempt:

errorloop fix-attempted 123 --commit abc123 --agent $(whoami)

Record a deploy:

errorloop deploy --project babyprocare --sha abc123

Verify an issue is resolved:

errorloop verify 123

License

MIT