Skip to content

Using the CLI

You can use the CLI arguments to further fasten up your wikipedia experience in wiki-tui. While there are more QOL-features and arguments for the CLI planned, those are the things you can currently do with the CLI:

Tip

You can always run wiki-tui --help to get an overview of available arguments

Search Query Argument

wiki-tui <search-query>

Example

If you already know that you want to search for github you can pass it in as a argument

wiki-tui github

It will open wiki-tui and already start the search so you don't have to type it into the search bar

Changing the language

wiki-tui --language <language-code>

Example

If you want to change the language to German, simply pass it in as a argument

wiki-tui --language de
wiki-tui --language german
wiki-tui --language deutsch

It will open wiki-tui with the language set to German

Tip

You can also use the short variant of this argument -l to change the language

wiki-tui -l de

For more information about language changing, view this page of the docs

To view the cache directory where the log file is written to, use this command

wiki-tui --cache-dir

If you want to instead view the path for the config file, use this command

wiki-tui --config-path

If you want to view the path for the theme configuration file, use this command

wiki-tui --theme-config-path

Change logging level

You can also change the configured logging level. This can be done by either using a number to set the level or by using the name of the logging leven (for more information, see the table below)

wiki-tui --level <level>

Example

Changing the level to Debug

wiki-tui --level 4

Available values are:

Value Name Level
5 trace Trace
4 debug Debug
3 info Info
2 warn Warn
1 error Error
0 off Turn off Logging