@shopcrisp/cli
v0.1.5
Published
Crisper command line interface
Readme
@shopcrisp/cli
Command line interface for online grocery store Crisp.
Quickstart
npx @shopcrisp/cli auth login
npx @shopcrisp/cli search "bananas"
npx @shopcrisp/cli cart add 10827 --quantity 2 --yes
npx @shopcrisp/cli cart slot set
npx @shopcrisp/cli cart validate
npx @shopcrisp/cli cart order --yesDiscovery
npx @shopcrisp/cli --list
npx @shopcrisp/cli cart --list
npx @shopcrisp/cli describe cart add --output jsonUse --list to discover capabilities and describe <path> to inspect a command before running it.
Output Modes
--output text: human-readable terminal output--output plain: parse-friendly line output--output json: structured JSON envelopes
When stdout is not a TTY, the CLI defaults to json.
Auth
CRISPER_TOKENoverrides the local session file when present- local sessions are stored in
~/.crisper/config.json - use
crisper authto inspect the active auth source - use
crisper auth loginto create or refresh a local session
Write Safety
- mutating commands support
--dry-run - headless write commands require
--yes - interactive TTY flows can confirm writes or prompt for slot selection when supported
For repeatable scripted usage, prefer --output json on reads and --dry-run before writes.
Cart Flow
npx @shopcrisp/cli search "bananas"
npx @shopcrisp/cli recommendations
npx @shopcrisp/cli cart list
npx @shopcrisp/cli cart validate
npx @shopcrisp/cli cart slot
npx @shopcrisp/cli cart slot list
npx @shopcrisp/cli cart slot set
npx @shopcrisp/cli cart order --yescart list includes the currently selected delivery slot when one exists. cart validate checks whether the current cart can be ordered before cart order attempts the write.
Slot Selection
npx @shopcrisp/cli cart slot
npx @shopcrisp/cli cart slot list
npx @shopcrisp/cli cart slot set
npx @shopcrisp/cli cart slot set "slot:2026-04-02|17:00|18:00" --yescart slotshows the current slotcart slot listshows available slots and cart issue counts for each slotcart slot setopens an interactive selector in a TTY when no slot id is providedcart slot set <slot>also accepts a slot token for headless usage
Saved Products
npx @shopcrisp/cli saved list
npx @shopcrisp/cli saved add 10827 --dry-run
npx @shopcrisp/cli saved add 10827 --yes
npx @shopcrisp/cli saved remove 10827 --yesCommon Mutations
npx @shopcrisp/cli cart add 10827 --quantity 2 --dry-run
npx @shopcrisp/cli cart add 10827 --quantity 2 --yes
npx @shopcrisp/cli cart set 10827 --quantity 0 --yes
npx @shopcrisp/cli cart clear --yesAutomation
npx @shopcrisp/cli cart validate --output json
npx @shopcrisp/cli describe cart order --output json
npx @shopcrisp/cli cart add 10827 --quantity 2 --dry-run --output jsonCommands support three usage patterns:
- interactive terminal usage with
textoutput and TTY prompts - parse-friendly shell usage with
plainoutput - structured integration usage with
jsonoutput
For non-interactive flows, use --output json and pass --yes on mutating commands.
