Build, test, and manage your Fintoc integration right from the terminal.
With the Fintoc CLI, you can:
- Create, list, and manage payment intents, charges, transfers, and more
- Authenticate and store credentials securely in
~/.fintoc/config.toml - Diagnose setup issues with
fintoc doctor - Get machine-readable JSON output for scripts and CI/CD pipelines
- Pipe JSON payloads to create commands with
--from-json
Early access — This CLI is under active development (v0.x). Commands and flags may change between releases.
npm install -g @fintoc/cli
fintoc --versionRequires Node.js >= 22.
# 1. Authenticate with your API key
fintoc login
# 2. Verify your setup
fintoc doctor
# 3. Start using Fintoc resources
fintoc payment_intents list
fintoc charges create --amount 5000 --currency CLP --subscription-id sub_test_abc123The CLI resolves your API key in this order:
--api-keyflag (inline, per-command)FINTOC_SECRET_KEYenvironment variable~/.fintoc/config.toml(saved viafintoc login)
fintoc login # Interactive login
fintoc login --api-key sk_test_... # Non-interactive login
fintoc payment_intents list --api-key sk_test_... # One-off override
fintoc config show # Show active configuration
fintoc logout # Remove stored credentials| Command | Description |
|---|---|
fintoc login |
Authenticate with your API key |
fintoc logout |
Remove stored credentials |
fintoc config show |
Show active configuration |
Resources follow the pattern fintoc <resource> <action> [flags].
| Resource | Actions |
|---|---|
payment_intents |
get, list |
charges |
create, get, list |
webhook_endpoints |
create, get, list, delete |
checkout_sessions |
create, get, expire |
subscriptions |
get, list |
links |
get, list, delete |
api_keys |
list |
v2 transfers |
create, get, list |
v2 accounts |
get, list |
| Command | Description |
|---|---|
fintoc doctor |
Check CLI setup and connectivity |
fintoc open dashboard |
Open the Fintoc dashboard in your browser |
fintoc charges list --status succeeded --since 2026-01-01 --limit 5fintoc payment_intents get pi_test_abc123fintoc charges create --amount 5000 --currency CLP --subscription-id sub_test_abc123fintoc charges create --from-json payload.json
cat payload.json | fintoc charges create --from-json -Flags can be mixed with --from-json — flag values take precedence over JSON keys.
fintoc webhook_endpoints delete we_test_abc123
fintoc webhook_endpoints delete we_test_abc123 --yes # Skip confirmation (CI-friendly)Transfers require a JWS private key for create:
fintoc v2 transfers create --amount 10000 --currency CLP \
--account-id acc_test_abc123 \
--counterparty-account-number 12345678 \
--counterparty-institution-id cl_banco_estado \
--jws-private-key ~/path/to/private_key.pemThe JWS key can also be set in ~/.fintoc/config.toml as jws_private_key.
Use --json for machine-readable output. Use --no-color to disable colored output.
fintoc payment_intents list --json
fintoc v2 accounts get acc_test_abc123 --jsonEvery command documents its available flags:
fintoc charges create --help
fintoc v2 transfers list --helpIf you have any feedback, open an issue.
