[Feature] Filter output of cli commands #725

Open
opened 2025-12-29 02:22:58 +01:00 by adam · 3 comments
Owner

Originally created by @BlackQube on GitHub (Jun 13, 2024).

Use case

Some commands, like "headscale nodes list -t" produces a large horizontaly output, that mostly doesn't fit and will be wraped to the next line. This makes it difficult to read.

Description

It whould be good to be able to filter the output to hide some of the columns.
Currently (without the option "-t, --tags" included) there are the following topics shown:

  • ID
  • Hostname
  • Name
  • MachineKey
  • NodeKey
  • User
  • IP addresses
  • Ephemeral
  • Last seen
  • Expiration
  • Connected
  • Expired

with "-t, --tags" included:

  • ForcedTags
  • InvalidTags
  • ValidTags

I guess, a valid reduced output could be

  • ID
  • Hostname
  • Name
  • User
  • IP addresses
  • Connected
  • Expired

The contribution options needed to be checked to submit this request, but I don't think I can be a productive contributor. Sorry...

Contribution

  • I can write the design doc for this feature
  • I can contribute this feature

How can it be implemented?

No response

Originally created by @BlackQube on GitHub (Jun 13, 2024). ### Use case Some commands, like "headscale nodes list -t" produces a large horizontaly output, that mostly doesn't fit and will be wraped to the next line. This makes it difficult to read. ### Description It whould be good to be able to filter the output to hide some of the columns. Currently (without the option "-t, --tags" included) there are the following topics shown: - ID - Hostname - Name - MachineKey - NodeKey - User - IP addresses - Ephemeral - Last seen - Expiration - Connected - Expired with "-t, --tags" included: - ForcedTags - InvalidTags - ValidTags --- I guess, a valid reduced output could be - ID - Hostname - Name - User - IP addresses - Connected - Expired --- The contribution options needed to be checked to submit this request, but I don't think I can be a productive contributor. Sorry... ### Contribution - [ ] I can write the design doc for this feature - [ ] I can contribute this feature ### How can it be implemented? _No response_
adam added the enhancementno-stale-bot labels 2025-12-29 02:22:58 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 12, 2024):

This issue is stale because it has been open for 90 days with no activity.

@github-actions[bot] commented on GitHub (Sep 12, 2024): This issue is stale because it has been open for 90 days with no activity.
Author
Owner

@idefixcert commented on GitHub (Dec 17, 2025):

May I work on refactoring some cli commands that would later make the implementation easier.
As I proposed in [Feature] cli extension node list #2909?

@idefixcert commented on GitHub (Dec 17, 2025): May I work on refactoring some cli commands that would later make the implementation easier. As I proposed in [[Feature] cli extension node list #2909](https://github.com/juanfont/headscale/issues/2909)?
Author
Owner

@kradalby commented on GitHub (Dec 18, 2025):

Yes please, but keep in mind that we want to change the api in the future so don't invest too much in the grpc part if it is in the way.

@kradalby commented on GitHub (Dec 18, 2025): Yes please, but keep in mind that we want to change the api in the future so don't invest too much in the grpc part if it is in the way.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#725