Dynatrace CLI
Project description
dt-cli — Dynatrace developer's toolbox
Dynatrace CLI is a command line utility that assists in signing, building and uploading extensions for Dynatrace Extension Framework 2.0.
Features
- Build and sign extensions from source
- Generate development certificates for extension signing
- Generate CA certificates for development
- Validate and upload extension to Dynatrace Extension Framework 2.0.
Installation
pip install dt-cli
Usage
- Generate certificates
dt extension gencerts
- Upload your
ca.pemcertificate to the Dynatrace credential vault
See: Add your root certificate to the Dynatrace credential vault
- Build and sign, then upload extension
dt extension build
dt extension upload
Use dt extension --help to learn more
- Download extension schemas
dt extension schemas
API permissions needed: extensions.read
This script should only be needed once, whenever schema files are missing or you want to target a different version than what you already have. It does the following:
- Downloads all the extension schema files of a specific version
- Schemas are downloaded to
schemasfolder
- Wipes out extension from Dynatrace Cluster
dt extension delete
Use dt extension --help to learn more
Using dt-cli from your Python code
You may want to use some commands implemented by dt-cli directly in your Python code, e.g. to automatically sign your extension in a CI environment.
Here's an example of building an extension programatically, it assumes dtcli package is already installed and available in your working environment.
from dtcli import building
building.build_extension(
extension_dir_path = './extension',
extension_zip_path = './extension.zip',
extension_zip_sig_path = './extension.zip.sig',
target_dir_path = './dist',
certificate_file_path = './developer.crt',
private_key_file_path = './developer.key',
dev_passphrase=None,
keep_intermediate_files=False,
)
Development
See our CONTRIBUTING guidelines and instructions.
Contributions
You are welcome to contribute using Pull Requests to the respective repository. Before contributing, please read our Code of Conduct.
License
dt-cli is an Open Source Project. Please see
LICENSE for more information.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dt-cli-1.2.0.tar.gz.
File metadata
- Download URL: dt-cli-1.2.0.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
666d9ed220f64c58c83f08dfcf26212f19679bdf949937799167edc3596f3d00
|
|
| MD5 |
30b7261db917f2f2fceb43c2147b1a49
|
|
| BLAKE2b-256 |
a8778119abe1254eb31d6f736489c344158b933ab78ea52deacecb8d2018c3d9
|
File details
Details for the file dt_cli-1.2.0-py3-none-any.whl.
File metadata
- Download URL: dt_cli-1.2.0-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46c855b6a13825d52fcacc8acc49ae4c10bf6fc302b01a3c75ee4b440b1794b3
|
|
| MD5 |
ef1aad152f9f9ecdd62fba743326786f
|
|
| BLAKE2b-256 |
4ee5d04ec581d6ad6988966e45862cf6cbe6dbd2994bbd1d4977ff168be70de3
|