flutterwave-cli-tool v1.0.1
An unofficial CLI tool for flutterwave.
Run your flutterwave account in the terminal.
Installation
Simply run npm install flutterwave-cli-tool -g
How It Works.
To begin, simply initialize the application with
flw init -cflag in your terminal. This will set your flutterwave private, flutterwave public & a user-defined password for you. NB. these information are local to your machine.Run
flw --helpfor a list of flw's flag.
Flags and description.
- SubAccounts
flw subaccounts --allflw subaccounts -a- Fetchs all existing subaccountsflw subaccounts --unique _subaccountNum_flw subaccounts -u _subaccountNum_- Returns details of the subaccount supplied.flw subaccounts --createflw subaccounts -c- Allows you create a subaccount in the terminal.flw subaccounts --deleteflw subaccounts -d- Deletes a subaccount.
- Transactions
flw transactions --all,flw transactions --verify,flw transactions --refund
Virtual Cards
flw --allflw -a- Fetches all created virtual cards.flw --fetchflw -f- Returns a termial prompt to fetch a specific cardflw --statusflw -s- Block/Unblock a created card.flw --terminateflw -t- Terminate a card.
NB: To create a virtual card, continues to throw an error... fix coming soon.
Virtual Accounts
flw --createflw -c- Creates a Virtual Account.flw --fetchflw -f- Returns a termial prompt to fetch a specific account
Miscellanous
flw --bvnflw -b- Verify a BVN & see its details.
NB: I am currently leaving out "create" parts of the tool for now! As, I think proper security should be included.
issues with the api-end of the application
fetch transactions returns all the readings, even when the from n to dates are specified.
the creation of subaccounts from the terminal doesn't verify the account numbers... and as a result cannot create and account.
the docx say you are passing tx_ref to verify a transaction, but it actually uses the id
#todo
- add tables to some response e.g. fetch all v. cards
- add next to navigate responses in the terminal