flutterwave-cli-tool
v1.0.1
Published
cli for flutterwave
Downloads
17
Maintainers
Readme
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 -c
flag 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 --help
for a list of flw's flag.
Flags and description.
SubAccounts
flw subaccounts --all
flw subaccounts -a
- Fetchs all existing subaccountsflw subaccounts --unique _subaccountNum_
flw subaccounts -u _subaccountNum_
- Returns details of the subaccount supplied.flw subaccounts --create
flw subaccounts -c
- Allows you create a subaccount in the terminal.flw subaccounts --delete
flw subaccounts -d
- Deletes a subaccount.
Transactions
flw transactions --all
,flw transactions --verify
,flw transactions --refund
Virtual Cards
flw --all
flw -a
- Fetches all created virtual cards.flw --fetch
flw -f
- Returns a termial prompt to fetch a specific cardflw --status
flw -s
- Block/Unblock a created card.flw --terminate
flw -t
- Terminate a card.
NB: To create a virtual card, continues to throw an error... fix coming soon.
Virtual Accounts
flw --create
flw -c
- Creates a Virtual Account.flw --fetch
flw -f
- Returns a termial prompt to fetch a specific account
Miscellanous
flw --bvn
flw -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