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
python setup.py sdist bdist_wheel
ls build/
pip install -e .
check-manifest --create
git add MANIFEST.in
rm ./dist/python*
python setup.py bdist_wheel sdist
ls dist/
tar tzf dist/python-ucp-cli-0.1.4.tar.gz
twine upload dist/*
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.
Source Distribution
python-ucp-cli-0.1.4.tar.gz
(18.7 kB
view hashes)
Built Distribution
Close
Hashes for python_ucp_cli-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c71db06241c8013f45938427925fdf9ecf3ef6c9263c3494947bc549f6fec9b |
|
MD5 | 243e0059139e22e1ae92e1c1aca1e3d5 |
|
BLAKE2b-256 | 8f2c85631b48c506c49cbda260bd2e897034a55a27779e284eb07d69b78dfbc6 |