https://github.com/mayorityz/flutterwave-cli
A cli tool for flutterwave
https://github.com/mayorityz/flutterwave-cli
Last synced: 3 months ago
JSON representation
A cli tool for flutterwave
- Host: GitHub
- URL: https://github.com/mayorityz/flutterwave-cli
- Owner: mayorityz
- Created: 2020-11-06T12:29:39.000Z (over 4 years ago)
- Default Branch: development
- Last Pushed: 2020-11-23T17:39:37.000Z (about 4 years ago)
- Last Synced: 2024-10-28T22:12:57.425Z (4 months ago)
- Language: JavaScript
- Size: 85 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- jimsghstars - mayorityz/flutterwave-cli - A cli tool for flutterwave (JavaScript)
README
### An unofficial CLI tool for flutterwave.
#### Run your flutterwave account in the terminal.
#### Installation
Simply run `npm install -g flutterwave-cli-tool`
###### How It Works.
1. 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.
2. Run `flw --help` for a list of flw's flag.
###### Flags and description.
1. **SubAccounts**
- `flw subaccounts --all` `flw subaccounts -a` - Fetchs all existing subaccounts
- `flw 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.
2. **Transactions**
- `flw transactions --all`,
- `flw transactions --verify`,
- `flw transactions --refund`
3. **Virtual Cards**- `flw --all` `flw -a` - Fetches all created virtual cards.
- `flw --fetch` `flw -f` - Returns a termial prompt to fetch a specific card
- `flw --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.
4. **Virtual Accounts**
- `flw --create` `flw -c` - Creates a Virtual Account.
- `flw --fetch` `flw -f` - Returns a termial prompt to fetch a specific account5. **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
1. fetch transactions returns all the readings, even when the from n to dates are specified.
2. the creation of subaccounts from the terminal doesn't verify the account numbers... and as a result cannot create and account.
3. 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 terminalemail: [email protected]
www.twitter.com/mayoritycodes