@@ -20,14 +20,20 @@ sudo apt install -y cmake build-essential pkg-config
2020
2121## Install
2222
23- To install you need to fill the env vars (` .env ` ) with the Mostro pubkey and relays. For admin commands, you'll also need to set your admin private key.
23+ You can install directly from crates:
24+
25+ ``` bash
26+ cargo install mostro-cli
27+ ```
28+
29+ Or downloading and compiling it by yourself:
2430
2531``` bash
2632git clone https://github.com/MostroP2P/mostro-cli.git
2733cd mostro-cli
28- cp .env-sample .env
29- # Edit .env and set MOSTRO_PUBKEY, RELAYS, and POW
34+ # Edit .env-sample and set MOSTRO_PUBKEY, RELAYS, and POW
3035# For admin commands, also set ADMIN_NSEC
36+ source .env-sample
3137cargo run
3238```
3339
@@ -61,7 +67,7 @@ Commands:
6167
6268Options:
6369 -v, --verbose
64- -m, --mostropubkey <MOSTROPUBKEY >
70+ -m, --mostropubkey <MOSTRO_PUBKEY >
6571 -r, --relays <RELAYS>
6672 -p, --pow <POW>
6773 -h, --help Print help
@@ -71,11 +77,11 @@ Options:
7177## Examples
7278
7379``` bash
74- $ mostro-cli -m npub1ykvsmrmw2hk7jgxgy64zr8tfkx4nnjhq9eyfxdlg3caha3ph0skq6jr3z0 -r ' wss://nos.lol,wss:// relay.damus.io ,wss://nostr-pub.wellorder.net,wss://nostr.mutinywallet.com,wss:// relay.nostr.band,wss://nostr.cizmar.net,wss://140.f7z.io,wss://nostrrelay.com,wss://relay.nostrr.de ' listorders
80+ $ mostro-cli -m npub1ykvsmrmw2hk7jgxgy64zr8tfkx4nnjhq9eyfxdlg3caha3ph0skq6jr3z0 -r ' wss://relay.mostro.network ,wss://relay.damus.io ' listorders
7581
7682# You can set the env vars to avoid the -m, -n and -r flags
77- $ export MOSTROPUBKEY =npub1ykvsmrmw2hk7jgxgy64zr8tfkx4nnjhq9eyfxdlg3caha3ph0skq6jr3z0
78- $ export RELAYS=' wss://nos.lol,wss:// relay.damus.io ,wss://nostr-pub.wellorder.net,wss://nostr.mutinywallet.com,wss:// relay.nostr.band,wss://nostr.cizmar.net,wss://140.f7z.io,wss://nostrrelay.com,wss://relay.nostrr.de '
83+ $ export MOSTRO_PUBKEY =npub1ykvsmrmw2hk7jgxgy64zr8tfkx4nnjhq9eyfxdlg3caha3ph0skq6jr3z0
84+ $ export RELAYS=' wss://relay.mostro.network ,wss://relay.damus.io '
7985$ mostro-cli listorders
8086
8187# Create a new buy order
@@ -105,5 +111,5 @@ $ mostro-cli neworder -p 10 -k sell -c ars -f 1000-10000 -m "face to face"
105111- [x] Direct message with peers (use nip-17)
106112- [x] Conversation key management
107113- [x] Add a new dispute's solver (for admins)
108- - [ ] Identity management (Nip-06 support)
109- - [ ] List own orders
114+ - [x ] Identity management (Nip-06 support)
115+ - [x ] List own orders
0 commit comments