Creating a repository in Cloudera Data Engineering using the CLI
Learn how to create a repository in Cloudera Data Engineering using the CLI with the supported Git providers, including GitHub, GitLab, and Bitbucket.
For information on limitations and on how to create credentials, see Creating a Git repository in Cloudera Data Engineering.
Using the CDE CLI, run the following command:
- For skipping TLS
certificate:
cde repository create --name [***REPOSITORY-NAME***] --url [***REPOSITORY-URL***] --branch [***BRANCH-NAME***] --insecure-skip-tls --credential [***USER-CREDENTIAL***] - For using TLS certificate:
cde repository create --name [***REPOSITORY-NAME***] --url [***REPOSITORY-URL***] --branch [***BRANCH-NAME***] --credential [***USER-CREDENTIAL***] --repository-tls-certs [***PATH-TO-CERT-PEM-FILE***]
Provide the values for the following parameters:
--name– The repository name.--url– The repository URL.--branch– The branch name.--insecure-skip-tls– Optional parameter. Use this parameter if the server uses a self-signed CA certificate that Cloudera Data Engineering does not trust. This allows Cloudera Data Engineering to skip the security check and clone the repository.--tls-insecure– Optional parameter. Use this parameter to enter the CA certificate for the repository.--repository-tls-certs- Optional parameter. Path to PEM file containing the TLS certificate bundle for the repository.--credential– If the repository does not require credentials, then this parameter is optional. For instructions on creating credentials, see Creating a Git repository in Cloudera Data Engineering.
