Skip to content

Initial drafts of .NET Aspire CLI docs #3905

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

Merged
merged 40 commits into from
Jul 22, 2025
Merged

Conversation

Copy link
Member

@IEvangelist IEvangelist left a comment

Choose a reason for hiding this comment

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

Some initial thoughts.

@IEvangelist
Copy link
Member

IEvangelist commented Jul 8, 2025

For 9.4, these are the commands and their preview status:

Command Status
new stable
run stable
add stable
config stable
exec preview
deploy preview
publish preview
init future

@maddymontaquila to configure status of each command.

@adegeo
Copy link
Contributor Author

adegeo commented Jul 17, 2025

I sort of discovered a little discrepency with the aspire config commands, and I filed a bug for that. Based on how this operates at the time 9.4 is published, I'll update those commands a tiny bit. This is regarding the -g, --global option support for set | delete and how get | list work local first then global second, without being able to control that.

@adegeo adegeo changed the base branch from main to release-9.4 July 18, 2025 18:29
@adegeo adegeo marked this pull request as ready for review July 18, 2025 18:56
@IEvangelist IEvangelist requested a review from Copilot July 18, 2025 20:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive documentation for the .NET Aspire CLI, including installation guides, command reference pages, and integration into the existing documentation structure. The documentation covers all major CLI commands and provides users with detailed guidance on using the Aspire CLI for project management and deployment.

  • Complete CLI documentation including overview, installation, and command reference
  • Integration of CLI content into the main documentation TOC
  • Addition of CLI installation snippets to existing setup guides

Reviewed Changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
docs/toc.yml Adds new "Aspire CLI" section with overview, installation, and command reference pages
docs/get-started/build-your-first-aspire-app.md Adds CLI installation instructions with platform-specific commands
docs/fundamentals/setup-tooling.md Adds CLI installation instructions with platform-specific commands
docs/cli/overview.md New overview page explaining CLI functionality and commands
docs/cli/install.md New installation guide for the Aspire CLI global tool
docs/cli-reference/*.md New command reference pages for all CLI commands (aspire, add, config, deploy, etc.)
docs/cli-reference/includes/*.md Shared include files for common CLI options and descriptions

Copy link
Member

@IEvangelist IEvangelist left a comment

Choose a reason for hiding this comment

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

This looks awesome!

| [`aspire add`](aspire-add.md) | Stable | Add an integration to the Aspire project. |
| [`aspire new`](aspire-new.md) | Stable | Create an Aspire sample project from a template. |
| [`aspire run`](aspire-run.md) | Stable | Run an Aspire apphost in development mode. |
| [`aspire exec`](aspire-exec.md) | Stable | Similar to the `aspire run` command, but passes commands to the apphost. |
Copy link
Member

Choose a reason for hiding this comment

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

Is this aspire exec considered stable, I can't recall. @maddymontaquila @davidfowl

Copy link
Member

Choose a reason for hiding this comment

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

nope preview!!!

Copy link
Member

@maddymontaquila maddymontaquila left a comment

Choose a reason for hiding this comment

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

tweaks n things. i can edit w hile you're out if you don't get to them too

@maddymontaquila
Copy link
Member

@mitchdenny give these a look pls!

Comment on lines +76 to +73
- <xref:Aspire.Hosting.Azure.AzureEnvironmentResource> generates Bicep assets.
- <xref:Aspire.Hosting.Docker.DockerComposeEnvironmentResource> generates docker-compose yaml.
- <xref:Aspire.Hosting.Kubernetes.KubernetesEnvironmentResource> generates Kubernetes Helm charts.
Copy link
Member

Choose a reason for hiding this comment

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

Related to above comment, it mgiht be better to show concise code examples of AddDocerComposeEnvironment(...). Note that AddKubernetesEnvironment(...) is fairly broken right now.

Copy link
Member

Choose a reason for hiding this comment

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

Can you provide those code examples? Happy to add them, but need to ensure we're doing it correctly.

description: Learn about the aspire config set command and its usage. This command sets an Aspire CLI config value by key name.
ms.date: 07/11/2025
---
# aspire config set command
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be good to have a page which covers off known feature flags (in the Aspire repo there is a KnownFeatures.cs for reference).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. For now, I just added a table to a section that lists the one command I know is working. I played around with setting those other ones in the config file but it didn't seem to do anything. I added this table to the root aspire config doc and the aspire config set doc.

@adegeo adegeo force-pushed the adegeo/3707/cli branch from 3474436 to 1eec6f4 Compare July 21, 2025 01:59
@IEvangelist IEvangelist merged commit 3f8078d into release-9.4 Jul 22, 2025
6 checks passed
@IEvangelist IEvangelist deleted the adegeo/3707/cli branch July 22, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document CLI command reference Document the CLI overview [New article]: Aspire Exec Document the CLI install doc
6 participants