@stackone/cli 1.15.1 → 1.15.3

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/README.md CHANGED
@@ -119,7 +119,7 @@ stackone pull --connector my-provider --profile <profile-label>
119
119
 
120
120
  **Options:**
121
121
 
122
- - `--connector <connector>` - Connector identifier in format `provider_key@version` (e.g., `my-provider@1.0.0`) or just `provider_key` to pull the latest version
122
+ - `--connector <connector>` - Connector identifier in format `provider_key@version` (e.g., `my-provider@1.0.0`), `provider_key` to pull the latest version, or with version wildcards (e.g., `my-provider@1.x.x`, `my-provider@2.1.x` or `my-provider@latest`)
123
123
  - `-o, --output-path <output-path>` - Directory path to save the connector to (defaults to `./connectors/<provider_key>/`)
124
124
  - `-p, --profile <label>` - Configuration profile to use
125
125
  - `--api-key <api-key>` - API key to use for authentication (alternative to using a profile)
@@ -166,7 +166,7 @@ When pulling a connector that already exists locally, the command will:
166
166
  **Features:**
167
167
 
168
168
  - **Flexible authentication**: Use either a saved profile or provide credentials directly
169
- - **Version flexibility**: Pull specific versions or the latest version by omitting version number
169
+ - **Version flexibility**: Pull specific versions, use wildcards (e.g., `1.x.x`, `2.1.x`, `latest`), or omit version for latest
170
170
  - **Interactive conflict resolution**: Smart diff-based conflict resolution when local changes exist
171
171
  - **Profile validation**: Ensures the specified profile exists before fetching (when using `--profile`)
172
172
  - **Automatic file organization**: Saves connectors in organized directory structure (`./connectors/<provider_key>/`)
@@ -220,6 +220,12 @@ Get (download) a connector from the StackOne registry. This command can use eith
220
220
  stackone get --connector my-provider@1.0.0 --profile <profile-label>
221
221
  ```
222
222
 
223
+ or get the latest version:
224
+
225
+ ```bash
226
+ stackone get --connector my-provider --profile <profile-label>
227
+ ```
228
+
223
229
  or using direct credentials:
224
230
 
225
231
  ```bash
@@ -234,7 +240,7 @@ stackone get --account-id acc_123 --profile <profile-label>
234
240
 
235
241
  **Options:**
236
242
 
237
- - `--connector <connector>` - Connector identifier in format `provider_key@version` (e.g., `my-provider@1.0.0`)
243
+ - `--connector <connector>` - Connector identifier in format `provider_key@version` (e.g., `my-provider@1.0.0`), `provider_key` to get the latest version, or with version wildcards (e.g., `my-provider@1.x.x`, `my-provider@2.1.x` or `my-provider@latest`)
238
244
  - `--account-id <account-id>` - Account ID to fetch the connector from
239
245
  - `-f, --format <format>` - Output format: `yaml` or `json` (default: `yaml`)
240
246
  - `-o, --output-file <output-file>` - File path to write the connector to (if not specified, outputs to stdout)
@@ -255,10 +261,10 @@ stackone get --account-id acc_123 --profile <profile-label>
255
261
  stackone get --connector my-provider@1.0.0 --profile production
256
262
  ```
257
263
 
258
- 2. **Get connector from registry with API key:**
264
+ 2. **Get latest version from registry with API key:**
259
265
 
260
266
  ```bash
261
- stackone get --connector my-provider@1.0.0 --api-key your-api-key
267
+ stackone get --connector my-provider --api-key your-api-key
262
268
  ```
263
269
 
264
270
  3. **Get connector from account:**
@@ -288,6 +294,7 @@ stackone get --account-id acc_123 --profile <profile-label>
288
294
  **Features:**
289
295
 
290
296
  - **Flexible authentication**: Use either a saved profile or provide credentials directly
297
+ - **Version flexibility**: Get specific versions, use wildcards (e.g., `1.x.x`, `2.1.x`, `latest`), or omit version for latest
291
298
  - **Multiple sources**: Fetch connectors from registry by identifier or from specific accounts
292
299
  - **Format conversion**: Output in YAML (default) or JSON format
293
300
  - **File output**: Save to file or output to stdout for piping
@@ -330,7 +337,7 @@ stackone run --account-id <account-id> --api-key <your-api-key>
330
337
 
331
338
  **Options:**
332
339
 
333
- - `--connector <connector>` - Path to the connector file to run, inline connector YAML string, or connector identifier in format `provider_key@version` to fetch from registry (optional when using `--account-id`, the connector will be fetched from account API)
340
+ - `--connector <connector>` - Path to the connector file to run, inline connector YAML string, or connector identifier in format `provider_key@version`, `provider_key` for latest, or with version wildcards (e.g., `my-provider@1.x.x`, `my-provider@2.1.x` or `my-provider@latest`) to fetch from registry (optional when using `--account-id`, the connector will be fetched from account API)
334
341
  - `--action <action>` - Path to an action file or inline action YAML code to add to the connector
335
342
  - `--action-id <action-id>` - Specific action ID to execute. If not provided, the last action in the connector will be executed
336
343
  - `--account <account>` - Path to a JSON file with account details or inline JSON string (see Account Format below)
@@ -472,7 +479,7 @@ All fields are optional and default to empty objects `{}`.
472
479
 
473
480
  - Either `--account` or `--account-id` must be provided
474
481
  - When using `--account-id`, either `--profile` or `--api-key` is required
475
- - When using connector identifier format (`provider_key@version`), either `--profile` or `--api-key` is required
482
+ - When using connector identifier format (`provider_key@version` or `provider_key`), either `--profile` or `--api-key` is required
476
483
  - You must provide either `--profile` or `--api-key`, not both
477
484
  - When using `--action`, the `--connector` option is required
478
485
  - A connector can be provided via:
@@ -482,7 +489,7 @@ All fields are optional and default to empty objects `{}`.
482
489
 
483
490
  **Features:**
484
491
 
485
- - **Flexible connector loading**: Load from file path, provide inline YAML, fetch from registry using `provider_key@version` identifier, or auto-fetch from API using account ID
492
+ - **Flexible connector loading**: Load from file path, provide inline YAML, fetch from registry using `provider_key@version`, `provider_key` for latest, or version wildcards (e.g., `1.x.x` or `latest`), or auto-fetch from API using account ID
486
493
  - **Flexible authentication**: Use either a saved profile or provide credentials directly via command-line options
487
494
  - **Dynamic action injection**: Add custom actions to existing connectors on-the-fly
488
495
  - **Multiple authentication methods**: Use API-fetched accounts or local account data
package/dist/cli.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const e=require(`./cliCore-DOB5rM16.cjs`);new e.t().run();
2
+ const e=require(`./cliCore-fjMX19Ck.cjs`);new e.t().run();
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cliCore-BDikKAKf.mjs";new e().run();export{};
2
+ import{t as e}from"./cliCore-VnX1Z2bB.mjs";new e().run();export{};