You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`--debug`: Saves the debug log from the last used command.
28
29
-`--install-completion`: Install completion for the current shell.
29
30
-`--show-completion`: Show completion for the current shell, to copy it or customize the installation.
30
31
-`--help`: Show this message and exit.
@@ -1914,6 +1915,7 @@ aliases: subnet, s
1914
1915
-`check-start`: Checks if a subnet's emission schedule can be started.
1915
1916
-`set-identity`: Get the identity information for a subnet.
1916
1917
-`get-identity`: Set or update the identity information for a subnet.
1918
+
-`set-symbol`: Allows the user to update their subnet symbol to a different available symbol. The full list of available symbols can be found here: https://github.com/opentensor/subtensor/blob/main/pallets/subtensor/src/subnets/symbols.rs#L8
1917
1919
1918
1920
### `btcli subnets hyperparameters`
1919
1921
@@ -2371,6 +2373,43 @@ alias: get_identity
2371
2373
|`--json-output`, `--json-out`|| Outputs the result of the command as JSON. |
2372
2374
|`--help`|| Show this message and exit. |
2373
2375
2376
+
### `btcli subnets set-symbol`
2377
+
2378
+
Allows the user to update their subnet symbol to a different available symbol. The full list of available symbols can be found here:
|`--wallet-name`, `--name`, `--wallet_name`, `--wallet.name`| TEXT | Name of the wallet. |
2403
+
|`--wallet-path`, `-p`, `--wallet_path`, `--wallet.path`| TEXT | Path where the wallets are located. For example: `/Users/btuser/.bittensor/wallets`. |
2404
+
|`--hotkey`, `-H`, `--wallet_hotkey`, `--wallet-hotkey`, `--wallet.hotkey`| TEXT | Hotkey of the wallet |
2405
+
|`--network`, `--subtensor.network`, `--chain`, `--subtensor.chain_endpoint`|| The subtensor network to connect to. Default: finney. |
2406
+
|`--netuid`| INTEGER | The netuid of the subnet in the network, (e.g. 1). |
2407
+
|`--json-output`, `--json-out`|| Outputs the result of the command as JSON. |
-`convert`: Allows for converting between tao and rao...
2522
+
-`latency`: This command will give you the latency of all finney-like network in additional to any additional networks you specify via the '--network' flag.
2483
2523
2484
2524
### `btcli utils convert`
2485
2525
2486
2526
Allows for converting between tao and rao using the specified flags
This command will give you the latency of all finney-like network in addition to any additional networks you specify via the `--network` flag
2545
+
2546
+
The results are three-fold. One column is the overall time to initialise a connection, send the requests, and wait for the results. The second column measures single ping-pong speed once connected. The third makes a real world call to fetch the chain head.
Copy file name to clipboardExpand all lines: docs/getting-started/install-btcli.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,3 +179,25 @@ If both `chain` and `network` config values are present in the `config.yml`, the
179
179
```bash
180
180
btcli config --help
181
181
```
182
+
183
+
### Environment variables
184
+
185
+
The Bittensor CLI also accepts environment variables that can change how it works:
186
+
187
+
- `USE_TORCH` (default 0): If set to 1, will use torch instead of numpy
188
+
- `DISK_CACHE` (default 0, also settable in config): If set to 1 (or set in config), will use disk caching for various safe-cachable substrate
189
+
calls (such as block number to block hash mapping), which can speed up subsequent calls.
190
+
- `BTCLI_CONFIG_PATH` (default `~/.bittensor/config.yml`): This will set the config file location, creating if it does not exist.
191
+
- `BTCLI_DEBUG_FILE` (default `~/.bittensor/debug.txt`): The file stores the most recent's command's debug log.
192
+
193
+
## Debugging
194
+
195
+
BTCLI stores a debug log for every command you run. Debug logging is enabled by default if `use_cache` is on. All logs are written to `~/.bittensor/debug.txt` and overwritten after each BTCLI command.
196
+
197
+
You can change the location with the [`BTCLI_DEBUG_FILE` environment variable](#environment-variables).
198
+
199
+
:::info
200
+
The debug log does not contain sensitive data (such as private keys). It is intended to be shared with developers for troubleshooting. The file includes details about the executed command, configuration, and request/response interactions with the chain.
201
+
:::
202
+
203
+
If you encounter an issue and want to preserve the log before it is overwritten, run `btcli --debug` and specify a new location to save the file. We recommend doing this first before starting your debugging with us on [Discord](https://discord.gg/bittensor) or opening an issue on [GitHub](https://github.com/opentensor/btcli/issues/new), where you can also upload your debug file.
0 commit comments