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
Get Started
For usage and help content, pass in the --help
parameter, for example:
$ ucp-cli --help Usage: ucp-cli [OPTIONS] COMMAND [ARGS]... Options: --help Show this mesage and exit Commands: env login org team user
Login to UCP
$ pip install python-ucp-cli ... $ ucp-cli login --username user1 --password password --url ucp-manager.local Login Succeeded $ eval $(ucp-cli env) ~ Cluster "ucp_ucp-manager.local:6443_user1" set. User "ucp_ucp-manager.local:6443_user1" set. Context "ucp_ucp-manager.local:6443_user1" created. ~ $ docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION 1nsupdtjmsfsndvm7rsg52cho ucp-manager.local Ready Active 18.09.0 $ kubectl get node NAME STATUS ROLES AGE VERSION ucp-manager.local Ready master 103d v1.11.5-docker-4
Manage organizations
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.8-py3-none-any.whl (20.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size python-ucp-cli-0.1.8.tar.gz (22.6 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for python_ucp_cli-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cebddcaa92a6019d9a0bb8f963415456f7fa8d49185b2257875e7590840d073 |
|
MD5 | b44e3be729c442f9bbb6b9653292156c |
|
BLAKE2-256 | af91cdeec47e71579fd1c630652edf7fba825ca59ac300702f9351a36942d7ef |