콘텐츠로 이동

Install script

이 콘텐츠는 아직 번역되지 않았습니다.

This article contains the syntax of the aspire install PowerShell and Bash scripts. To download the script, see Install as a native executable.

aspire-install.ps1 | aspire-install.sh - Scripts used to install the Aspire CLI.

Bash
aspire-install.sh
[--install-path <DIRECTORY>]
[--version <VERSION>]
[--quality <QUALITY>]
[--os <OPERATING_SYSTEM>]
[--arch <ARCHITECTURE>]
[--keep-archive]
[--verbose]
[--help]

The aspire-install scripts perform a nonadmin installation of the Aspire CLI.

Both scripts behave the same way. They download the Aspire CLI for the target platform, install it to the specified location, and add it to your PATH environment variable.

By default, the installation scripts download and install the latest stable release of the Aspire CLI. Specify a different version with the -Version|--version argument or a different quality level with the -Quality|--quality argument.

Unless changed with the -InstallPath|--install-path argument, the script installs to a user-specific location: %USERPROFILE%\.aspire\bin on Windows or $HOME/.aspire/bin on Linux/macOS.

  • -InstallPath|--install-path <DIRECTORY>

    Specifies the installation path. The directory is created if it doesn’t exist. The default value is %USERPROFILE%.aspire\bin on Windows and $HOME/.aspire/bin on Linux/macOS. The Aspire CLI executable is placed directly in this directory.

  • -Version|--version <VERSION>

    Represents a specific version to install. For example: 9.4. If not specified, the latest stable version is installed.

  • -Quality|--quality <QUALITY>

    Downloads the specified quality build. The possible values are:

    • release: The latest stable release (default).
    • staging: Builds from the current release branch (prerelease builds).
    • dev: Latest builds from the main branch (development builds).

    The different quality values signal different stages of the release process:

    • release: The final stable releases of the Aspire CLI. Intended for production use.
    • staging: Prerelease builds intended for testing upcoming releases. Not recommended for production use.
    • dev: The latest builds from the main development branch. They’re built frequently and aren’t fully tested. Not recommended for production use but can be used to test specific features or fixes immediately after they’re merged.
  • -OS|--os <OPERATING_SYSTEM>

    Specifies the operating system for which the CLI is being installed. Possible values are: win, linux, linux-musl, osx.

    The parameter is optional and should only be used when it’s required to override the operating system that is detected by the script.

  • -Architecture|--arch <ARCHITECTURE>

    Architecture of the Aspire CLI binaries to install. Possible values are x64, x86, arm64. The default behavior is to autodetect the current system architecture.

  • -KeepArchive|--keep-archive

    If you set this option, the script keeps the downloaded archive files and temporary directory after installation. By default, the script deletes the archive after extraction and cleans up the temporary directory.

  • --verbose

    Displays diagnostics information. (Linux/macOS only)

  • -Help|--help

    Prints help information for the script.

  • Install the latest stable version to the default location:

    Terminal window
    ./aspire-install.sh
  • Install to a custom directory:

    Terminal window
    ./aspire-install.sh --install-path "/usr/local/bin"
  • Install a specific version:

    Terminal window
    ./aspire-install.sh --version "13.0"
  • Install development builds:

    Terminal window
    ./aspire-install.sh --quality "dev"
  • Download and install development builds in one command:

    Terminal window
    curl -sSL https://aka.ms/aspire-install.sh | bash -s -- --quality "dev"
  • Install with verbose output (Linux/macOS only):

    Terminal window
    ./aspire-install.sh --verbose

There’s no uninstall script. Delete the installation directory, such as %USERPROFILE%\.aspire\bin on Windows or $HOME/.aspire/bin on Linux/macOS.

To delete the installation directory, run the following command from your terminal:

Terminal window
rm -rf $HOME/.aspire/bin
질문 & 답변 협업 커뮤니티 토론 보기