Documentation Index
Fetch the complete documentation index at: https://docs.clinkbill.com/llms.txt
Use this file to discover all available pages before exploring further.
clink-cli is a command-line client for Clink customer wallet APIs. Use it to initialize customer wallet profiles, open card setup or management pages, make payments, create refunds, and inspect risk rule settings.
NPM Package
View the package on npmjs.com
Requirements
- Node.js
>=20 - Access to the target Clink API environment
Installation
Install the CLI globally:Quick Start
1. Initialize your wallet
Run this once to create or activate a customer wallet and save credentials locally:2. Open card pages
Get the raw binding link:3. Check saved payment methods
List cached payment methods:- Card add, update, and delete actions happen on the web page, not directly in the CLI.
card listandcard getread local cached data.card binding-link,card setup-link, andcard modify-linkrefresh the local payment method cache.
4. Make a payment
Pay with merchant mode:--payment-instrument-id is omitted, pay uses the default cached payment method.
5. Refund an order
Create a full refund:6. Check risk rules
Get current risk rule settings:Common Usage
Use a named profile:Commands
Command groups:clink-cli wallet initclink-cli wallet statusclink-cli card binding-linkclink-cli card setup-linkclink-cli card modify-linkclink-cli card listclink-cli card get --payment-instrument-id <id>clink-cli risk-rule getclink-cli risk-rule linkclink-cli pay --merchant-id <id> --amount <amount> --currency <currency>clink-cli pay --session-id <id>clink-cli refund create --order-id <id>clink-cli refund get --refund-id <id>clink-cli config set <key> <value>clink-cli config getclink-cli config unset <key>
Configuration
Useful config commands:base-urlcustomer-idcustomer-api-keydefault-open-linksemailname
- Command flags
- Environment variables
- Saved profile config
CLINK_BASE_URLCLINK_CUSTOMER_IDCLINK_CUSTOMER_API_KEY
Global Options
--format <json|pretty>--dry-run--open--profile <name>--base-url <url>--customer-id <id>--customer-api-key <key>--timeout <ms>--help