https://github.com/mento-protocol/mento-cli
CLI for interacting with the Mento Protocol
https://github.com/mento-protocol/mento-cli
Last synced: 4 months ago
JSON representation
CLI for interacting with the Mento Protocol
- Host: GitHub
- URL: https://github.com/mento-protocol/mento-cli
- Owner: mento-protocol
- Created: 2024-01-23T19:24:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T23:36:32.000Z (over 1 year ago)
- Last Synced: 2025-05-29T19:51:59.570Z (about 1 year ago)
- Language: TypeScript
- Size: 80.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.MD
Awesome Lists containing this project
README
# mento-cli
CLI for interacting with the Mento protocol
[](https://oclif.io)
[](https://npmjs.org/package/mento-cli)
[](https://npmjs.org/package/mento-cli)
## đ Table of Contents
1. đ¨ [Getting Started](#getting-started)
2. đ [Usage](#usage)
3. ⨠[Misc commands](#commands)
4. ÂŠī¸ [License](#license)
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:
```bash
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Run CLI locally
pnpm run dev
```
## đ Usage
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:
```bash
# 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
```
## ⨠Commands
- [`mento pools list`](#mento-pools-list)
- [`mento pools info POOLID`](#mento-pools-info-poolid)
- [`mento config COMMAND`](#mento-config-command)
- [`mento config set FLAG`](#mento-config-set-flag)
## `mento pools list`
### List all pools with their basic information
```
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
```
## `mento pools info POOLID`
### Get information about a specific pool
```
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
```
## `mento config COMMAND`
### Get/set the configuration options for the CLI
```
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
```
## `mento config set FLAG`
### Set the value for the configuration option with the given flag
```
USAGE
$ mento config set -r
FLAGS
-r, --rpcUrl= (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](http://opensource.org/licenses/MIT).
If you want to contribute to this project, please read the [**contribution guide**](/CONTRIBUTING.MD)