> For the complete documentation index, see [llms.txt](https://docs.mikopbx.com/mikopbx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mikopbx.com/mikopbx/setup/cloud/yandex-cloud/yandex-cloud-cli.md).

# Коммандная строка YC

Установка MikoPBX в Yandex Cloud с помощью утилиты yc

Утилита [Yandex Cloud](https://yandex.cloud/ru/docs/cli/cli-ref/managed-services/compute/instance/) позволяет автоматизировать создание инстансов. Ее можно использовать в скриптах.

1. На [странице продукта](https://cloud.yandex.ru/marketplace/products/miko/mikopbx#product-ids) скопируйте значение **image\_id**. В текущем примере ***fd83g1qbk6m3jnl5cvah*** (для версии 2022.3.15). Идентификатор образа следует укзаать в параметре **create-boot-disk image-id**
2. Получим список каталогов

```bash
yc resource-manager folder list
```

Выбираем каталог и указываем его имя в параметре **folder-name**

3. Список зон

```bash
yc compute zone list 
```

Описываем зону в параметре **zone**

4. Запускаем инстанс

```bash
yc compute instance create \
	--folder-name apor-test-catalog \
	--name test\
	--zone ru-central1-c \
	--cores 2 \
	--memory 2gb \
	--create-boot-disk image-id=fd83g1qbk6m3jnl5cvah \
	--ssh-key ~/.ssh/id_rsa.pub \
	--public-ip \
	--create-disk name=storage-test-mikopbx,size=20,auto-delete=1
```

5. Список инстансов обновится

```bash
yc compute instance list                 
+----------------------+-----------------+---------------+---------+-----------------+-------------+
|          ID          |      NAME       |    ZONE ID    | STATUS  |   EXTERNAL IP   | INTERNAL IP |
+----------------------+-----------------+---------------+---------+-----------------+-------------+
| ef38gedvuug8qvv4l74p | test            | ru-central1-c | RUNNING | 51.250.39.55    | 10.130.0.6  |
+----------------------+-----------------+---------------+---------+-----------------+-------------+
```

Используйте **EXTERNAL IP** для входа и **ID** в качестве пароля для пользователя **admin** web интерфейса


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mikopbx.com/mikopbx/setup/cloud/yandex-cloud/yandex-cloud-cli.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
