🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@offerkit/cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@offerkit/cli

OfferKit command-line interface.

Source
npmnpm
Version
0.1.6
Version published
Weekly downloads
2
-89.47%
Maintainers
1
Weekly downloads
 
Created
Source

@offerkit/cli

Command-line interface for OfferKit.

OfferKit is open-source promotion infrastructure for coupons, gift cards, loyalty, referrals, customer segments, and validation rules. The CLI uses @offerkit/sdk under the hood and talks to the same /api/v1 API as the dashboard, SDK, and MCP server.

Install

npm install -g @offerkit/cli
pnpm add -g @offerkit/cli

The installed binary is offerkit.

Configure

Mint an API key in the OfferKit dashboard at /settings/api-keys, then save it locally:

offerkit login --url https://your-offerkit-deployment --api-key offerkit_...

This writes ~/.offerkitrc with file mode 0600.

You can also use environment variables:

export OFFERKIT_API_URL=https://your-offerkit-deployment
export OFFERKIT_API_KEY=offerkit_...

Environment variables override values from ~/.offerkitrc.

Commands

offerkit vouchers list
offerkit vouchers list --search SUMMER
offerkit vouchers get SUMMER10
offerkit vouchers validate SUMMER10 --amount 9999 --currency USD
offerkit vouchers redeem SUMMER10 --amount 9999 --currency USD --idempotency-key order-42
offerkit campaigns list
offerkit campaigns create --name "Spring 2026" --type DISCOUNT --currency USD
offerkit customers list
offerkit customers list --search alice
offerkit customers get 00000000-0000-0000-0000-000000000000

All command output is formatted JSON.

  • Repository: https://github.com/offerkit/offerkit
  • SDK package: https://www.npmjs.com/package/@offerkit/sdk
  • License: MIT

FAQs

Package last updated on 15 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts