Skip to main content

Command line interface for the Current API, generated from its OpenAPI schema at runtime

Project description

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

pip install current-cli

Or from a repo checkout:

cd cli && uv sync

Usage

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 — hand it to an LLM that needs to drive the CLI.

Development

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

current_cli-0.1.1.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

current_cli-0.1.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file current_cli-0.1.1.tar.gz.

File metadata

  • Download URL: current_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for current_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e93817b0345a55a0ce0a2ca1792950eb6e96b6e07f18751e2fc5b8e5c48a5cf
MD5 0f43a7866996caa3169ce4b2aced7db2
BLAKE2b-256 c0bf5fc7147462036e35535eb162cb260c8c5a93c22a8d6f7ff2c9a7704060a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for current_cli-0.1.1.tar.gz:

Publisher: publish-cli.yml on orinlabs/current

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file current_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: current_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for current_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ee643d3c40dc0a6f4df8f255c67c98fffe5075bac005c24eddee12033f715bb
MD5 4932d394f38ac597af0f582063ad45e8
BLAKE2b-256 bd7f6625e0951d336ece2a118b3f3bec222ee4cbb34af2a590ae4733984b86d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for current_cli-0.1.1-py3-none-any.whl:

Publisher: publish-cli.yml on orinlabs/current

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page