-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve CLI program #681
Comments
Regarding the man page, I have already put the effort to write one for my package. You can find it here. |
Wow! Great work @magkopian |
Also investigate use of cli from snap and appimage. It might just be easiest to deploy a separate snap entirely. |
I was rather thinking about a CLI option for the main program which does an exec keepassxc-cli. |
Other things that would be helpful:
Apart from that, I would say |
Thanks for the input @olifre !
I'll make sure all the top-level commands have the
I'm currently working on an interactive shell with readline support, with autocompletion. You can look at this PR for more details.
Which OS do you use? Right now the Clip command uses the |
I think it would also be nice to have a
This is especially useful, with commands like Another thing I'd really like, is by using a flag to have the ability to make
display something like the following,
|
@magkopian what about
|
I like the |
@louib Sorry I didn't know you have already implemented |
@magkopian they're not implemented yet, that was just a suggestion. They could be added pretty easily after #684 is merged though, if you're willing to jump in! |
@louib Well, in that case, the actual name of the command is not an issue. The functionality is what it matters. I guess the reason why I said |
Perfect, thanks a lot for your reply! |
@olifre key files are now supported for all the cli commands, and the |
@magkopian the I think at that point the 2 most important improvements would be the man page and basic entry manipulation commands (add, edit and remove). I won't have time to work on that in the near future, but if someone is willing to take care of it, I'll gladly help with code review and testing. |
Writing the manpage is pretty trivial and we already have a basic manpage in the unofficial debian package. We should inclide them here in the main repository |
@louib Thanks for letting me know, I've just started working on updating the manpage. By the way, have the Also, the list command which is now called |
Yes |
Ok, you can now find the updated version of the manpage here. Hopefully I haven't missed anything. |
@magkopian the Thanks for the contribution, the manpage appears to be up to date! |
@louib in your next cli PR, can you include the manpage? Thanks ;) |
I will really appreciate the ability to list all database entries flattened, like @magkopian suggests in his comment #681 (comment). I'm trying to integrate the cli with fzf and currently is impossible because the tree format of the list command don't allow to use fzf to search entries. |
An optional password argument might be very useful -- if there isn't any already. A practical use of it may be redirecting the output to relevant field. For example, if I redirect my output to a file, it appends Some example usage:
|
I'd be hesitant to adding a password argument, but would suggest supporting a password file instead.
|
Password must be passed to stdin, I don't think a |
#831 seems like a good solution for my situation. Adding a |
@magkopian @edubxb created #925 to track your request for a flattened list of entries. |
@louib thanks! |
Closing this one. Most of the points were addressed, and the main one remaining is tracked in another issue (#668). |
Thank you all for the input. I'm also trying to use keepassxc-cli from a script, but I'm not sure what to do with the password. For example, is it safe to use an encrypted password file? For example:
And is it safe/safer to use read with -s (no echo) option instead? For example:
|
This PR is 4 years old. Make a new discussion topic if you need guidance please. |
Listing here as a reminder some things that need to be improved in the cli program:
The text was updated successfully, but these errors were encountered: