Перейти до вмісту

aspire command

Цей контент ще не доступний вашою мовою.

This article applies to: ✔️ Aspire CLI 9.4.0 and later versions.

aspire - The generic driver for the Aspire CLI.

To get information about the available commands and the environment:

Aspire CLI
aspire [command] [options]

The aspire command provides commands for working with Aspire projects. For example, aspire run runs your Aspire AppHost.

The following options are available when aspire is used by itself, without specifying a command. For example, aspire --version.

  • -?, -h, --help

    Prints help and usage documentation for the available commands and options.

  • --version

    Prints the version of the Aspire CLI tool.

  • -d, --debug

    Enable debug logging to the console, which prints detailed information about what .NET Aspire CLI is doing when a command is run.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

The following commands are available:

CommandStatusFunction
aspire addStableAdd an integration to the Aspire project.
aspire configStableConfigures the Aspire environment.
aspire deployPreviewDeploys the artifacts created by aspire publish.
aspire execPreviewSimilar to the aspire run command, but passes commands to the apphost.
aspire newStableCreate an Aspire sample project from a template.
aspire publishPreviewGenerates deployment artifacts for an Aspire apphost project.
aspire runStableRun an Aspire apphost for local development.
  • Create an Aspire solution from the template:

    Aspire CLI
    aspire new aspire-starter
  • Run an Aspire AppHost:

    Aspire CLI
    aspire run
Запитання & Відповіді Співпраця Спільнота Обговорити Переглянути