[Feature] delete/create multiple users/authkeys at once #1060

Closed
opened 2025-12-29 02:28:02 +01:00 by adam · 2 comments
Owner

Originally created by @thebigbone on GitHub (Jul 8, 2025).

Use case

hello, creating multiple users and their authkeys with cli is not currently possible. would it be a good idea to accept multiple arguments to any create/delete options? I could be wrong but this should be relatively easy to implement.

Description

multiple arguments for create/delete operations to avoid executing redundant commands

Contribution

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

How can it be implemented?

No response

Originally created by @thebigbone on GitHub (Jul 8, 2025). ### Use case hello, creating multiple users and their authkeys with cli is not currently possible. would it be a good idea to accept multiple arguments to any create/delete options? I could be wrong but this should be relatively easy to implement. ### Description multiple arguments for create/delete operations to avoid executing redundant commands ### Contribution - [x] I can contribute this feature - [ ] I can write the design doc for this feature ### How can it be implemented? _No response_
adam added the enhancement label 2025-12-29 02:28:02 +01:00
adam closed this issue 2025-12-29 02:28:02 +01:00
Author
Owner

@kradalby commented on GitHub (Jul 9, 2025):

I dont think that is a CLI style we really want to go for.

Is there a reason you can just not for-loop/script it in the CLI? or same programatically if you use the API?

@kradalby commented on GitHub (Jul 9, 2025): I dont think that is a CLI style we really want to go for. Is there a reason you can just not for-loop/script it in the CLI? or same programatically if you use the API?
Author
Owner

@thebigbone commented on GitHub (Jul 10, 2025):

No major reason other than convenience. Majority of popular CLIs (systemctl for example) have an option for accepting multiple arguments. (Bash) scripting is fine, but it's far from reliable.

@thebigbone commented on GitHub (Jul 10, 2025): No major reason other than convenience. Majority of popular CLIs (systemctl for example) have an option for accepting multiple arguments. (Bash) scripting is fine, but it's far from reliable.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1060