a
This commit is contained in:
parent
69affb3fbd
commit
3e0f99b4d0
1 changed files with 13 additions and 6 deletions
19
Userguide.md
19
Userguide.md
|
@ -10,24 +10,31 @@
|
||||||
|
|
||||||
To install `ucloud-cli` you need to execute the following commands. Make sure you have [Python 3.7](https://www.python.org/) and [pipenv](https://pypi.org/project/pipenv/) installed.
|
To install `ucloud-cli` you need to execute the following commands. Make sure you have [Python 3.7](https://www.python.org/) and [pipenv](https://pypi.org/project/pipenv/) installed.
|
||||||
|
|
||||||
1. Clone `ucloud-cli` git repository. `ucloud-cli` is needed to talk with ucloud backend i.e create/deleteTO_BE_/start/stop VM, attach network to VM etc.
|
1. Clone `ucloud-setup` git repository.
|
||||||
```bash
|
```bash
|
||||||
git clone https://code.ungleich.ch/ungleich-public/ucloud-cli.git
|
git clone https://code.ungleich.ch/ucloud/ucloud-setup.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Change your directory to recently cloned repository.
|
2. Change your directory to recently cloned repository.
|
||||||
```bash
|
```bash
|
||||||
cd ucloud-cli
|
cd ucloud-setup
|
||||||
```
|
```
|
||||||
3. Install dependencies of `ucloud-cli`
|
3. Install dependencies of `ucloud-setup`
|
||||||
```bash
|
```bash
|
||||||
pipenv install
|
pipenv install
|
||||||
```
|
```
|
||||||
4. Activate `ucloud-cli`
|
4. Execute the following command to install ucloud
|
||||||
```bash
|
```bash
|
||||||
|
pipenv run python ucloud-setup.py cli setup --path ../ --api_server $api_server_url --name $username --realm $realm --seed $seed
|
||||||
|
```
|
||||||
|
It will setup ucloud in the parent directory of `ucloud-setup`
|
||||||
|
5. Go to `ucloud-cli`
|
||||||
|
```bash
|
||||||
|
cd ../ucloud-cli
|
||||||
|
pipenv install
|
||||||
pipenv shell
|
pipenv shell
|
||||||
```
|
```
|
||||||
5. Run the following command to ensure that you have successfully installed `ucloud-cli`
|
6. Run the following command to ensure that you have successfully installed `ucloud-cli`
|
||||||
```bash
|
```bash
|
||||||
python ucloud.py
|
python ucloud.py
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue