aspire restore command

Name

aspire restore - Restore dependencies and generate SDK code for an apphost.

Synopsis

aspire restore [options]

Description

The aspire restore command restores the AppHost project and generates the SDK code that Aspire uses for resources, integrations, and tooling. Use it when you want to make restore an explicit step in automation or validate that the AppHost can restore cleanly without starting it.

This command is useful in CI/CD pipelines, after adding or updating integrations, or before running build, publish, and deployment workflows.

Options

The following options are available:

              • Examples

  • Restore the AppHost discovered from the current directory:

    aspire restore
    
  • Restore a specific AppHost project:

    aspire restore --apphost './src/MyApp.AppHost/MyApp.AppHost.csproj'
    

See also