--- description: Learn how to access Docker Universal Control Plane from the CLI. keywords: - docker, ucp, cli, administration menu: main: identifier: ucp_cli_access parent: mn_ucp_access weight: 10 title: CLI-based access --- # CLI-based access Docker UCP secures your cluster with role-based access control, so that only authorized users can perform changes to the cluster. For this reason, when running docker commands on a UCP node, you need to authenticate your request using client certificates. When trying to run docker commands without a valid certificate, you get an authentication error: ```markdown $ docker ps An error occurred trying to connect: Get https://ucp:443/v1.22/containers/json: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" when trying to verify candidate authority certificate "UCP Client Root CA") ``` There are two different types of client certificates: * Admin user certificate bundles: allow running docker commands on the Docker Engine of any node, * User certificate bundles: only allow running docker commands through a UCP controller node. ## Download client certificates To download a client certificate bundle, **log into UCP**, and navigate to your **profile page**. ![](../images/cli-based-access-1.png) Click the **Create a Client Bundle** button, to download the certificate bundle. ## Use client certificates Once you've downloaded a client certificate bundle, you can use it to authenticate your requests. Navigate to the directory where you downloaded the bundle, and unzip it. Then run the `env.sh` script to start using the client certificates. ```bash $ unzip ucp-bundle-dave.lauper.zip $ cd ucp-bundle-dave.lauper $ eval $(","password":""}' https:///auth/login | jq -r .auth_token) # Download the client certificate bundle $ curl -k -H "Authorization: Bearer $AUTHTOKEN" https:///api/clientbundle -o bundle.zip ``` ## Where to go next * [Deploy an app from the UI](../applications/deploy-app-ui.md) * [Deploy an app from the CLI](../applications/deploy-app-cli.md)