diff --git a/Userguide.md b/Userguide.md index d868ce3..db461f1 100644 --- a/Userguide.md +++ b/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. -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 ```