dtctl

Manage Dynatrace observability with a kubectl-style CLI.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/virtualrussel/dynatrace-ai-workspace --skill dtctl-virtualrussel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dtctl
Source: https://github.com/virtualrussel/dynatrace-ai-workspace/tree/main/.agents/skills/dtctl
Command: npx skills add https://github.com/virtualrussel/dynatrace-ai-workspace --skill dtctl-virtualrussel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

dtctl provides a kubectl-style CLI for Dynatrace, enabling operators and developers to manage observability, investigate incidents, and configure resources without navigating complex UI APIs.

Core Features & Use Cases

  • Incident investigation, log analysis, and performance debugging across Dynatrace environments.
  • Dashboard and notebook orchestration, DQL querying, and workflow management to automate common tasks.
  • Cross-tenant environment management with context-aware authentication and safety controls.

Quick Start

Initialize your Dynatrace context with a valid API token and verify access using dtctl commands --brief -o json and dtctl auth whoami --plain.

Frequently Asked Questions about dtctl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I investigate Dynatrace incidents using a CLI?

You can investigate Dynatrace incidents using a kubectl-style CLI to query logs, analyze performance issues, and execute DQL queries without navigating complex UI APIs. It enforces context-aware authentication and safety controls.

Can I manage multiple Dynatrace tenants from the command line?

Yes, you can manage multiple Dynatrace tenants from the command line using cross-tenant environment management. The CLI enforces context-aware authentication and safety checks to prevent unauthorized actions across environments.

How do I automate Dynatrace dashboard and notebook workflows?

You can automate Dynatrace dashboard and notebook workflows by orchestrating them through the CLI. It supports DQL querying and workflow management to automate common observability tasks without manual UI interaction.

What is the best way to run DQL queries for Dynatrace log analysis?

The best way to run DQL queries for Dynatrace log analysis is using a kubectl-style CLI designed for observability. It enables operators to execute queries, debug performance, and investigate incidents directly from the terminal.

Do I need an API token to operate Dynatrace from the command line?

Yes, you need a valid Dynatrace API token to initialize your context and operate Dynatrace from the command line. You verify access and authentication using specific CLI commands before performing any operations.

Why should I use a CLI instead of the Dynatrace UI for observability management?

You should use a CLI instead of the Dynatrace UI for observability management to automate tasks, manage cross-tenant configurations, and execute DQL queries efficiently. It bypasses complex UI APIs for streamlined incident investigation.