No project description provided
Project description
A Docker Universal Control Plane CLI
This ucp-cli login
command will download your user bundle and auth token into the ~/.ucp directory.
With eval $(ucp-cli env)
you can then access the docker or kubectl context.
Reference: https://docs.docker.com/ee/ucp/user-access/cli/
Installation
Run the following to install:
$ pip install python-ucp-cli
$ eval $(ucp-cli env)
$ docker node ls
...
$ kubectl get node
...
Usage
$ ucp-cli login --username user1 --password S3cretPassword12345 --url ucp-manager.local $ eval $(ucp-cli env) $ docker node ls ... $ kubectl get node ...
Developer
virtualenv venv
ls venv/
. venv/bin/activate
which python
pip install --editable .
Get Started
For usage and help content, pass in the -h
parameter, for example:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size python_ucp_cli-0.0.7-py3-none-any.whl (16.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Close
Hashes for python_ucp_cli-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56aa996284e5dd3f93fbcd556892c6b2a81e24e2f9439546730bba3de9e62bc0 |
|
MD5 | 779a52ebe7a9375fa73987f57fd1d228 |
|
BLAKE2-256 | ec802beacffb9bcd661975d6d80b388fab2ff706be059353fb55defd038ab3ec |