This commit is contained in:
ahmadbilalkhalid 2019-09-16 22:20:03 +05:00
parent 69affb3fbd
commit 3e0f99b4d0
1 changed files with 13 additions and 6 deletions

View File

@ -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.
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
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.
```bash
cd ucloud-cli
cd ucloud-setup
```
3. Install dependencies of `ucloud-cli`
3. Install dependencies of `ucloud-setup`
```bash
pipenv install
```
4. Activate `ucloud-cli`
4. Execute the following command to install ucloud
```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
```
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
python ucloud.py
```