
Sign up to save your podcasts
Or


The Aspire CLI is a powerful, cross-platform tool designed to streamline the development, management, and deployment of application systems. Whether you’re building a simple website or an enterprise-scale distributed application with microservices and queues and databases, the Aspire CLI offers an interactive-first experience to help you create, run, and publish your projects with ease.
Before you begin, make sure you have the .NET 9.0 SDK installed.
There are two main ways to install the Aspire CLI, with instructions for both Windows and Unix-based systems:
Open PowerShell and run:
This installs Aspire CLI to %USERPROFILE%\.aspire\bin by default. You can customize the install path or version using script options (see the official docs for details).
Open a terminal and run:
This installs Aspire CLI to $HOME/.aspire/bin by default. You can customize the install path or version using script options (see the official docs for details).
Alternatively, you can install Aspire CLI as a global .NET tool (works on both Windows and Unix):
Validate your installation:
If you see a version number, you’re ready to go!
Aspire CLI makes it easy to start new projects using templates. Run:
This command launches an interactive experience where you can select a template, name your project, and choose an output folder.
The templates that are currently available with the CLI are:
The CLI will download the latest templates and generate your project structure.
To add official integration packages (like databases, messaging, etc.) to your AppHost project, use:
You can specify a package name or NuGet ID as a command-line argument, or let the CLI present a list you can choose from with type-ahead searching. This simplifies adding dependencies without leaving your terminal.
Here is a snapshot of what the integration package selection list looks like:
To start your application in development mode, use:
This command:
You’ll see output like:
The dashboard is your jumping off point, to see application logs, metrics, and even a network diagram of your system’s resources.
Aspire logs are written to disk in case you need to examine how the Aspire processes are running.
We’re working on the publishing feature, and some of what you will see is in preview mode. When you’re ready to publish, use:
This command serializes your resources for deployment tools. Depending on your integrations, it can generate assets for Azure, Docker Compose, or Kubernetes.
There is also a deploy command available, but currently it does not have any functionality associated with it.
The Aspire CLI is your gateway to building modern, distributed .NET applications with speed and confidence. From project creation to publishing, it’s designed to make your workflow seamless and productive.
As with all of .NET and Aspire, the source code is available on our GitHub repository
Ready to get started?
The post Getting Started with the Aspire CLI appeared first on .NET Blog.
By The Aspire CLI is a powerful, cross-platform tool designed to streamline the development, management, and deployment of application systems. Whether you’re building a simple website or an enterprise-scale distributed application with microservices and queues and databases, the Aspire CLI offers an interactive-first experience to help you create, run, and publish your projects with ease.
Before you begin, make sure you have the .NET 9.0 SDK installed.
There are two main ways to install the Aspire CLI, with instructions for both Windows and Unix-based systems:
Open PowerShell and run:
This installs Aspire CLI to %USERPROFILE%\.aspire\bin by default. You can customize the install path or version using script options (see the official docs for details).
Open a terminal and run:
This installs Aspire CLI to $HOME/.aspire/bin by default. You can customize the install path or version using script options (see the official docs for details).
Alternatively, you can install Aspire CLI as a global .NET tool (works on both Windows and Unix):
Validate your installation:
If you see a version number, you’re ready to go!
Aspire CLI makes it easy to start new projects using templates. Run:
This command launches an interactive experience where you can select a template, name your project, and choose an output folder.
The templates that are currently available with the CLI are:
The CLI will download the latest templates and generate your project structure.
To add official integration packages (like databases, messaging, etc.) to your AppHost project, use:
You can specify a package name or NuGet ID as a command-line argument, or let the CLI present a list you can choose from with type-ahead searching. This simplifies adding dependencies without leaving your terminal.
Here is a snapshot of what the integration package selection list looks like:
To start your application in development mode, use:
This command:
You’ll see output like:
The dashboard is your jumping off point, to see application logs, metrics, and even a network diagram of your system’s resources.
Aspire logs are written to disk in case you need to examine how the Aspire processes are running.
We’re working on the publishing feature, and some of what you will see is in preview mode. When you’re ready to publish, use:
This command serializes your resources for deployment tools. Depending on your integrations, it can generate assets for Azure, Docker Compose, or Kubernetes.
There is also a deploy command available, but currently it does not have any functionality associated with it.
The Aspire CLI is your gateway to building modern, distributed .NET applications with speed and confidence. From project creation to publishing, it’s designed to make your workflow seamless and productive.
As with all of .NET and Aspire, the source code is available on our GitHub repository
Ready to get started?
The post Getting Started with the Aspire CLI appeared first on .NET Blog.