Kleopatra Command Line to Sign File

I am running GPG4Win 4.1.0 and attempting to use the Kleopatra tool command line to sign a file.

Kleopatra --help gives me an error: "Unknown option ‘help.’ This leaves me guessing as to the proper syntax for the command-line options.

Kleopatra -s filename Opens Kleopatra to the Encrypt/Sign dialog where I need to click save to complete the action.

Is there a way to run the command-line in silent mode?

What are the other options for the -s command-line switch? Can I specify an output file name?

1 Like

Hello,

you have to use the command “gpg” which stands for GnuPG which is the crypto engine behind Kleopatra.
For a few commands you can run “gpg --help”. If you want to explore more commands and options you can visit https://www.gnupg.org/documentation/manuals/gnupg/.

I didn’t find an option to run commands in silent mode but you could search for a way to redirect the output.

With regards,
Christoph

1 Like

@cklassen, does that mean that there is no CLI for Kleopatra?

@RokeJulianLockhart Kleopatra itself is just a (graphical user) interface which you can use to access the engine GnuPG. GnuPG itself has a CLI which you can use with the command gpg. So, technically: No there is no CLI for Kleopatra but both - Kleopatra and gpg are interfaces for the same engine. In the end you can do the same things (even more) with the CLI as you can do with Kleopatra.

1 Like

@cklassen it is interesting though, that some command line options and parameters seem to work, like kleopatra.exe --sign brings up something different. This is at least inconsistent, can you check if there is an issue in the tracker and otherwise create on?

The build in help menu links to the Kleopatra online documentation Chapter 4. Command Line Options Reference , which indeed lists some options, however the advertised --help does not work.

1 Like

--help works on Linux and in the Gpg4win versions, too, if Kleopatra is not already running.

Interesting…

1 Like

@bernhard, reported to bugs.kde.org/show_bug.cgi?id=505514, citing the difference between it running versus not:

I’ll set the platform to “All”, since it appears to affect both NT and Linux-based OSes.

Fixed: ⚓ T7686 Kleopatra: Command line options --help, --version, etc. do not work if Kleopatra is already running

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.