Skip to main content

Cloudera CDP Command Line Interface

Project description

# Cloudera CDP Command Line Interface

This package provides a unified command line interface to the Cloudera Data Platform (CDP) control plane API.

## Prerequisites

  • Python 2.7 or higher (3.5 or higher recommended)

Note: Starting in January 2021, Python 3.5 or higher will be required.

## Installation

To install using pip from the [cdpcli PyPI project](https://pypi.org/project/cdpcli/):

` $ pip install cdpcli `

To install from source:

` $ git clone git@github.com:cloudera/cdpcli.git $ cd cdpcli $ pip install . `

## Configuring

API calls through the CDP CLI require a key pair issued from the CDP control plane. Use the CDP console to generate keys, following [documented instructions](https://docs.cloudera.com/management-console/cloud/cli/topics/mc-cli-generating-an-api-access-key.html). Then, run cdp configure to provide the credentials to the CLI.

` $ cdp configure CDP Access Key ID [None]: xxx CDP Private Key [None]: yyy `

Credentials are stored under the “default” profile in $HOME/.cdp/credentials, using the ini file format.

### Profiles

If you need to access the API as more than one user, set up a named profile for each user. Each profile stores a separate set of credentials.

` $ cdp configure --profile my-other-user `

## Running

Basic syntax:

` cdp [options] <command> <subcommand> [parameters] `

Examples:

` $ cdp iam get-user $ cdp environments describe-environments --environment-name myenv1 `

### Help

For general help, use any of these commands.

` $ cdp help $ cdp --help $ cdp # no arguments `

Most CLI commands correspond to API services. Subcommands correspond to operations in services.

  • For help on any command, run its help subcommand, or pass the –help parameter.

  • For help on any subcommand, pass the help or –help parameter.

The same help content is available in online [API documentation](https://cloudera.github.io/cdp-dev-docs/api-docs/).

### Profiles

By default, the CLI uses credentials in the “default” profile. Use a different profile by passing the –profile option.

` $ cdp --profile my-other-user iam get-user `

## License

The CDP CLI is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) with a [supplemental license disclaimer](https://console.cdp.cloudera.com/downloads/LICENSE_SUPPLEMENTAL_DISCLAIMER.txt).

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

cdpcli-0.9.19.tar.gz (645.9 kB view details)

Uploaded Source

File details

Details for the file cdpcli-0.9.19.tar.gz.

File metadata

  • Download URL: cdpcli-0.9.19.tar.gz
  • Upload date:
  • Size: 645.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.3

File hashes

Hashes for cdpcli-0.9.19.tar.gz
Algorithm Hash digest
SHA256 8512c8413525d5253efc62e3e6b735bfc75e75c1f595717909395b2d11443faa
MD5 05d4d38b529fbfe39613656a6ec2b98f
BLAKE2b-256 e859d5f82cb273590e7248e812f5b91c2a991cdd1559b773e72646994381c022

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page