-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bf4b97
commit fd5b695
Showing
1 changed file
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,47 @@ | ||
# marginfi v2 client | ||
|
||
- Display a specific group (defaults to profile group): `cargo run --features devnet group get` | ||
- List all groups: `cargo run --features devnet group get-all` | ||
## Install the cli | ||
|
||
1. Install the latest stable toolchain and set it to default: | ||
|
||
``` | ||
rustup default stable-x86_64-apple-darwin | ||
$ rustc --version | ||
rustc 1.71.1 | ||
``` | ||
|
||
2. Navigate to the cli folder | ||
|
||
3. Make sure to build with the `--all-features` flag and target `x86_64`: | ||
|
||
``` | ||
cargo install --path . --target x86_64-apple-darwin --all-features | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
$ mfi | ||
marginfi-v2-cli 0.1.0 | ||
USAGE: | ||
mfi [OPTIONS] <SUBCOMMAND> | ||
OPTIONS: | ||
--dry-run Dry run for any transactions involved | ||
-h, --help Print help information | ||
-V, --version Print version information | ||
-y, --skip-confirmation | ||
SUBCOMMANDS: | ||
account | ||
bank | ||
group | ||
help Print this message or the help of the given subcommand(s) | ||
inspect-padding | ||
inspect-size | ||
inspect-switchboard-feed | ||
lip | ||
profile | ||
``` |