Skip to content

Commit efe9e93

Browse files
committed
docs: cli readme fix command
1 parent 77b0fc2 commit efe9e93

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

examples/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@ For a server-side token-generation alternative and more documentation, see [`@pu
1010

1111
```bash
1212
cargo build
13-
./target/debug/pulsebeam-cli create-token \
13+
./target/debug/pulsebeam-cli \
14+
--api-key "your_api_key" \
15+
--api-secret "your_api_secret" \
16+
create-token \
1417
--peer-id "peer-1" \
1518
--group-id "test" \
16-
--allow-policy "test:peer-*" \
17-
--api-key "your_api_key" \
18-
--api-secret "your_api_secret"
19+
--allow-policy "test:peer-*"
1920

20-
./target/debug/pulsebeam-cli create-token \
21+
./target/debug/pulsebeam-cli \
22+
--api-key "your_api_key" \
23+
--api-secret "your_api_secret" \
24+
create-token \
2125
--peer-id "peer-2" \
2226
--group-id "test" \
23-
--allow-policy "test:peer-*" \
24-
--api-key "your_api_key" \
25-
--api-secret "your_api_secret"
27+
--allow-policy "test:peer-*"
2628
```
2729

2830
Now you should have two tokens. You can use the tokens to connect the two peers together using PulseBeam. They are valid for the next hour.

0 commit comments

Comments
 (0)