Skip to main content

slab-cli

A terminal client for the slab trading-card API — browse the catalog, price cards against real sales comps, and track your own collection from the command line.

pip install slab-cli

This installs the slab command.

Setup

The CLI talks to the hosted slab API. You need an API key — mint one from the slab portal (sign in → Account → API keys → create). Then:

export SLAB_API_KEY=sk_live_...        # your key (required)
# optional:
export SLAB_API_URL=https://api.slab.dev-jeb.com   # default; override for a self-hosted API
export SLAB_COLLECTOR=<collector-uuid>             # your active collector, reused across commands

Quickstart

# Catalog + pricing (no collector needed)
slab card search --subject "Connor Bedard"      # find cards
slab card price <card-uuid>                      # fair-market value from sales comps
slab card comps <card-uuid>                      # the underlying recent sales
slab set price "OPC Platinum"                    # a set's sealed FMV + top cards

# Your collection
slab collector current                           # the collector your key acts for
slab collection add                              # add an owned copy (grade, cost, acquisition)
slab collection cost                             # log grading/shipping costs on a copy
slab break new                                   # record a box/case break
slab collection dashboard                        # portfolio value, cost basis, P&L
slab collection search                           # search + filter your copies

Run slab with no arguments for the full command list, or slab <group> (e.g. slab collection) to see a group's verbs.

Configuration reference

Env var Purpose Default
SLAB_API_KEY API key for authentication (required) —
SLAB_API_URL Base URL of the slab API https://api.slab.dev-jeb.com
SLAB_COLLECTOR Active collector UUID, reused per command —
SLAB_APP_URL Where slab chase share links open https://collection.slab.dev-jeb.com
SLAB_NO_UPDATE_CHECK Set to 1 to silence update checks —

Staying up to date

Nothing updates itself. At most once a day the CLI asks PyPI (in the background, while your command runs) whether there's a newer release, and if so prints one line after the output:

▍ slab-cli 0.7.0 is available — you have 0.6.0
  Update when you like: slab update
slab --version         # what you have
slab update check      # ask PyPI right now; installs nothing
slab update            # upgrade, after showing the command and asking

slab update runs the upgrade that matches how you installed slab — pipx upgrade, uv tool upgrade, or pip install --upgrade — and prints it first, so you can decline and run it yourself. To turn the whole thing off: export SLAB_NO_UPDATE_CHECK=1.

What it depends on

Requests and responses are typed against slab-schemas — the same pydantic wire contract the API itself uses — so the CLI and API can never drift.

Requires Python 3.13+.

Metadata

Release files for slab-cli 0.32.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 slab-cli 0.32.0
File Size Uploaded Provenance Actions
slab_cli-0.32.0.tar.gz 95.7 kB With provenance Details for slab_cli-0.32.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slab-cli 0.32.0
File Interpreter ABI Platform Actions
slab_cli-0.32.0-py3-none-any.whl Python 3 none any Details for slab_cli-0.32.0-py3-none-any.whl

Total release size: 207.4 kB

Release files / slab_cli-0.32.0.tar.gz

Download URL slab_cli-0.32.0.tar.gz
Size 95.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7f23c2cac8e0084dadb329edee4918578868c984c47f6c4d26497a4cb7f6cb86
BLAKE2b-256 checksum
How to use checksums
860c6abc762748ec761a5d7bdad1860278e99f0e4ab6e9202829cef995890560
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 Oct 11, 2026.

Transparency log

Release files / slab_cli-0.32.0-py3-none-any.whl

Download URL slab_cli-0.32.0-py3-none-any.whl
Size 111.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4218e839c38c887e55b4ea0a8df55b0a823a9e70030c2fbb67c3882cf15b8ce
BLAKE2b-256 checksum
How to use checksums
04f71f40b7ef6e76019712cbb5bfdb3422dd8bff9ab21be847a1aae7dc3c3ce4
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 Oct 11, 2026.

Transparency log

Security for slab-cli 0.32.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for slab_cli-0.32.0.tar.gz

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 Oct 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.32.0 This release

2 release files Full provenance

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