Skip to technology filters Skip to main content
Dynatrace Hub

Extend the platform,
empower your team.

Popular searches:
Home hero bg
dtctldtctl
dtctl

dtctl

Terminal-native CLI for operating Dynatrace, for AI agents and humans alike.

Technology by Community
Documentation
Open-source CLI that lets AI agents and humans operate Dynatrace workflows, dashboards, queries, and more - directly from the terminal.Manage documents, execute workflows, or execute queries - all without leaving your terminal.
  • Product information

Overview

dtctl is the open-source CLI for the Dynatrace platform. It follows familiar verb-noun syntax (like kubectl) and gives platform engineers, SREs, developers, and AI agents a single interface to manage workflows, dashboards, notebooks, queries, SLOs, settings, and more, directly from the terminal. Agents discover available commands at runtime and receive structured output they can parse and act on immediately. Humans get tab autocomplete, resource shortcuts, and in-editor YAML editing.

Use cases

  • AI agent automation loops: Agents discover, query, modify, execute, and verify Dynatrace resources end-to-end — without handing control back to a human. Structured output includes follow-up suggestions and error context for autonomous iteration.
  • Documents-as-code: Pull documents like dashboards and workflows from the platform, version-control and template them, adjust queries locally, and push changes back — or wire dashboard definitions into CI/CD pipelines so dashboards evolve with services.
  • Cross-environment management: Switch seamlessly between dev, staging, and production. Authenticate via SSO or API token, run dtctl doctor to verify, and operate across environments with consistent commands.

Get started

Install dtctl from the dynatrace-oss/dtctl GitHub repository, connect it to your Dynatrace environment, and run your first query. The Quick Start Guide walks through the full setup in under five minutes. From there, try pulling a dashboard, modifying it, and pushing it back.

Details

Disclaimer: dtctl is a [https://github.com/dynatrace-oss/dtctl) open-source project. If you need help, please contact the team via GitHub.

Community
Documentation
By the community
Dynatrace community
Copy to clipboard

Related to dtctl

Dynatrace MCP Server logo

Dynatrace MCP Server

Enable your AI agents with high-quality data and real-time production insights.

Local MCP Server logo

Local MCP Server

Run an MCP Server locally as a playground or to customize modules.

Dynatrace Intelligence logo

Dynatrace Intelligence

Action based on answers with deterministic insights and agentic operations.

More resources

Introducing dtctl - Dynatrace Community

Introducing dtctl - Dynatrace Community

Learn more and discuss dtctl in the Dynatrace Community.
Read more
Video: hands on dtctl

Video: hands on dtctl

In this Community Tips & Tricks session, Christoph and Andi demonstrate the power of dtctl.
Watch now
Dynatrace Hub
Get data into DynatraceBuild your own app
Dynatrace Intelligence - Agentic Operations SystemThe Dynatrace Agentic AI ecosystem
All (877)Log Management and AnalyticsKubernetesAI and LLM ObservabilityInfrastructure ObservabilitySoftware DeliveryApplication ObservabilityApplication SecurityBusiness ObservabilityDigital Experience
Filter
Type
Built and maintained by
Deployment model
SaaS
  • SaaS
  • Managed
Partner FinderBecome a partnerDynatrace Developer

Discover recent additions to Dynatrace

Problems logo

Problems

Detect, explain and triage problems automatically using Dynatrace Intelligence.

Logs logo

Logs

Explore all your logs without writing a single query.

Investigations logo

Investigations

Fast and precise incident response on Grail data with DQL queries.

Business Flow logo

Business Flow

Track, analyze, and optimize your critical business processes.

Cost & Carbon Optimization logo

Cost & Carbon Optimization

Track, analyze, and optimize your IT carbon footprint and public cloud costs.

Anomaly Detection logo

Anomaly Detection

Detect and alert on anomalies and custom patterns using any DQL time series.

Analyze your data

Understand your data better with deep insights and clear visualizations.

Notebooks logo

Notebooks

Create powerful, data-driven documents for custom analytics and collaboration.

Dashboards logo

Dashboards

Transform complex data into clear visualizations with custom dashboards.

Automate your processes

Turn data and answers into actions, securely, and at scale.

Workflows logo

Workflows

Automate tasks in your IT landscape and move towards autonomous operations.

Jira logo

Jira

Create, query, comment, transition, and resolve Jira tickets within workflows.

Slack logo

Slack

Automate Slack messaging for security incidents, attacks, remediation, and more.

Secure your cloud application

See vulnerabilities and attacks in your environment.

Security Posture Management logo

Security Posture Management

Detect, prioritize, and remediate security and compliance findings with SPM.

Threats & Exploits logo

Threats & Exploits

Understand, triage, and investigate detection findings and alerts.

More resources

Observability for Developers on Cursor logo

Observability for Developers on Cursor

Get Real time Code-Level data directly to your Cursor IDE

GitHub Copilot Coding Agent logo

GitHub Copilot Coding Agent

Automate vulnerability remediation and boost developer productivity

GitHub Copilot Custom Agent logo

GitHub Copilot Custom Agent

Automate your development workflows with specialized agent definitions

Observability for Developer on JetBrains logo

Observability for Developer on JetBrains

Get real-time code-level data directly to your Jetbrains IDE

Pagerduty for Dynatrace Workflows logo

Pagerduty for Dynatrace Workflows

Streamline incident management with automated Pageruty workflows

Cursor IDE logo

Cursor IDE

Boost developer productivity and get real-time, code-level insights into Cursor

Observability for Developers on Windsurf logo

Observability for Developers on Windsurf

Get real-time code-level data directly to your Windsurf IDE

Are you looking for something different?

We have hundreds of apps, extensions, and other technologies to customize your environment

Leverage our newest innovations of Dynatrace Saas

Kick-start your app creation

Kick-start your app creation

Whether you’re a beginner or a pro, Dynatrace Developer has the tools and support you need to create incredible apps with minimal effort.
Go to Dynatrace Developer
Upgrading from Dynatrace Managed to SaaS

Upgrading from Dynatrace Managed to SaaS

Drive innovation, speed, and agility in your organization by seamlessly and securely upgrading.
Learn More
Log Management and Analytics

Log Management and Analytics

Innovate faster and more efficiently with unified log management and log analytics for actionable insights and automation.
Learn more