Installing the YDB CLI

Linux

macOS

Windows

To install the YDB CLI, run the command:

  1. curl https://storage.yandexcloud.net/yandexcloud-ydb/install.sh | bash

Install - 图1

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:

  1. curl https://storage.yandexcloud.net/yandexcloud-ydb/install.sh | bash

Install - 图2

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:

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

    Install - 图3

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

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

    Install - 图4

  • cmd. To do this, run the command:

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

    Install - 图5

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

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

    Install - 图6

    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:

  1. chcp 65001

Install - 图7