Skip to main content

Cloudera CDP Command Line Interface

    This package provides a unified command line interface to the Cloudera Data
    Platform (CDP) control plane API.
    
    ## Prerequisites
    
    * Python 3.6 or higher
    
    Earlier versions of Python are no longer supported for new releases, as of
    January 2021. Previous CLI releases shall continue to work under earlier Python
    versions.
    
    Starting with version 0.9.24, the requests and urllib3 libraries are no longer
    bundled with the CLI. When upgrading, watch for those new dependencies to be
    installed.
    
    ## 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 .
    ```
    
    ### Beta CLI
    
    An alternative CLI exposing beta functionality is available in its own package.
    
    ```
    $ pip install cdpcli-beta
    ```
    
    Do not install both the regular and beta CLIs in the same Python environment,
    as they use the same entry points and therefore conflict.
    
    Any features exposed in the beta CLI that are not available in the regular CLI
    are still under development. They are not yet supported, may not work, and are
    subject to change in incompatible ways, including removal. Do not rely on beta
    features for production use.
    
    ## 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/cdp-public-cloud/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.
    
    ```
    [default]
    cdp_access_key_id = xxx
    cdp_private_key = yyy
    ```
    
    ### 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
    ```
    
    The credentials for a profile are stored in *$HOME/.cdp/credentials* under a
    section named for the profile.
    
    ### Credential Environment Variables
    
    An alternative to storing credentials in *$HOME/.cdp/credentials* is to pass
    them using the environment variables `CDP_ACCESS_KEY_ID` and `CDP_PRIVATE_KEY`.
    However, these variables are ignored when the `--profile` option is used when
    running the CLI (see below).
    
    ### Base Endpoint URL and Form Factor
    
    The CLI may be used to access
    [CDP Private Cloud](https://docs.cloudera.com/cdp-private-cloud/latest/index.html)
    control planes. Contact your control plane administrator to obtain the required
    base endpoint URL value for your installation. Set the value in
    *$HOME/.cdp/config*, another configuration file that uses the ini file format.
    Create a section named for the profile which should work with the private cloud
    control plane.
    
    ```
    [profile private1]
    cdp_endpoint_url = https://cdp-private.example.com
    ```
    
    The CLI guesses whether it is using CDP Public Cloud or CDP Private Cloud based
    on the base endpoint URL. If you find that it is guessing incorrectly, you can
    configure use of either *form factor* in *$HOME/.cdp/config*. Valid form factor
    values are "public" and "private".
    
    ```
    [profile private1]
    form_factor = private
    ```
    
    ## 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
    ```
    
    ### Base Endpoint URL and Form Factor
    
    By default, the CLI works with
    [CDP Public Cloud](https://docs.cloudera.com/cdp-public-cloud/cloud/overview/topics/cdp-public-cloud.html)
    and calculates API endpoints accordingly. If you are using CDP Private Cloud, be
    sure to provide the base endpoint URL for your private cloud control plane. You
    can do so by setting it in *$HOME/.cdp/config* for the desired profile, or
    through the `--endpoint-url` option, which supersedes the configuration.
    
    ```
    $ cdp --endpoint-url https://other.cdp-private.example.com ...
    ```
    
    The CLI guesses whether it is using CDP Public Cloud or CDP Private Cloud based
    on the base endpoint URL. If you find that it is guessing incorrectly, you can
    force use of either *form factor* by either setting it in *$HOME/.cdp/config*
    for the desired profile, or through the `--form-factor` option, which supersedes
    the configuration. Specifying a form factor does not alter the base endpoint URL
     in use.
    
    ```
    $ cdp --form-factor private ...
    ```
    
    ## 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).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdpcli_beta-0.9.163.tar.gz (432.3 kB view details)

Uploaded Source

File details

Details for the file cdpcli_beta-0.9.163.tar.gz.

File metadata

  • Download URL: cdpcli_beta-0.9.163.tar.gz
  • Upload date:
  • Size: 432.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.13

File hashes

Hashes for cdpcli_beta-0.9.163.tar.gz
Algorithm Hash digest
SHA256 0184898d6531d56b09d950bad5e7488d728c1093a0167bda5e52a76d78021c31
MD5 b39a84d61df5cf1095f87b3edf06ba67
BLAKE2b-256 96c372d0e7b4311b91329f63e0763a605080a6f7a62cce96186417390cf40495

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.163 This release

1 file

0.9.162

1 file

0.9.161

1 file

0.9.160

1 file

0.9.159

1 file

0.9.158

1 file

0.9.157

1 file

0.9.156

1 file

0.9.155

1 file

0.9.154

1 file

0.9.153

1 file

0.9.152

1 file

0.9.151

1 file

0.9.150

1 file

0.9.149

1 file

0.9.148

1 file

0.9.147

1 file

0.9.146

1 file

0.9.145

1 file

0.9.144

1 file

0.9.143

1 file

0.9.142

1 file

0.9.141

1 file

0.9.140

1 file

0.9.139

1 file

0.9.138

1 file

0.9.137

1 file

0.9.136

1 file

0.9.135

1 file

0.9.134

1 file

0.9.133

1 file

0.9.132

1 file

0.9.131

1 file

0.9.130

1 file

0.9.129

1 file

0.9.128

1 file

0.9.127

1 file

0.9.126

1 file

0.9.125

1 file

0.9.124

1 file

0.9.123

1 file

0.9.122

1 file

0.9.121

1 file

0.9.120

1 file

0.9.119

1 file

0.9.118

1 file

0.9.117

1 file

0.9.115

1 file

0.9.114

1 file

0.9.113

1 file

0.9.112

1 file

0.9.111

1 file

0.9.109

1 file

0.9.108

1 file

0.9.107

1 file

0.9.106

1 file

0.9.105

1 file

0.9.104

1 file

0.9.103

1 file

0.9.102

1 file

0.9.101

1 file

0.9.100

1 file

0.9.99

1 file

0.9.98

1 file

0.9.97

1 file

0.9.96

1 file

0.9.95

1 file

0.9.94

1 file

0.9.93

1 file

0.9.92

1 file

0.9.91

1 file

0.9.90

1 file

0.9.89

1 file

0.9.88

1 file

0.9.87

1 file

0.9.86

1 file

0.9.85

1 file

0.9.84

1 file

0.9.83

1 file

0.9.82

1 file

0.9.81

1 file

0.9.80

1 file

0.9.79

1 file

0.9.78

1 file

0.9.77

1 file

0.9.76

1 file

0.9.75

1 file

0.9.74

1 file

0.9.73

1 file

0.9.72

1 file

0.9.71

1 file

0.9.70

1 file

0.9.69

1 file

0.9.68

1 file

0.9.67

1 file

0.9.66

1 file

0.9.65

1 file

0.9.64

1 file

0.9.63

1 file

0.9.62

1 file

0.9.61

1 file

0.9.60

1 file

0.9.59

1 file

0.9.58

1 file

0.9.57

1 file

0.9.56

1 file

0.9.55

1 file

0.9.54

1 file

0.9.53

1 file

0.9.52

1 file

0.9.51

1 file

0.9.50

1 file

0.9.49

1 file

0.9.48

1 file

0.9.47

1 file

0.9.46

1 file

0.9.45

1 file

0.9.44

1 file

0.9.42

1 file

0.9.41

1 file

0.9.40

1 file

0.9.39

1 file

0.9.38

1 file

0.9.37

1 file

0.9.36

1 file

0.9.35

1 file

0.9.34

1 file

0.9.33

1 file

0.9.32

1 file

0.9.31

1 file

0.9.30

1 file

0.9.29

1 file

0.9.28

1 file

0.9.27

1 file

0.9.26

1 file

0.9.25

1 file

0.9.24

1 file

0.9.23

1 file

0.9.22

1 file

0.9.21

1 file

0.9.20

1 file

0.9.19

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page