Magento-cloud CLI에 활성 환경이 표시되지 않습니다.

문제

몇 가지 활성 환경이 있으며 Magento-cloud CLI (명령줄 도구) 명령을 실행하여 환경과 상호 작용하려고 합니다. (예: ssh, db:size, db:sql 등)
그러나 원하는 환경을 선택하라는 메시지가 이 환경을 나열하지 않습니다. (예: 통합 환경)

Enter a number to choose an environment:
Default: master
  [0] integration2 (type: development)
  [1] master (type: development)
  [2] production
  [3] staging
 >

원인

배포 진행 중, 중단 또는 실패로 인해 환경을 사용할 수 없습니다.

솔루션

e|-environment 플래그를 사용하여 환경을 수동으로 지정해야 합니다.

  1. 활성 환경 목록을 찾고 환경 이름을 기록합니다.
$ magento-cloud environment: list |grep "Active\|ID"
Your environments are:

| ID                     | Title            | Status       | Type           |
| Master                 | Master           | Active       | Development    |
|   Production           | Production       | Active       | Production     |
|     Staging            | Staging          | Active       | Staging        |
|       Integration      | Integration      | Active       | Development    |
|          Integration 2 | Integration 2    | Active       | Development    |

​2. 명령을 사용하여 환경 ID를 지정합니다.

magento-cloud ssh -e integration

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a