@bifos/nhncloud-cli 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifos/nhncloud-cli",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "CLI tool for NHN Cloud services — AI agent & terminal friendly",
5
5
  "keywords": [
6
6
  "nhncloud",
@@ -73,6 +73,11 @@ nhncloud skills uninstall --quiet
73
73
  첫 설정은 `nhncloud configure`로 한다.
74
74
  대화형 마법사가 profile, UAK, 서비스별 자격증명을 묻고 저장 전 연결을 테스트한다.
75
75
 
76
+ 공공망 profile에는 `~/.nhncloud/credentials.json`의 해당 profile 블록에 `"environment": "gov"`를 명시한다.
77
+ 기존 profile은 이 필드를 생략하면 일반망을 사용한다.
78
+ 현재 공공망 endpoint 선택 대상은 OAuth, Deploy, NCR, IaaS이며 공공망에서 주소가 확인되지 않은 API는 호출하지 않는다.
79
+ `configure`의 연결 테스트는 일반망 주소를 사용한다. 공공망 자격증명은 `--no-verify`로 저장하고, profile에 `environment`를 추가한 뒤 조회 명령으로 확인한다.
80
+
76
81
  ```bash
77
82
  nhncloud configure
78
83
  nhncloud configure --profile staging
@@ -8,6 +8,8 @@ UAK를 OAuth `client_credentials`로 교환한 Bearer token으로 인증하고,
8
8
  `~/.nhncloud/credentials.json`에 profile 공통 `userAccessKey`가 필요하다.
9
9
  appkey는 `nhncloud configure --deploy-appkey <key>`로 profile에 설정한다.
10
10
  `nhncloud configure` 사용을 권장한다.
11
+ 공공망에서는 profile에 `"environment": "gov"`를 명시하고 `--profile`로 선택한다.
12
+ 공공망 Deploy API 주소는 `https://api-tcd.gov-nhncloudservice.com`이다.
11
13
 
12
14
  배포 좌표(아티팩트·서버그룹·시나리오 등)는 config에 두지 않는다.
13
15
  매 호출마다 명령 옵션으로 넘긴다.
@@ -57,6 +59,7 @@ nhncloud deploy run --artifact-id <id> --server-group-id <id> --scenario-ids <id
57
59
  ```bash
58
60
  nhncloud deploy artifacts --json
59
61
  nhncloud deploy server-groups --artifact-id <id> --json
62
+ nhncloud deploy scenarios --artifact-id <id> --server-group-id <id> --json
60
63
  nhncloud deploy histories --artifact-id <id> --json
61
64
  nhncloud deploy binary-groups --artifact-id <id> --json
62
65
  nhncloud deploy binaries --binary-group <key> --artifact-id <id> --json
@@ -68,11 +71,13 @@ nhncloud deploy binaries --binary-group <key> --artifact-id <id> --json
68
71
  |------|------|
69
72
  | 아티팩트 목록 | `deploy artifacts` |
70
73
  | 서버그룹 목록 | `deploy server-groups --artifact-id <id>` |
74
+ | 시나리오 목록 | `deploy scenarios --artifact-id <id> --server-group-id <id>` |
71
75
  | 배포 이력 | `deploy histories --artifact-id <id>` |
72
76
  | 바이너리 그룹 목록 | `deploy binary-groups --artifact-id <id>` |
73
77
  | 바이너리 목록 | `deploy binaries --binary-group <key> --artifact-id <id>` |
74
78
 
75
79
  `deploy binary-groups --json`은 `binaryGroups` wrapper를 언랩한 배열이다.
80
+ `deploy scenarios --json`은 시나리오 배열이며, `--quiet`은 시나리오 ID를 한 줄씩 출력한다.
76
81
  `deploy binaries --json`은 `{ totalCount, binaries }` 객체다.
77
82
 
78
83
  ## 바이너리 전송
@@ -2,6 +2,8 @@
2
2
 
3
3
  `instance`, `network`, `volume`, `floatingip`은 IaaS 자격증명과 Keystone token을 공유한다.
4
4
  region이 중요하면 `--region <region>`을 명시한다.
5
+ 공공망 profile에는 `"environment": "gov"`를 명시한다.
6
+ 공식 문서에 endpoint가 있는 공공망 IaaS region은 `kr1`과 `kr2`다.
5
7
 
6
8
  ## IaaS 설정
7
9
 
@@ -13,6 +13,7 @@ nhncloud configure --uak-id <uak-id> --uak-secret <uak-secret> --ncr-appkey <app
13
13
  ```
14
14
 
15
15
  기본 region은 `kr1`이고, `kr1`, `kr2`, `kr3`를 지원한다.
16
+ 공공망 profile(`"environment": "gov"`)의 NCR API는 `kr1`만 지원한다.
16
17
 
17
18
  ## Registry 조회
18
19