-
Notifications
You must be signed in to change notification settings - Fork 0
Developing the Fintoc CLI
Daniel Leal edited this page May 5, 2026
·
2 revisions
The Fintoc CLI is built using Node. You need a Node version >=22 to be able to run this CLI locally.
-
git clonethis repo cd fintoc-cli-
npm installto install dependencies -
npm run devto watch for changes
You can then invoke the local version of the CLI by running:
node dist/index.jsOptionally, you can link the built artifact to make running the local version a little easier.
npm linkYou can then run the local CLI simply by running fintoc. To unlink:
npm unlink -g @fintoc/cliBecause this CLI uses the Fintoc Node SDK, the URL is actually controlled by the Node SDK, not the CLI itself. If you want to test the CLI against local backend changes, you need to:
-
git clonethefintoc-noderepo, thencd fintoc-node -
npm installthefintoc-noderepo - Replace the
API_BASE_URLconstant with your local backend URL (for example,http://localhost:3000) -
npm run buildthe Node SDK -
npm linkthe Node SDK -
cd ../fintoc-clito move to the CLI folder -
rm -rf node_modules/fintoc, to stop using thenpmversion of thefintoc-nodeSDK -
npm link fintoc, to link the local pathchedfintoc-nodeSDK to the CLI repo
Now the local CLI will run against your local backend instead of https://api.fintoc.com
You can run the tests by running:
npm run testYou can run the linter by running:
npm run lintYou can run the typecheck by running:
npm run typecheck