Skip to content

Terminal support

aONe edited this page Jan 3, 2024 · 6 revisions

Command-line interface support

Since Keka version 1.2.11 you can use Keka from the Terminal.

Execute

Just run the Keka binary with the --cli argument, like this (your Keka.app location might be different):

/Applications/Keka.app/Contents/MacOS/Keka --cli

Alias

You can also create an alias (#1378) so it can be called easily (your Keka.app location might be different):

alias keka="/Applications/Keka.app/Contents/MacOS/Keka --cli"

Then simply execute keka. You can remove the alias like this:

unalias keka

Usage

Execute Keka with --help or -h command to print your current version usage information.

Usage: Keka [options] --cli [binary] [binary specific options ...]

Run Keka as a command-line interface process.

You should run Keka with the --cli option followed by the binary to use.
Any other Keka option should go before the --cli argument.
Example: Keka --ignore-file-access --cli tar -cf file.tar folder

Options:
  -h, --help                     show this help message and exit
  --version                      show the Keka version
  -v, --verbose                  show verbose logging output
  --cli                          run Keka as a CLI process
  --ignore-file-access           ignore the File Access warning and try the operation anyway

To see each binary options just run --client [binary] --help.
Example: Keka --client 7z --help

Binaries:
  7z
  brotli
  lbzip2
  lrzip
  lzip
  pbzip2
  pigz
  plzip
  rar
  tar
  unace
  unar
  unrar
  xz
  zstd

Optional execution parameters

Starting with Keka version 1.1.0, there're some commands that you can use while calling GUI Keka from the Terminal.

Those are not used when running the client version.

Basic operations

  • -a: Automatic operation
  • -c: Force compression
  • -x: Force extraction

More parameters

  • -sft: Skip open files timer (#57)

Legacy

Versions from 1.2.11 to 1.2.16 should call --client instead of --cli