Lsqueezy
lsqueezy¶
A polished CLI for the Lemon Squeezy e-commerce API
Synopsis¶
lsqueezy is a production-grade command-line interface for Lemon Squeezy.
Manage stores, products, orders, subscriptions, customers, discounts, license keys, checkouts, and webhooks. Script it all with table/json/yaml/csv output, a --jq filter, named accounts for multiple keys, and a --dry-run that prints the equivalent curl.
Examples: lsqueezy auth login --api-key eyJ0eX... lsqueezy stores list lsqueezy products list --filter store_id=1 --all lsqueezy orders get 12345 -o json lsqueezy orders list -o json --jq '.[].total_formatted' lsqueezy --account test subscriptions list lsqueezy subscriptions cancel 9999 --dry-run lsqueezy license validate --key 38b1460a-5104-4067-a91d-77b872934d51
Options¶
--account string named account to use (env LEMONSQUEEZY_ACCOUNT)
--all fetch all pages (list commands)
--base-url string override the API base URL
--columns strings comma-separated columns to show
--dry-run print the equivalent curl and make no request
--filter strings client-side field=value filters (list commands)
-h, --help help for lsqueezy
--jq string gojq expression applied to the result before rendering
--limit int page size, 1-100 (list commands)
--no-color disable colored output
-o, --output string output format: table|json|yaml|csv
--page int page number, 1-based (list commands)
--quiet suppress non-essential chatter
--show-token reveal the API key in dry-run output
--sort string JSON:API sort field, prefix with - for desc (list commands)
-v, --verbose verbose request logging
SEE ALSO¶
- lsqueezy agent - Generate AI-agent safety config from the live command tree
- lsqueezy alias - Manage user-defined command aliases
- lsqueezy api - Make a raw authenticated request (escape hatch)
- lsqueezy auth - Manage API credentials
- lsqueezy checkouts - Browse and create checkouts
- lsqueezy completion - Generate shell completion script
- lsqueezy config - Inspect and edit configuration
- lsqueezy customers - Manage customers
- lsqueezy discount-redemptions - Browse discount redemptions (read-only)
- lsqueezy discounts - Manage discounts
- lsqueezy doctor - Diagnose config, credentials, and connectivity
- lsqueezy files - Browse downloadable files (read-only)
- lsqueezy init - First-run wizard: capture base URL + key, write config, smoke-test
- lsqueezy license - Activate, validate, and deactivate license keys (License API)
- lsqueezy license-key-instances - Browse license key instances (read-only)
- lsqueezy license-keys - Manage license keys
- lsqueezy mcp - MCP server management
- lsqueezy order-items - Browse order line items (read-only)
- lsqueezy orders - Browse orders; refund and invoice
- lsqueezy prices - Browse variant prices (read-only)
- lsqueezy products - Browse products (read-only)
- lsqueezy stores - Browse stores (read-only)
- lsqueezy subscription-invoices - Browse subscription invoices; refund and invoice
- lsqueezy subscription-items - Manage subscription items
- lsqueezy subscriptions - Manage subscriptions
- lsqueezy update - Update lsqueezy to the latest GitHub release
- lsqueezy usage-records - Browse and create usage records
- lsqueezy users - The authenticated user (read-only)
- lsqueezy variants - Browse product variants (read-only)
- lsqueezy version - Print version, commit, and build date
- lsqueezy webhooks - Manage webhooks (full CRUD)