Skip to content
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

CLI : import from XML format #2341

Closed
vespian opened this issue Sep 30, 2018 · 3 comments
Closed

CLI : import from XML format #2341

vespian opened this issue Sep 30, 2018 · 3 comments

Comments

@vespian
Copy link

vespian commented Sep 30, 2018

The CLI has an export option:

$ keepassxc-cli extract
Usage: keepassxc-cli extract [options] database
Extract and print the content of a database.

Options:
  -k, --key-file <path>  Key file of the database.

Arguments:
  database               Path of the database to extract.

but no import <!> Once the database is in XML format, I do not see a way to import it back :( What is more, the export option asks for password on STDOUT and prints database on STDOUT as well. This makes redirecting the output difficult.

Expected Behavior

It would be great if:

  • there was an XML import option, both CLI and UI is fine
  • the export command had an option to name the file to which the export should be done.
@droidmonkey droidmonkey changed the title No XML import option? CLI XML export improvements and add import option Sep 30, 2018
@louib
Copy link
Member

louib commented Oct 17, 2018

@vespian we already have an issue for the password prompt being displayed to stdout.

I remember someone proposing an import command for the CLI, but it was never implemented. Importing from the same xml format that we export to would make sense.

@louib louib changed the title CLI XML export improvements and add import option CLI : import from XML format Oct 17, 2018
@Sbgodin
Copy link

Sbgodin commented Nov 30, 2018

An option for a Yubikey would also be nice. cf #2451

@louib
Copy link
Member

louib commented Nov 1, 2019

This was implemented by #3572

@louib louib closed this as completed Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants