Установка Yandex.Cloud
sudo sh -c 'curl https://storage.yandexcloud.net/yandexcloud-yc/install.sh | \
bash -s -- -i /opt/yc -n'
Настройка Shell оболочки
echo -e "\n# Yandex Cloud CLI\n\
if [ -f '/opt/yc/path.bash.inc' ]; then source '/opt/yc/path.bash.inc'; fi\n\
if [ -f '/opt/yc/completion.bash.inc' ]; then source '/opt/yc/completion.bash.inc'; fi\n\
" >> ~/.bashrc
Применение Shell скрипта
. ~/.bashrc
Обновление оболочки
sudo chown xeon:xeon -R /opt
yc components update
Активация сервисного ключа
yc config set service-account-key ~/.ssh/yc.service.key
yc config set folder-id <>