Installing the YDB CLI

To install the YDB CLI, run the command:

curl -sSL https://install.ydb.tech/cli | bash

The script will install the YDB CLI and add the executable file path to the PATH environment variable.

Note

The script will update the PATH variable only if you run it in the bash or zsh command shell. If you run the script in a different shell, add the path to the CLI to the PATH variable yourself.

To update the environment variables, restart the command shell.

To install the YDB CLI, run the command:

curl -sSL https://install.ydb.tech/cli | bash

The script will install the YDB CLI and add the executable file path to the PATH environment variable.

To update the environment variables, restart the command shell.

You can install the YDB CLI using:

PowerShell. To do this, run the command:

iex (New-Object System.Net.WebClient).DownloadString('https://storage.yandexcloud.net/yandexcloud-ydb/install.ps1')

Specify whether to add the executable file path to the PATH environment variable:

Add ydb installation dir to your PATH? [Y/n]

cmd. To do this, run the command:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://storage.yandexcloud.net/yandexcloud-ydb/install.ps1'))"

Specify whether to add the executable file path to the PATH environment variable:

Add ydb installation dir to your PATH? [Y/n]

To update the environment variables, restart the command shell.

Note

The YDB CLI uses Unicode characters in the output of some commands. If these characters aren't displayed correctly in the Windows console, switch the encoding to UTF-8:

chcp 65001