@stackone/cli 1.10.1 → 1.11.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/README.md CHANGED
@@ -91,6 +91,45 @@ stackone push --api-key <your-api-key> --api-url <api-url> path/to/connector.s1.
91
91
  - **File validation**: Checks that the file exists and is a valid connector before attempting upload
92
92
  - **Batch upload**: Supports uploading multiple connectors from a directory
93
93
 
94
+ ### `drop`
95
+
96
+ Drop (delete) a specific connector version from the StackOne API registry. This command can use either a configuration profile created with the `init` command or provide credentials directly via command-line options.
97
+
98
+ ```bash
99
+ stackone drop <connector> --profile <profile-label>
100
+ ```
101
+
102
+ or using direct credentials:
103
+
104
+ ```bash
105
+ stackone drop <connector> --api-key <your-api-key>
106
+ ```
107
+
108
+ or with custom API URL:
109
+
110
+ ```bash
111
+ stackone drop <connector> --api-key <your-api-key> --api-url <api-url>
112
+ ```
113
+
114
+ **Arguments:**
115
+
116
+ - `<connector>` - The connector identifier in the format `provider_key@version` (e.g., `my-provider@1.0.0`)
117
+
118
+ **Options:**
119
+
120
+ - `-p, --profile <label>` - Configuration profile to use
121
+ - `--api-key <api-key>` - API key to use for authentication (alternative to using a profile)
122
+ - `--api-url <api-url>` - API URL to use (defaults to `https://api.stackone.com` if not specified)
123
+
124
+ **Note:** You must provide either `--profile` or `--api-key`. If using `--api-key`, the `--api-url` option is optional and will default to the production API URL.
125
+
126
+ **Features:**
127
+
128
+ - **Flexible authentication**: Use either a saved profile or provide credentials directly
129
+ - **Profile validation**: Ensures the specified profile exists before attempting deletion (when using `--profile`)
130
+ - **Precise targeting**: Delete specific connector versions without affecting other versions
131
+ - **Clear feedback**: Informative success and error messages with color-coded output
132
+
94
133
  ### `validate`
95
134
 
96
135
  Validate a StackOne connector file:
package/dist/cli.cjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const e=require(`./cliCore-CnIBp2pi.cjs`),t=new e.CLI;t.run();
2
+ const e=require(`./cliCore-CXBqMdiv.cjs`),t=new e.CLI;t.run();
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{CLI as e}from"./cliCore-vfAofbYA.js";const t=new e;t.run();
2
+ import{CLI as e}from"./cliCore-DRnQtnk3.js";const t=new e;t.run();