Skip to main content

How to Run the Aspire Dashboard Without Docker Using the Aspire CLI

· 11 min read
Jagdish Kumawat
Founder @ Dewiride

One command starts the Aspire Dashboard on your own computer, without Docker: npx -y @microsoft/aspire-cli@17.0.0 dashboard run. npx downloads Microsoft's Aspire CLI from npm, the CLI starts the dashboard, and any app that sends OpenTelemetry to localhost:4317 shows up in it.

The Aspire Dashboard is a web page for OpenTelemetry logs, traces and metrics. Aspire starts it automatically when an Aspire AppHost runs, but it also runs on its own. Microsoft's documentation describes that use: Run the Aspire dashboard as a standalone OTLP viewer to inspect local application logs, distributed traces, and metrics without an AppHost. It gives two ways to start it, the Aspire CLI and a container image. This post uses the CLI, so Docker isn't needed.

The CLI comes from npm, as Microsoft's MIT-licensed package @microsoft/aspire-cli. Its README explains what npx gets: The npm package installs a small JavaScript aspire launcher. The native platform packages are installed through npm optional dependencies. The launcher selects the package that matches your OS, CPU, and Linux libc. So the command runs an Aspire CLI built for your computer.

The dashboard shows what apps send it, and collects nothing on its own. The documentation is clear about it: starting the dashboard doesn't instrument your code.

Syntax​

Syntax
npx -y @microsoft/aspire-cli@<version> dashboard run [<options>]
PartWhat it is
npxnpm's package runner, which comes with Node.js. When a package isn't in your project, npx installs it to a folder in the npm cache and runs it from there
-yAnswers yes to npx's question before it installs a package. npm's documentation: npx prompts before installing anything. Suppress this prompt with the -y or --yes option.
@microsoft/aspire-cli@<version>The Aspire CLI package and the version to run. Pin it, 17.0.0 here, so every run uses the same CLI
dashboard runThe CLI command that starts a standalone dashboard
<options>Optional. --frontend-url, --otlp-grpc-url and --otlp-http-url change the three addresses, and --allow-anonymous turns sign-in off (see the FAQ)

The Example​

The example starts the dashboard on a Mac with Node.js 26.13.1 and npm 12.2.3, signs in, and stops it. No app sends telemetry yet, so the pages stay empty: the result is a running dashboard, ready for any app that sends OpenTelemetry.

Prerequisites​

  • Node.js 20 or later. The package says This package requires Node.js 20 or later, and npx comes with Node.js. node --version prints the version you have.
  • Windows, macOS or Linux on x64 or Arm64. The package ships its native CLI for Windows x64/Arm64, macOS x64/Arm64, Linux x64/Arm64 with glibc, and Linux x64 with musl/Alpine.

Step 1: Start the Dashboard​

note

The Aspire CLI sends usage data to Microsoft, and its first run says so. If you'd rather it didn't, set the opt-out variable from Step 4 before you run the command.

Terminal
npx -y @microsoft/aspire-cli@17.0.0 dashboard run

The command is the same in bash, zsh and PowerShell. The first time, npx downloads the package into npm's cache, and the CLI puts more files in a folder named .aspire in your home folder: close to 1 GB in all. npm prints two npm notice lines of its own first. Then the CLI prints this:

Output
╭───────────────────────────────────────────────╮
│ │
│ Welcome to the │
│ █████ ███████ ██████ ██ ██████ ██████ │
│ ██▀▀▀██ ██▀▀▀▀▀ ██▀▀▀██ ██ ██▀▀▀██ ██▀▀▀▀ │
│ ███████ ███████ ██████ ██ ██████ █████ │
│ ██ ██ ▀▀▀▀▀██ ██▀▀▀ ██ ██▀▀██ ██ │
│ ██ ██ ███████ ██ ██ ██ ██ ██████ │
│ ▀▀ ▀▀ ▀▀▀▀▀▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀▀▀▀▀ │
│ CLI — version 17.0.0 │
│ │
╰───────────────────────────────────────────────╯


Telemetry
---------

The Aspire CLI collects usage data. It is collected by Microsoft and is used to help us improve your experience. You can opt out of telemetry by setting the ASPIRE_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your preferred shell.

Read more about Aspire CLI telemetry: https://aka.ms/aspire/cli-telemetry


Dashboard: http://localhost:18888/login?t=<token>

OTLP/gRPC: http://localhost:4317

OTLP/HTTP: http://localhost:4318

Logs: /Users/you/.aspire/logs/cli_20261128T110345_23547ab4.log

macOS-style terminal window titled Terminal — Aspire CLI showing npx -y @microsoft/aspire-cli@17.0.0 dashboard run: a welcome box with ASPIRE in block letters and CLI version 17.0.0, a telemetry notice, then the Dashboard sign-in address on localhost port 18888, OTLP/gRPC on port 4317, OTLP/HTTP on port 4318, and the path of the CLI's log file.

The welcome box and the telemetry notice came only on this first run. On later runs, the CLI printed just the four lines at the end:

  • Dashboard is the address of the dashboard's page, with your sign-in token after ?t=. I replaced mine with <token>.
  • OTLP/gRPC and OTLP/HTTP are the addresses apps send telemetry to, with the OpenTelemetry Protocol (OTLP) over gRPC on port 4317 or over HTTP on port 4318.
  • Logs is the CLI's own log file.

The dashboard runs in this terminal until you stop it, so use another terminal for anything else.

Step 2: Sign In​

Open the Dashboard address in your browser, all of it, including ?t= and the token. Aspire's configuration reference explains the token: it can either be entered in the UI or provided as a query string value to the login page, and once it's accepted, an auth cookie is persisted to the browser.

If you open http://localhost:18888 without the token, the dashboard asks for it. Paste the part after t= and select Log in:

The Aspire dashboard sign-in card, with an Enter token to log in box, a Where do I find the token? link and a Log in button.

Signed in, the dashboard opens on Structured logs, next to Traces and Metrics. No app has sent anything yet, so it shows No telemetry sources and No structured logs found:

The Aspire Dashboard after signing in, on the Structured logs page with the Traces and Metrics tabs next to it, No telemetry sources in the side panel, and No structured logs found in the table with a link to Add telemetry.

The token is new each time the dashboard starts, so sign in with the link from the latest start. The dashboard can also show a red Endpoint is unsecured banner, because a dashboard started on its own accepts telemetry from any app until you give it an API key.

Step 3: Stop the Dashboard​

Press Ctrl+C in the terminal where the dashboard runs. Here is a later run, from my home folder, stopped that way:

Output
npm notice run npx
npm notice run 'aspire' dashboard run

Dashboard: http://localhost:18888/login?t=<token>

OTLP/gRPC: http://localhost:4317

OTLP/HTTP: http://localhost:4318

Logs: /Users/you/.aspire/logs/cli_20261128T114343_18ec5978.log

^C
%
🛑 Stopping dashboard.

^C is the terminal showing the key you pressed, and % is the shell's prompt, which comes back first. The stop message follows a moment later. The command reference describes it: To stop the dashboard, press Ctrl+C in the terminal where it's running. The CLI prints a single Stopping dashboard. message when shutdown is initiated. After it, nothing was left listening on port 18888.

Stopping the dashboard also discards what it showed. The documentation: The standalone dashboard defaults to no persistence and telemetry is lost when the dashboard shuts down. The files npx downloaded stay on disk: the FAQ says where.

Step 4: Opt Out of the CLI's Usage Telemetry​

The CLI's notice pointed to its telemetry page, which explains the opt-out: To opt-out of telemetry collection, set the ASPIRE_CLI_TELEMETRY_OPTOUT environment variable to true. This will disable telemetry collection for all CLI commands. Set it in the terminal before you start the dashboard:

Terminal
export ASPIRE_CLI_TELEMETRY_OPTOUT=true
npx -y @microsoft/aspire-cli@17.0.0 dashboard run

export passes the variable to the commands you run after it in this terminal.

The CLI's own notice says 1 works as well as true. As for what the CLI sends, the page lists data points such as CLI launch, which includes the command name and exit code, and adds that Option and argument values are not sent to Microsoft. It also says that Aspire CLI telemetry doesn't collect personal data, such as usernames or email addresses.

Common Mistakes​

MistakeWhat happensDo this instead
Opening http://localhost:18888 without the tokenThe dashboard shows its sign-in cardOpen the whole Dashboard link, or paste the part after t=
Running npx without -ynpx asks before it installs the package, and the command waits for your answerAdd -y
Expecting the dashboard to collect telemetry by itselfIts pages stay emptyConfigure each app to send OTLP to port 4317 or 4318
Using --allow-anonymous on a computer others can reachAnyone who can reach the dashboard sees your telemetry without signing inUse it only on a trusted local machine

FAQ​

Can I skip the sign-in?​

Yes, with the --allow-anonymous option, which turns the dashboard's authentication off. I kept the sign-in. Microsoft's security guidance limits it to your own machine: During local development on a trusted machine, you might allow anonymous access to avoid signing in with a browser token. And: Only allow anonymous access in trusted local development environments, and don't expose an anonymously accessible dashboard or its endpoints to an untrusted network.

How does my app send telemetry to the dashboard?​

Through OpenTelemetry, with the dashboard's address as the OTLP endpoint. The documentation names two standard variables for it: OTEL_EXPORTER_OTLP_ENDPOINT with a value of http://localhost:4317 for gRPC or http://localhost:4318 for HTTP, and OTEL_EXPORTER_OTLP_PROTOCOL with a value of grpc, http/protobuf, or http/json.

Can the dashboard use other ports?​

Yes. --frontend-url, --otlp-grpc-url and --otlp-http-url change them. Their defaults are the three addresses in the output: http://localhost:18888, http://localhost:4317 and http://localhost:4318.

Where are the downloaded files?​

npx keeps the package in a folder in npm's cache. The rest is in the .aspire folder in your home folder, close to 1 GB between the two, in the subfolders bundle, cache, cli, dashboard, logs, npm and versions. The logs folder holds the CLI's log files, such as the one on the Logs line.

Is this dashboard meant for production?​

No. The documentation: the dashboard is designed for development and short-term diagnostics rather than production telemetry retention.

Conclusion​

npx -y @microsoft/aspire-cli@17.0.0 dashboard run downloads the Aspire CLI for your computer and starts the Aspire Dashboard without Docker. Sign in with the link it prints, send your apps' OpenTelemetry to http://localhost:4317 or http://localhost:4318, and press Ctrl+C to stop it. Set ASPIRE_CLI_TELEMETRY_OPTOUT to true if you'd rather the CLI didn't send usage data.

Additional Resources​