Skip to content

Blog post for CLI AI additions #14970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added content/blog/cli-ai-extensions/explain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions content/blog/cli-ai-extensions/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: "Pulumi Updates, Explained: AI-Powered Features in Pulumi CLI"
date: 2025-05-15T10:00:00-05:00
draft: false
meta_desc: AI is helping cloud engineers understand deployment issues
meta_image: meta.png
math: true
authors:
- artur-laksberg
- mikhail-shilkov
- simon-howe
tags:
- Copilot
- ai
- iac
- pulumi update

---

## Introducing AI-Powered insights in Pulumi CLI

At Pulumi, we're committed to helping you deploy infrastructure efficiently and with minimal friction. Infrastructure updates often present two key challenges: deciphering complex error diagnostics and understanding exactly what changes will occur during deployment.

Traditional error messages, while comprehensive, often bury the core issue within extensive diagnostics, requiring specialized expertise to interpret and address. Similarly, understanding the full scope of pending infrastructure changes can be difficult when reviewing raw update previews.
Our latest CLI update introduces AI capabilities that tackle both issues. The AI error analysis identifies root causes and provides clear, actionable guidance, transforming dense technical output into concise explanations.

Additionally, our new AI-powered update explanation feature serves as a valuable sanity check before deployment. It presents a plain-language summary of exactly what changes will occur, helping you verify that the planned modifications align with your intentions. This visibility is particularly valuable when managing complex infrastructure, as it helps identify unexpected changes or potential drift between your code and deployed resources. The system also proactively flags potential issues such as security vulnerabilities or destructive updates that might impact your production environment.

## Diagnostics summarization

Consider the following scenario where a program fails at runtime. While the standard diagnostics provide precise and detailed information, they can be time-consuming to analyze. Our AI-powered summary identifies the problem and its location in your source code, reducing time to resolution and helping you address issues efficiently:

<div style="text-align: center; width: 100%; margin: 0 auto;">
<img src="summarize2.png" alt="" style="width: 100%;">
</div>

## Update explanation

We've introduced a new "explain" menu item in the CLI. When selected, this tool analyzes and provides a clear summary of all changes in your pending infrastructure update:

<div style="text-align: left; width: 80%; margin: 0; padding: 0;">
<img src="menu.png" alt="" style="width: 100%;">
</div>

The image below shows an example of the tool's output. The explanation provides a concise summary of the pending changes and highlights any potential concerns related to your update, giving you greater visibility before deployment:

<div style="text-align: center; width: 100%; margin: 0 auto;">
<img src="explain.png" alt="" style="width: 100%;">
</div>

## What's next

The feature is currently in preview. You will need to add the --copilot flag to your pulumi CLI command to enable it:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mention --copilot earlier in the post, or else most people will not see it? 🤔


```bash
pulumi up --copilot
```

We will continue to monitor usage patterns and incorporate your feedback before enabling this feature by default. We're excited to see how these AI-powered insights enhance your infrastructure deployment workflow and welcome your thoughts on how we can further improve the experience.
Binary file added content/blog/cli-ai-extensions/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/blog/cli-ai-extensions/meta.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/blog/cli-ai-extensions/summarize2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading