test and live modes. When you run fintoc login, the CLI stores your secret key in ~/.fintoc/config.toml with file mode 0600, readable only by the current OS user. You can also pass keys inline or through an environment variable for scripting and CI.
Key resolution order
The CLI resolves the API key in this order of precedence:- The
--api-keyflag passed inline on the command. - The
FINTOC_API_KEYenvironment variable. - The key stored in
~/.fintoc/config.tomlbyfintoc login.
View your active configuration
Switch keys
To change the persisted key, log out and log back in:Use the CLI in CI
For CI/CD pipelines, setFINTOC_API_KEY as a secret environment variable in your provider (for example, GitHub Actions or CircleCI) and avoid persisting credentials to disk:
fintoc login flow and keeps the key out of shell history.
Test mode vs live mode
Each Fintoc API key is scoped to either test mode or live mode. The CLI infers the mode from the keyβs prefix:sk_test_...for test mode. Test mode never moves real money: the CLI creates no real payments or refunds.sk_live_...for live mode. Commands run with this key create real payments and refunds on your production organization.
fintoc payment_intents list) work with either key. Commands that simulate events, such as fintoc trigger, run only in test mode and return an error with a live-mode key.
Interactive fintoc login defaults to test mode. To authenticate in live mode, pass --mode live: