Skip to content

Commit 4072a86

Browse files
author
Watchmaker
authored
Merge pull request #113 from opentensor/rajk/README-revision
Revising README
2 parents 8c5a6e7 + 1acb6c2 commit 4072a86

File tree

2 files changed

+142
-2
lines changed

2 files changed

+142
-2
lines changed

README.md

Lines changed: 142 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,143 @@
1-
# btcli
1+
<div align="center">
22

3-
This is pre-release of the new btcli. If you stumbled upon this, you are probably looking for the current btcli which is part of https://github.com/opentensor/bittensor
3+
# Bittensor CLI <!-- omit in toc -->
4+
[![Discord Chat](https://img.shields.io/discord/308323056592486420.svg)](https://discord.gg/bittensor)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
<!-- [![PyPI version](https://badge.fury.io/py/bittensor_cli.svg)](https://badge.fury.io/py/bittensor_cli) -->
7+
8+
---
9+
10+
## Internet-scale Neural Networks <!-- omit in toc -->
11+
12+
[SDK](https://github.com/opentensor/bittensor/tree/master)[Wallet](https://github.com/opentensor/btwallet)[Research](https://bittensor.com/whitepaper)
13+
14+
</div>
15+
16+
- [Documentation](#documentation)
17+
- [Install on macOS and Linux](#install-on-macos-and-linux)
18+
- [Install from source](#install-from-source)
19+
- [Install on Windows](#install-on-windows)
20+
- [Verify the installation](#verify-the-installation)
21+
- [Configuration](#configuration)
22+
- [Example config file](#example-config-file)
23+
- [License](#license)
24+
25+
---
26+
27+
The Bittensor CLI, `btcli`, is a powerful command line tool for the Bittensor platform. You can use it on any macOS, Linux or WSL terminal to manage all common operations like creating a wallet, registering a subnet or a neuron, delegating your TAO, viewing Senate proposals and voting for them, and much more. Help information can be invoked for every command and option with `--help` option.
28+
29+
![btcli screenshot](./assets/btcli-screenshot.png)
30+
31+
---
32+
33+
## Documentation
34+
35+
Installation steps are described below. For a full documentation on how to use `btcli`, see the [Bittensor CLI section](https://docs.bittensor.com/btcli) on the developer documentation site.
36+
37+
---
38+
39+
## Install on macOS and Linux
40+
41+
You can install `btcli` on your local machine directly from source. **Make sure you verify your installation after you install**:
42+
43+
### Install from source
44+
45+
1. Create and activate a virtual environment.
46+
47+
```bash
48+
python3 -m venv btcli_venv
49+
source btcli_venv/bin/activate
50+
```
51+
52+
2. Clone the Bittensor CLI repo.
53+
54+
```bash
55+
git clone https://github.com/opentensor/btcli.git
56+
```
57+
58+
3. `cd` into `btcli` directory.
59+
60+
```bash
61+
cd btcli
62+
```
63+
64+
4. Install
65+
66+
67+
```bash
68+
pip3 install .
69+
```
70+
71+
---
72+
73+
## Install on Windows
74+
75+
To install and run Bittensor SDK on Windows you must install [**WSL 2** (Windows Subsystem for Linux)](https://learn.microsoft.com/en-us/windows/wsl/about) on Windows and select [Ubuntu Linux distribution](https://github.com/ubuntu/WSL/blob/main/docs/guides/install-ubuntu-wsl2.md).
76+
77+
After you installed the above, follow the same installation steps described above in [Install on macOS and Linux](#install-on-macos-and-linux).
78+
79+
**ALERT**: **Limited support on Windows for Bittensor operations**
80+
While wallet transactions like delegating, transfer, registering, staking can be performed on a Windows machine using WSL 2, the subnet mining and subnet validating operations are not recommended and are not supported on Windows machines.
81+
82+
---
83+
84+
## Verify the installation
85+
86+
```bash
87+
btcli --version
88+
```
89+
90+
The above command will show you the version of the `btcli` you just installed.
91+
92+
---
93+
94+
## Configuration
95+
96+
You can set the commonly used values, such as your hotkey and coldkey names, the default chain URL or the network name you use, and more, in `config.yml`. You can override these values by explicitly passing them in the command line for any `btcli` command.
97+
98+
### Example config file
99+
100+
The default location of the config file is: `~/.bittensor/config.yml`. An example of a `config.yml` is shown below:
101+
102+
```yaml
103+
chain: ws://127.0.0.1:9945
104+
network: local
105+
no_cache: False
106+
wallet_hotkey: hotkey-user1
107+
wallet_name: coldkey-user1
108+
wallet_path: ~/.bittensor/wallets
109+
metagraph_cols:
110+
ACTIVE: true
111+
AXON: true
112+
COLDKEY: true
113+
CONSENSUS: true
114+
DIVIDENDS: true
115+
EMISSION: true
116+
HOTKEY: true
117+
INCENTIVE: true
118+
RANK: true
119+
STAKE: true
120+
TRUST: true
121+
UID: true
122+
UPDATED: true
123+
VAL: true
124+
VTRUST: true
125+
```
126+
127+
**For more help:**
128+
129+
```bash
130+
btcli config --help
131+
```
132+
133+
---
134+
135+
## License
136+
The MIT License (MIT)
137+
Copyright © 2024 The Opentensor Foundation
138+
139+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
140+
141+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
142+
143+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

assets/btcli-screenshot.png

275 KB
Loading

0 commit comments

Comments
 (0)