aspire terminal command
aspire terminal - Manage interactive terminal sessions for resources.
Synopsis
Section titled “Synopsis”aspire terminal [command] [options]Description
Section titled “Description”The aspire terminal command provides subcommands for working with interactive terminal sessions exposed by resources that were registered using WithTerminal() in the AppHost. You can list which resources have a terminal and attach your local terminal to a running session.
Because WithTerminal is experimental, the aspire terminal command group is hidden behind a feature flag. Enable it before use:
aspire config set features.terminalCommandsEnabled trueThe connected AppHost must advertise the terminals.v1 capability (Aspire.Hosting 13.4 or later). Against an older AppHost the subcommands report that terminals are not supported.
Options
Section titled “Options”The following options are available:
-
-?, -h, --helpPrints help and usage documentation for the available commands and options.
-
-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-interactiveRun the command in non-interactive mode, disabling all interactive prompts and spinners.
-
--nologoSuppress the startup banner and telemetry notice.
-
--bannerDisplay the animated Aspire CLI welcome banner.
-
--wait-for-debuggerWait for a debugger to attach before running a command.
Commands
Section titled “Commands”The following commands are available:
| Command | Function |
|---|---|
aspire terminal attach | Attach the local terminal to a resource’s interactive session. |
aspire terminal ps | List interactive terminal sessions in the connected AppHost. |