CLI for interacting with the Mento protocol
To get started working on this, you will need to have the following on your machine :
Then, run the following commands to build and use the cli locally:
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Run CLI locally
pnpm run dev
An NPM package for the CLI does not yet exist, at this time the easiest way to get started is to create a global alias:
# Ensure the app is built
pnpm run build
# At the project root run this command to crete a global CLI alias
pnpm link --global
# Now you can run anywhere using
mento
USAGE
$ mento pools list [-p]
FLAGS
-p, --pretty Format output in a table and which includes token addresses.
EXAMPLES
List all pools.
$ mento pools list
List all pools in an ugly tabe. Only looks pretty with a full screen terminal.
$ mento pools list -p
USAGE
$ mento pools info POOLID
ARGUMENTS
POOLID ID of pool to be retrieved
EXAMPLES
Get information for the cUSD/CELO pool on mainnet.
$ mento pools info 0x3135b662c38265d0655177091f1b647b4fef511103d06c016efdf18b46930d2c
USAGE
$ mento config COMMAND
COMMANDS
config get Get configuration options for the CLI
config set Set configuration options for the CLI
EXAMPLES
Get the configurable options
$ mento config get
Set a configurable options
$ mento config set FLAG
USAGE
$ mento config set -r <value>
FLAGS
-r, --rpcUrl=<value> (required) Specify the RPC URL to use
EXAMPLES
Set the rpc url to use for the cli.
$ mento config get set -r https://alfajores-forno.celo-testnet.org
This project is licensed under the MIT License.
If you want to contribute to this project, please read the contribution guide