Skip to content
Docs Try Aspire

aspire command

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, /h

    Show help and usage information.

  • -v, --version

    Prints the version of the Aspire CLI tool.

  • -l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning>

    Set the minimum log level for console output. Use this option to increase diagnostics while troubleshooting or reduce output in scripted runs.

  • --non-interactive

    Run the command in non-interactive mode, disabling all interactive prompts and spinners.

  • --nologo

    Suppress the startup banner and telemetry notice.

  • --banner

    Display the animated Aspire CLI welcome banner.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

The following commands are available:

CommandStatusFunction
aspire addStableAdd a hosting integration to the apphost.
aspire initStableInitialize Aspire in an existing codebase.
aspire newStableCreate a new app from an Aspire starter template.
aspire psStableList running apphosts.
aspire restoreStableRestore dependencies and generate SDK code for an apphost.
aspire runStableRun an apphost interactively for development.
aspire startStableStart an apphost in the background.
aspire stopStableStop a running apphost.
aspire updatePreviewUpdate integrations in the Aspire project.
aspire resourceStableExecute a command on a resource.
aspire waitStableWait for a resource to reach a target status.
aspire describeStableDescribe resources in a running apphost.
aspire exportStableExport telemetry and resource data to a zip file.
aspire logsStableDisplay logs from resources in a running apphost.
aspire otelPreviewView OpenTelemetry data from a running apphost.
aspire deployPreviewDeploy an apphost to its deployment targets.
aspire doPreviewExecute a specific pipeline step and its dependencies.
aspire publishPreviewGenerate deployment artifacts for an apphost.
aspire agentStableManage AI agent environment configuration.
aspire cacheStableManage disk cache for CLI operations.
aspire certsStableManage HTTPS development certificates.
aspire configStableManage CLI configuration including feature flags.
aspire docsStableBrowse and search Aspire documentation from aspire.dev.
aspire doctorStableDiagnose Aspire environment issues and verify setup.
aspire mcpStableInteract with MCP tools exposed by Aspire resources.
aspire secretStableManage apphost user secrets.
  • Create an Aspire solution from the template:

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

    Aspire CLI
    aspire run