@squidcloud/cli 1.0.441 → 1.0.443
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/dist/index.js
CHANGED
|
@@ -36710,7 +36710,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"seek-bzip","version":"1.0.6",
|
|
|
36710
36710
|
(module) {
|
|
36711
36711
|
|
|
36712
36712
|
"use strict";
|
|
36713
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.
|
|
36713
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@squidcloud/cli","version":"1.0.443","description":"The Squid CLI","main":"dist/index.js","scripts":{"start":"node dist/index.js","start-ts":"ts-node -r tsconfig-paths/register src/index.ts","prebuild":"rimraf dist","build":"webpack --mode=production","build:dev":"webpack --mode=development","lint":"eslint","link":"npm run build && chmod 755 dist/index.js && npm link","watch":"webpack --watch","deploy":"npm run build && npm pack --silent | xargs -I {} mv {} package.tgz && npm install -g package.tgz && rm -rf package.tgz","publish:public":"npm run build && npm publish --access public"},"files":["dist/**/*"],"bin":{"squid":"dist/index.js"},"keywords":[],"author":"","license":"ISC","engines":{"node":">=18.0.0"},"dependencies":{"@squidcloud/local-backend":"^1.0.443","adm-zip":"^0.5.16","copy-webpack-plugin":"^12.0.2","decompress":"^4.2.1","nodemon":"^3.1.9","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","webpack":"^5.101.3","zip-webpack-plugin":"^4.0.1"},"devDependencies":{"@types/adm-zip":"^0.5.7","@types/decompress":"^4.2.7","@types/node":"^20.19.9","terminal-link":"^3.0.0"}}');
|
|
36714
36714
|
|
|
36715
36715
|
/***/ }
|
|
36716
36716
|
|
|
@@ -231,16 +231,15 @@ const { organizationId } = await client.createOrganization({
|
|
|
231
231
|
console.log('Created org:', organizationId);
|
|
232
232
|
|
|
233
233
|
// Create an application in the organization
|
|
234
|
-
const { appId,
|
|
234
|
+
const { appId, devApiKey, prodApiKey } = await client.createApplication({
|
|
235
235
|
organizationId,
|
|
236
236
|
name: 'My Application',
|
|
237
|
-
|
|
238
|
-
region: 'us-east-1' // Cloud region (e.g., 'us-east-1', 'us-central1')
|
|
237
|
+
region: 'us-east-1.aws' // SquidRegion (e.g., 'us-east-1.aws', 'us-central1.gcp')
|
|
239
238
|
});
|
|
240
|
-
console.log('Created app:', appId
|
|
239
|
+
console.log('Created app:', appId);
|
|
241
240
|
|
|
242
241
|
// Delete an application
|
|
243
|
-
await client.deleteApplication(
|
|
242
|
+
await client.deleteApplication(appId);
|
|
244
243
|
```
|
|
245
244
|
|
|
246
245
|
**Available Methods:**
|
|
@@ -248,8 +247,8 @@ await client.deleteApplication({ appId });
|
|
|
248
247
|
| Method | Description |
|
|
249
248
|
|--------|-------------|
|
|
250
249
|
| `createOrganization({ name })` | Creates a new organization. User becomes admin. |
|
|
251
|
-
| `createApplication({ organizationId, name,
|
|
252
|
-
| `deleteApplication(
|
|
250
|
+
| `createApplication({ organizationId, name, region })` | Creates an application in an organization. Returns `{ appId, devApiKey, prodApiKey }`. |
|
|
251
|
+
| `deleteApplication(appId)` | Deletes an application. Requires admin role. |
|
|
253
252
|
|
|
254
253
|
**TypeScript Types:**
|
|
255
254
|
|
|
@@ -257,12 +256,10 @@ await client.deleteApplication({ appId });
|
|
|
257
256
|
import {
|
|
258
257
|
ManagementClient,
|
|
259
258
|
ManagementClientOptions,
|
|
260
|
-
ManagementCloudId, // 'aws' | 'gcp' | 'azure'
|
|
261
259
|
ManagementCreateOrganizationRequest,
|
|
262
260
|
ManagementCreateOrganizationResponse,
|
|
263
261
|
ManagementCreateApplicationRequest,
|
|
264
262
|
ManagementCreateApplicationResponse,
|
|
265
|
-
ManagementDeleteApplicationRequest
|
|
266
263
|
} from '@squidcloud/client';
|
|
267
264
|
```
|
|
268
265
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.443",
|
|
4
4
|
"description": "The Squid CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"node": ">=18.0.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@squidcloud/local-backend": "^1.0.
|
|
31
|
+
"@squidcloud/local-backend": "^1.0.443",
|
|
32
32
|
"adm-zip": "^0.5.16",
|
|
33
33
|
"copy-webpack-plugin": "^12.0.2",
|
|
34
34
|
"decompress": "^4.2.1",
|