# XRPL CLI
A CLI for the XRP Ledger.
[![Crates.io](https://img.shields.io/crates/v/xrpl_cli)](https://crates.io/crates/xrpl_cli)
More information about this crate can be found in the [crate documentation][docs].
## Setup
To install the binary from source, run:
```sh
cargo install --path .
```
## Usage
```sh
xrpl --help
xrpl account
info
xrpl account info --json --pretty
xrpl account info -jp
xrpl account balances
xrpl account balances --json --pretty
xrpl account balances -jp
xrpl account offers
xrpl account offers --pretty
xrpl account offers --json --pretty
xrpl account offers -jp
xrpl account offers list
xrpl account --public-key=".." --secret-key=".." offers remove
xrpl account --public-key="..." --secret-key="..." offers create --taker-pays="5.0 USD:rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq" --taker-gets="1.0 XRP"
xrpl account trustlines list --pretty
xrpl account lines list --pretty
xrpl ledger --closed
```
The `RUST_LOG` env variable is used to configure tracing, e.g.
```sh
RUST_LOG=debug xrpl account ADDRESS info -jp
```
## Status
This work is under active development and the API is expected to change.
## Contributing
Pull requests, issues and comments are welcome! Make sure to add tests for new features and bug fixes.
## License
This work is licensed under the Apache-2.0 License. See [LICENSE.txt](LICENSE.txt) or for details.
## Copyright
Copyright © 2022 [Georgios Moschovitis](https://gmosx.ninja).
[docs]: https://docs.rs/xrpl_cli