Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarpavlovsky authored Aug 22, 2023
1 parent 1bf4b97 commit fd5b695
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions clients/rust/marginfi-cli/README.md
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
```

0 comments on commit fd5b695

Please sign in to comment.