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
Usage
$ ucp-cli login --username user1 --password password --url ucp-manager.local $ eval $(ucp-cli env) $ docker node ls ... $ kubectl get node ...
Developer
virtualenv venv
ls venv/
. venv/bin/activate
which python
rm -rf ./build && rm -rf ./dist
python setup.py sdist bdist_wheel
ls build/
pip install -e .
check-manifest --create
git add MANIFEST.in
pip install . -vvv | grep 'adding'
python setup.py bdist_wheel sdist
ls dist/
tar tzf dist/python-ucp-cli-0.1.4.tar.gz
twine upload dist/*
pip uninstall python-ucp-cli
pip install --no-cache-dir python-ucp-cli --user
pip show python-ucp-cli
### 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.1.5-py3-none-any.whl (17.4 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size python-ucp-cli-0.1.5.tar.gz (18.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for python_ucp_cli-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c9d7b11232d68b2d5f03f36e916c2299690a655529e1e4cbe1f0e3316afd13 |
|
MD5 | 34198d3147de3022b47892a82e724681 |
|
BLAKE2-256 | 9f27681858992c60bba57fb19ddcac20fd683061543b074e1f584aba152989d8 |