Skip to main content

bookai-cli

Command-line client for the bookai group-sales back office API — manage venue pricing and view confirmed orders from the terminal or a script, instead of clicking through the admin web app.

This is a thin HTTP client: it talks only to the public, authenticated JSON API and contains no business logic or backend code.

Install

pip install bookai-cli

Authenticate

Ask a venue admin to create an API key for you from the back office (Settings → API Keys), then set it as an environment variable:

export GROUPSALES_API_KEY=gsk_...

Or pass it per-command with --api-key. By default the CLI talks to https://b2b.bookai.now; override with --base-url or GROUPSALES_BASE_URL if you're pointed at a different environment.

Global options (--api-key, --base-url, --json) go before the subcommand: bookai --json venues list, not bookai venues list --json.

Usage

bookai venues list

bookai pricing list <venue_id>
bookai pricing get <venue_id> <rule_id>
bookai pricing set <venue_id> --min-group 10 --max-group 50 --min-price 20 --max-price 30
bookai pricing set <venue_id> --min-group 10 --max-group 50 --min-price 20 --max-price 30 \
    --source acme-isv --external-id acme-rule-42   # tag a rule as synced from an external system
bookai pricing update <venue_id> <rule_id> --min-group 10 --max-group 50 --min-price 18 --max-price 28
bookai pricing delete <venue_id> <rule_id>

bookai orders list
bookai orders list --page 2

Add --json anywhere for machine-readable output instead of a table — useful for piping into jq or scripting in CI.

Development

pip install -e ".[dev]"
pytest

Tests are fully offline (HTTP is mocked via respx) — no server or database required.

Release files for bookai-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bookai-cli 0.1.0
File Size Uploaded
bookai_cli-0.1.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bookai-cli 0.1.0
File Interpreter ABI Platform
bookai_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / bookai_cli-0.1.0.tar.gz

Download URL bookai_cli-0.1.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f450846e6024a539df2a58ef240b71d110d43879664082514a80d866d6c8a1a0
BLAKE2b-256 checksum
How to use checksums
840ad160a868d8809c045113dcde16b549dde0f4c09f2deb2324412f32a5c92a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release files / bookai_cli-0.1.0-py3-none-any.whl

Download URL bookai_cli-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd046739f39854498600624416405cce10831c272a893f6cfc2a0e942aa6654e
BLAKE2b-256 checksum
How to use checksums
69451b537213e5fa2c066068962b48b8cf3f3da3f2936452d7b30eb1ae2a0d4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.0

2 release files

0.4.0

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page