@acomo/cli 1.0.12 → 1.0.13

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/AGENTS.md CHANGED
@@ -5,13 +5,15 @@ acomo CLI は acomo ワークフロー管理プラットフォームの公式 CL
5
5
 
6
6
  ## 認証
7
7
 
8
+ アクセストークンはブラウザで acomo にログインした後に入手し、CLI で保持します。
9
+
8
10
  ```bash
9
11
  # 環境変数で認証(推奨・非インタラクティブ)
10
12
  export ACOMO_ACCESS_TOKEN="your-token"
11
13
  export ACOMO_TENANT_ID="your-tenant-id"
12
14
 
13
- # または直接ログイン
14
- acomo login --tenant-id <tenant-id> --token <access-token>
15
+ # または login で保存
16
+ acomo login --tenant-id <tenantId> --access-token <accessToken>
15
17
  ```
16
18
 
17
19
  | 環境変数 | 説明 | 必須 |
package/README.md CHANGED
@@ -12,12 +12,14 @@ npm install -g @acomo/cli
12
12
 
13
13
  ### 1. ログイン
14
14
 
15
+ アクセストークンはブラウザで acomo にログインした後に入手し、CLI で指定して保存します。
16
+
15
17
  ```bash
16
- # アクセストークンでログイン(推奨)
17
- acomo login --tenant-id <your-tenant-id> --token <your-access-token>
18
+ # オプションで指定
19
+ acomo login --tenant-id <your-tenant-id> --access-token <your-access-token>
18
20
 
19
- # または、メール/パスワードでログイン
20
- acomo login --tenant-id <your-tenant-id>
21
+ # または対話形式(baseUrl / tenantId / accessToken をプロンプトで入力。既存設定はデフォルト表示され Enter でそのまま採用)
22
+ acomo login
21
23
  ```
22
24
 
23
25
  ### 2. API を呼び出す
@@ -39,26 +41,16 @@ acomo listWorkflowModels '{"filter":"published","take":10}'
39
41
 
40
42
  #### アクセストークンでログイン
41
43
 
42
- ```bash
43
- acomo login --tenant-id <tenant-id> --token <access-token>
44
- ```
45
-
46
- Web 画面などで取得したアクセストークンを直接指定できます。
47
-
48
- #### メール/パスワードでログイン
44
+ アクセストークンはブラウザで acomo にログインした後に取得できます。取得したトークンを CLI で指定して保存します。
49
45
 
50
46
  ```bash
51
- # オプション指定
52
- acomo login --tenant-id <tenant-id> --email user@example.com --password pass123
53
-
54
- # インタラクティブ入力
55
- acomo login --tenant-id <tenant-id>
47
+ acomo login --tenant-id <tenant-id> --access-token <access-token>
56
48
  ```
57
49
 
58
- #### カスタム URL を指定
50
+ #### baseUrl を指定する
59
51
 
60
52
  ```bash
61
- acomo login --url https://custom.acomo.app --tenant-id <tenant-id> --token <token>
53
+ acomo login --base-url https://custom.acomo.app --tenant-id <tenant-id> --access-token <access-token>
62
54
  ```
63
55
 
64
56
  ### API 呼び出し
@@ -179,7 +171,6 @@ acomo getMyOrganization
179
171
  | `ACOMO_ACCESS_TOKEN` | アクセストークン | Yes | - |
180
172
  | `ACOMO_TENANT_ID` | テナント ID | Yes | - |
181
173
  | `ACOMO_BASE_URL` | API の Base URL | No | `https://acomo.app` |
182
- | `ACOMO_EMAIL` | メールアドレス | No | - |
183
174
 
184
175
  環境変数を設定しておけば、`acomo login` なしで直接 API を呼び出せます。
185
176
 
@@ -204,8 +195,7 @@ CLI オプションや環境変数が指定されている場合、設定ファ
204
195
  {
205
196
  "baseUrl": "https://acomo.app",
206
197
  "tenantId": "your-tenant-id",
207
- "accessToken": "your-access-token",
208
- "email": "user@example.com"
198
+ "accessToken": "your-access-token"
209
199
  }
210
200
  ```
211
201