Commands

Every CashSDK CLI command with a description and example.

Run any command as cashsdk <command> (global install) or npx @cashsdk/cli <command>. All commands read CASHSDK_TOKEN and CASHSDK_API_URL from your environment or from cashsdk login. Add --help to any command for its full options.

Reference#

CommandDescription
loginAuthenticate the CLI and store credentials locally.
appsList the apps in your workspace.
catalogView and manage products, entitlements, and offerings.
checklistShow the live go-live setup status for an app.
doctorDiagnose your setup and report configuration problems.
draftScaffold a paywall draft you can refine and publish.
eventsStream and inspect recent events.
paywallsList and inspect paywalls.
snippetsPrint ready-to-paste SDK integration snippets.
templatesBrowse available paywall templates.

Examples#

bash
cashsdk login
# Or skip the prompt with environment variables:
CASHSDK_TOKEN=csk_sk_... CASHSDK_API_URL=https://api.cashsdk.com cashsdk apps
bash
cashsdk apps
bash
# List the current catalog
cashsdk catalog

# Add a monthly subscription with an entitlement
cashsdk catalog add \
  --product pro_monthly \
  --entitlement pro \
  --type subscription
bash
cashsdk checklist --app app_...
bash
cashsdk doctor --app app_...
bash
cashsdk draft --template trial --name onboarding
bash
# Tail recent events for an app
cashsdk events --app app_... --tail
bash
cashsdk paywalls --app app_...
bash
# Print iOS integration snippets
cashsdk snippets --platform ios --app app_...
bash
cashsdk templates

Next steps#