Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 01bf857

Browse files
authored
Merge pull request #145 from talaia-labs/cli-readme
Cli readme
2 parents 8a9e985 + 6855168 commit 01bf857

File tree

3 files changed

+10
-217
lines changed

3 files changed

+10
-217
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ htmlcov
1818
docs/
1919
.teos
2020
.teos_cli
21+
*.orig

cli/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Refer to [INSTALL.md](INSTALL.md)
1616
#### Global options
1717

1818
- `--apiconnect`: API server where to send the requests. Defaults to 'localhost' (modifiable in conf file).
19-
- `-apiport` : API port where to send the requests. Defaults to '9814' (modifiable in conf file).
19+
- `--apiport` : API port where to send the requests. Defaults to '9814' (modifiable in conf file).
2020
- `-h --help`: shows a list of commands or help for a specific command.
2121

2222
#### Commands
@@ -176,16 +176,18 @@ python teos_cli.py register
176176
177177
By default, `teos_cli` will connect to your local instance (running on localhost). There are also a couple of live instances running, one for mainet and one for testnet:
178178
179-
- testnet endpoint = `teos.pisa.watch`
180-
- mainnet endpoint = `teosmainnet.pisa.watch`
179+
- testnet endpoint = `teos-testnet.pisa.watch:443`
180+
- mainnet endpoint = `teos.pisa.watch:443` or `theeyeofsatoshi.pisa.watch:443`
181181
182182
### Connecting to the mainnet instance
183-
Add `--apiconnect https://teosmainnet.pisa.watch` to your calls, for example:
183+
Add `--apiconnect --apiport 443` to your calls, for example:
184184
185185
```
186-
python teos_cli.py --apiconnect https://teosmainnet.pisa.watch add_appointment -f dummy_appointment_data.json
186+
python teos_cli.py --apiconnect=https://teos.pisa.watch add_appointment --apiport=443 -f dummy_appointment_data.json
187187
```
188188
189189
You can also change the config file to avoid specifying the server every time:
190-
191-
`TEOS_SERVER = "https://teosmainnet.pisa.watch"`
190+
```
191+
api_connect = https://teos.pisa.watch
192+
api_port = 443
193+
```

cli/README.md.orig

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)