Skip to content

Add support for terminal-based console #9771

@aradalvand

Description

@aradalvand

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Add some way to see resource logs (most importantly, project logs) from within the terminal as opposed to Aspire's web UI.
This is a very strong preference for a lot of people (including myself). The native terminal can be customized in ways that the Aspire web "console" can't, and you might just be very used to interacting with the terminal rather than just clicking buttons in a GUI. In general, any development tool that is serious enough almost invariably has deep CLI support; so should Aspire.

Describe the solution you'd like

Introduce an aspire attach <resource-name> command as part of the Aspire CLI, allowing the user to see a resource (or at the very least a project's) logs through the console/terminal, just in the same way that they would if they had run the project directly using dotnet run --project <resource-project-path>.

Additionally, a compound command like aspire run attach <resource name> which takes care of both 1. running the Aspire host 2. then immediately attaching the shell to the specified resource's console, would be very useful.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions