Skip to content

[docs] Add Nix installation path for Aspire CLI#1286

Open
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.5from
docs/nix-cli-installation-17abd15a2722a536
Open

[docs] Add Nix installation path for Aspire CLI#1286
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.5from
docs/nix-cli-installation-17abd15a2722a536

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#18410 by @davidfowl.

Targeting release/13.5 based on the source PR milestone 13.5 (exact match on microsoft/aspire.dev).

Why this PR is needed

microsoft/aspire#18410 added a first-party Nix flake (flake.nix) that packages the Aspire CLI for Nix and NixOS users. Two user-facing changes need docs coverage:

  1. New Nix install path — users can now run nix run github:microsoft/aspire#aspire-cli, add the CLI to their profile with nix profile add, or consume the package from their own flake.nix. This is an entirely new installation method not previously documented.

  2. Nix-aware aspire update --self — when the CLI detects it was installed from Nix (via the .aspire-install.json sidecar's "source":"nix" field), it prints Nix-specific update guidance instead of attempting an in-place binary download (which would fail because the Nix store is read-only).

Changes made

  • src/frontend/src/content/docs/get-started/install-cli.mdx (updated)

    • Added "Nix" to the intro sentence alongside Homebrew, npm, NuGet, WinGet, and mise.
    • Added a new Nix tab to the "Install with a package manager" <Tabs> block with:
      • nix run for ephemeral use
      • nix profile add for persistent profile install
      • A flake.nix consumer example showing the package output approach
      • Version-pinning explanation (flake input revision → eng/nix/versions.json)
      • A note about aspire update --self behaviour with a link to the update reference
  • src/frontend/src/content/docs/reference/cli/commands/aspire-update.mdx (updated)

    • Extended "Updating the CLI based on how it was installed" to include the Nix case, showing the exact CLI output (NixSelfUpdateMessage) and the two commands users should run (nix profile upgrade aspire-cli / nix flake update <input-name>).

Files modified

File Change
src/frontend/src/content/docs/get-started/install-cli.mdx Added Nix package manager tab
src/frontend/src/content/docs/reference/cli/commands/aspire-update.mdx Added Nix update behaviour

Generated by PR Documentation Check for issue #18410 · 1.1K AIC · ⌖ 21.5 AIC · ⊞ 45.7K ·

Documents the first-party Nix flake for the Aspire CLI introduced in
microsoft/aspire#18410:
- Adds a 'Nix' tab to the Install CLI package manager section, with
  nix run, nix profile add, and flake.nix usage examples
- Updates the 'aspire update --self' section to describe how Nix installs
  print profile/flake update guidance instead of a binary download

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Jun 23, 2026
@aspire-repo-bot aspire-repo-bot Bot requested a review from JamesNK June 23, 2026 08:30
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1286. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1286 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist IEvangelist marked this pull request as ready for review June 26, 2026 15:14
@IEvangelist IEvangelist requested review from Copilot and davidfowl June 26, 2026 15:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for the new Nix-based installation and update experience for the Aspire CLI (introduced in microsoft/aspire#18410), including guidance for Nix profiles and flake consumers, and describes how aspire update --self behaves under Nix installs.

Changes:

  • Added a new Nix install tab to the CLI installation guide with nix run, nix profile add, and a flake.nix consumer example.
  • Extended aspire update --self documentation to include the Nix install case and its Nix-specific update guidance.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/frontend/src/content/docs/get-started/install-cli.mdx Adds Nix as a documented package-manager install path (including a flake consumer example).
src/frontend/src/content/docs/reference/cli/commands/aspire-update.mdx Documents Nix-aware aspire update --self messaging and recommended Nix update commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

nix profile add github:microsoft/aspire#aspire-cli
```

To use the Aspire CLI in a project's `flake.nix`, consume the package output directly or apply the overlay:
Comment on lines +128 to +130
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
Comment on lines +82 to +83
- When the CLI was installed via **Nix** (profile or flake), the command prints the Nix update commands to run instead of downloading a new binary. Because the Nix store is read-only, in-place binary updates are not possible:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant