Metadata-Version: 2.4
Name: current-cli
Version: 0.1.2
Summary: Command line interface for the Current API, generated from its OpenAPI schema at runtime
Author-email: Orin <your-email@example.com>
License-Expression: MIT
Requires-Python: >=3.10
Requires-Dist: click>=8.1
Requires-Dist: httpx>=0.27
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0
Description-Content-Type: text/markdown

# current-cli

Command line interface for the Current API. Commands are generated at runtime
from the bundled OpenAPI schema, so every API operation is available without
per-endpoint code.

## Install

```bash
pip install current-cli
```

Or from a repo checkout:

```bash
cd cli && uv sync
```

## Usage

```bash
current login you@example.com
current config set default_workspace <workspace-uuid>

current projects list
current projects retrieve <id>
current tasks create --data '{"name": "Order beams", "workspace": "..."}'
current workspaces members list <workspace_id>
```

The CLI points at `https://api.current.orinlabs.ai` by default. For local
development, run `current config set base_url http://localhost:8000`.

Run `current --help` (or `--help` on any subcommand) to see everything the
API exposes. `current docs` prints a markdown reference of every command;
the committed copy lives at [llms.txt](llms.txt) — hand it to an LLM that
needs to drive the CLI.

## Development

```bash
cd cli
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .
```

The bundled schema (`current_cli/schema.yml`) is a copy of `api/schema.yml`,
kept in sync by `api/scripts/generate.sh`. Point the CLI at a different schema
with `--schema <path-or-url>` or `CURRENT_SCHEMA`.
