Skip to content

Command line and CLI storage

Use kodik from a terminal where it is on your PATH. On macOS, open the Command Palette and run Shell Command: Install ‘kodik’ command in PATH first.

Окно терминала
kodik .
kodik --new-window /path/to/project
kodik --goto src/main.ts:42
kodik --diff before.txt after.txt

These commands open the current directory, open a project in a new window, jump to a source line, and compare two files. Run kodik --help for the switches your installation supports. To send prompts from an extension, see the Chat commands for extensions.

Run kodik --transient to start the editor with new temporary directories for editor data, extensions, and shared data. The command prints the three paths and a command to reopen the same temporary state later. This is useful for checking whether a problem depends on your usual settings or extensions. You can add --locale ru to open the interface in Russian when that language is available.

The standalone launcher uses these directories for CLI state such as downloaded servers and tunnel logs.

Launcher Default CLI directory
Installed build ~/.kodik/cli
Development build ~/.kodik-dev/cli
Portable build <portable-root>/.kodik/cli
Portable development build <portable-root>/.kodik-dev/cli

For an installed or development launcher, choose a different directory with --cli-data-dir <path> or the VSCODE_CLI_DATA_DIR environment variable. For example, check the selected launcher version with a separate CLI directory.

Окно терминала
kodik --cli-data-dir /path/to/cli-data version show

Portable launches use the absolute portable directory selected by VSCODE_PORTABLE. If the launcher says the portable media is unavailable, reconnect it and run the command again. If it reports a conflicting CLI root, remove the --cli-data-dir option or unset VSCODE_CLI_DATA_DIR.

If ~/.kodik/cli is missing and ~/.vscode-cli exists, the installed launcher tries to move the old directory to ~/.kodik/cli. If the move fails, the launcher prints a warning and creates the new directory. If both directories exist, the launcher uses ~/.kodik/cli.

For supported tunnel service commands, run kodik tunnel service --help.