Install Dynatrace Configuration as Code
This guide shows you how to download the Dynatrace Configuration as Code CLI and install it on your operating system.
Install the Dynatrace Configuration as Code CLI
-
Download the latest version of the Dynatrace Configuration as Code CLI tool.
curl -L https://github.com/Dynatrace/dynatrace-configuration-as-code/releases/latest/download/monaco-linux-amd64 -o monaco
curl -L https://github.com/Dynatrace/dynatrace-configuration-as-code/releases/latest/download/monaco-linux-386 -o monaco
-
optional Verify the downloaded binary using the checksum.
-
Make the binary executable:
chmod +x monaco
-
optional Install Dynatrace Configuration as Code CLI to a central location in your
PATH
.sudo mv monaco /usr/local/bin/
This command assumes that you downloaded the binary to the current folder with the cUrl command described in step 1 and that your
$PATH
includes/usr/local/bin
.
-
Download the latest version of the Dynatrace Configuration as Code CLI tool.
curl -L https://github.com/Dynatrace/dynatrace-configuration-as-code/releases/latest/download/monaco-darwin-arm64 -o monaco
curl -L https://github.com/Dynatrace/dynatrace-configuration-as-code/releases/latest/download/monaco-darwin-amd64 -o monaco
-
optional Verify the downloaded binary using the checksum.
-
Make the binary executable:
chmod +x monaco
-
optional Install Dynatrace Configuration as Code CLI to a central location in your
PATH
.sudo mv monaco /usr/local/bin/
This command assumes that you downloaded the binary to the current folder with the cUrl command described in step 1 and that your
$PATH
includes/usr/local/bin
.
-
Download the latest version of the Dynatrace Configuration as Code CLI tool.
Invoke-WebRequest -URI https://github.com/Dynatrace/dynatrace-configuration-as-code/releases/latest/download/monaco-windows-amd64.exe -OutFile monaco.exe
Invoke-WebRequest -URI https://github.com/Dynatrace/dynatrace-configuration-as-code/releases/latest/download/monaco-windows-386.exe -OutFile monaco.exe
This executable is signed by Dynatrace.
-
optional Add Monaco to a central location in your
PATH
.
Run monaco
Execute the monaco
command to try out the downloaded CLI
> monaco
2023/01/30 15:17:57 INFO Dynatrace Configuration as Code v2.x
Tool used to deploy dynatrace configurations via the cli
Examples:
Deploy configuration defined in a manifest
monaco deploy service.yaml
Deploy a specific environment within an manifest
monaco deploy service.yaml -e dev
Usage:
monaco <command> [flags]
monaco [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
convert Convert v1 monaco configuration into v2 format
delete Delete configurations defined in delete.yaml from the environments defined in the manifest
deploy Deploy configurations to Dynatrace environments
download Download configuration from Dynatrace
help Help about any command
Flags:
-h, --help help for monaco
-v, --verbose Enable debug logging
Use "monaco [command] --help" for more information about a command
What's next
Learn by doing. Deploy your first configuration.