Getting started with Yandex Cloud Shell
Note
This feature is in the Preview stage.
With Cloud Shell, you can use Yandex Cloud CLI and other terminal tools without any prior setup, directly in your browser. The Cloud Shell environment includes basic tools for working with the cloud and popular SDKs for programming languages.
To get started with Cloud Shell:
-
Go to the management console
and log in to Yandex Cloud or sign up if not signed up yet. -
In the left-hand menu, click
Cloud Shell.A terminal window will open: wait for the session to start and the development environment to be created.
Note
You can run up to four parallel sessions in the terminal. To run a new session, click
. Once started, a session can remain active for up to 12 hours. Inactive sessions are automatically terminated after 30 minutes of inactivity. For more information about limitations in Cloud Shell, see Limits. -
Use Yandex Cloud CLI commands to manage cloud resources from the terminal. For example, to list all VMs in the cloud, run this command:
yc compute instance list
For more command examples, see Getting started with the CLI. To view the full list of available commands, run the
yc --help
command or open the CLI reference. -
Install the required applications using the
apt
tool. For example, to installpostgresql-client
for connecting to a Yandex Managed Service for PostgreSQL cluster, run this command:sudo apt update && sudo apt install --yes postgresql-client
Note
The Cloud Shell VM will be automatically stopped and deleted 15 after the last active session ends. All system changes, including installed applications and packages, will be reset.