@forge/cli-shared 6.6.0-next.2 → 6.6.0-next.4
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/CHANGELOG.md +12 -0
- package/out/graphql/graphql-types.d.ts +119 -1
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/service/statsig-service.d.ts +2 -1
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +3 -0
- package/out/ui/text.d.ts +131 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +141 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CLIDetails, ConfigSectionReader, CredentialGetter, getEnvironmentConfig, Logger } from '../index';
|
|
2
|
-
export declare type FeatureGate = 'forge-cli-test-gate' | 'is-logs-v-2-api-enabled' | 'forge-cli-bundle-runtime-loader' | 'forge-cli-enable-atlas-product-support';
|
|
2
|
+
export declare type FeatureGate = 'forge-cli-test-gate' | 'is-logs-v-2-api-enabled' | 'forge-cli-bundle-runtime-loader' | 'forge-cli-enable-atlas-product-support' | 'forge-cli-enable-xpa-installation';
|
|
3
3
|
export declare type DynamicConfig = {
|
|
4
4
|
'forge-cli-test-dynamic-configs': {
|
|
5
5
|
value: string[];
|
|
@@ -14,6 +14,7 @@ export declare abstract class StatsigReader {
|
|
|
14
14
|
isLogsV2ApiEnabled(): Promise<boolean>;
|
|
15
15
|
isAtlasProductSupported(): Promise<boolean>;
|
|
16
16
|
testForgeCliBundleRuntimeLoaderGate(): Promise<boolean>;
|
|
17
|
+
enableCrossProductAppInstallation(): Promise<boolean>;
|
|
17
18
|
}
|
|
18
19
|
export declare function cacheStatsigResult<C, T>(getter: (this: C, ...args: any[]) => Promise<T>): (this: C, ...args: any[]) => Promise<T>;
|
|
19
20
|
export declare class StatsigService extends StatsigReader {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statsig-service.d.ts","sourceRoot":"","sources":["../../src/service/statsig-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EAEpB,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,oBAAY,WAAW,GACnB,qBAAqB,GACrB,yBAAyB,GACzB,iCAAiC,GACjC,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"statsig-service.d.ts","sourceRoot":"","sources":["../../src/service/statsig-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EAEpB,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,oBAAY,WAAW,GACnB,qBAAqB,GACrB,yBAAyB,GACzB,iCAAiC,GACjC,wCAAwC,GACxC,mCAAmC,CAAC;AAExC,oBAAY,aAAa,GAAG;IAC1B,gCAAgC,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,oBAAY,gBAAgB,GAAG,MAAM,aAAa,CAAC;AAEnD,8BAAsB,aAAa;IACjC,QAAQ,CAAC,SAAS,CAAC,CAAC,SAAS,WAAW,EACtC,IAAI,EAAE,CAAC,EACP,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACxC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,EAClD,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAE7B,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIxC,4BAA4B,IAAI,OAAO,CAAC,GAAG,CAAC;IAI5C,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAItC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;I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ChB,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACpC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAapC"}
|
|
@@ -18,6 +18,9 @@ class StatsigReader {
|
|
|
18
18
|
async testForgeCliBundleRuntimeLoaderGate() {
|
|
19
19
|
return (await this.checkGate('forge-cli-bundle-runtime-loader')) ?? false;
|
|
20
20
|
}
|
|
21
|
+
async enableCrossProductAppInstallation() {
|
|
22
|
+
return (await this.checkGate('forge-cli-enable-xpa-installation')) ?? false;
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
exports.StatsigReader = StatsigReader;
|
|
23
26
|
var STATSIG_API_KEYS;
|
package/out/ui/text.d.ts
CHANGED
|
@@ -388,6 +388,137 @@ export declare const Text: {
|
|
|
388
388
|
};
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
|
+
version: {
|
|
392
|
+
cmd: {
|
|
393
|
+
cmdName: string;
|
|
394
|
+
desc: string;
|
|
395
|
+
};
|
|
396
|
+
diff: {
|
|
397
|
+
cmdName: string;
|
|
398
|
+
error: {
|
|
399
|
+
noVersionProvided: string;
|
|
400
|
+
};
|
|
401
|
+
option: {
|
|
402
|
+
version1: string;
|
|
403
|
+
version2: string;
|
|
404
|
+
outFile: string;
|
|
405
|
+
};
|
|
406
|
+
desc: string;
|
|
407
|
+
start: string;
|
|
408
|
+
end: string;
|
|
409
|
+
details: {
|
|
410
|
+
banner: (envKey: string, envType: AppEnvironmentType, version1: number, version2: number) => string;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
check: {
|
|
414
|
+
cmdName: string;
|
|
415
|
+
option: {
|
|
416
|
+
majorVersion: string;
|
|
417
|
+
json: string;
|
|
418
|
+
outFile: string;
|
|
419
|
+
};
|
|
420
|
+
error: {
|
|
421
|
+
invalidMajorVersion: (property?: string) => string;
|
|
422
|
+
};
|
|
423
|
+
desc: string;
|
|
424
|
+
start: string;
|
|
425
|
+
end: string;
|
|
426
|
+
details: {
|
|
427
|
+
banner: (envKey: string, envType: AppEnvironmentType, version: number) => string;
|
|
428
|
+
prompt: {
|
|
429
|
+
options: {
|
|
430
|
+
banner: string;
|
|
431
|
+
choices: {
|
|
432
|
+
all: string;
|
|
433
|
+
manual: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
properties: {
|
|
437
|
+
banner: string;
|
|
438
|
+
info: string;
|
|
439
|
+
headers: string[];
|
|
440
|
+
descriptions: {
|
|
441
|
+
scopes: string;
|
|
442
|
+
egress: string;
|
|
443
|
+
policies: string;
|
|
444
|
+
functions: string;
|
|
445
|
+
modules: string;
|
|
446
|
+
remotes: string;
|
|
447
|
+
connectKeys: string;
|
|
448
|
+
license: string;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
writeToFile: (file: string) => string;
|
|
453
|
+
deploymentDate: (date: Date) => string;
|
|
454
|
+
scopes: (scopes: string[]) => string;
|
|
455
|
+
egress: (egresses: {
|
|
456
|
+
type: string;
|
|
457
|
+
addresses: string[];
|
|
458
|
+
}[]) => string;
|
|
459
|
+
securityPolicies: (policies: {
|
|
460
|
+
type: string;
|
|
461
|
+
policies: string[];
|
|
462
|
+
}[]) => string;
|
|
463
|
+
license: (requiresLicense: boolean) => string;
|
|
464
|
+
connectKeys: (keys: {
|
|
465
|
+
product: string;
|
|
466
|
+
key: string;
|
|
467
|
+
}[]) => string;
|
|
468
|
+
storage: (storages: {
|
|
469
|
+
type: string;
|
|
470
|
+
store: {
|
|
471
|
+
baseUrl: string;
|
|
472
|
+
locations: string[];
|
|
473
|
+
}[];
|
|
474
|
+
}[]) => string;
|
|
475
|
+
functions: (functions: {
|
|
476
|
+
key: string;
|
|
477
|
+
runtimeName: string;
|
|
478
|
+
regions: string[];
|
|
479
|
+
handler: string;
|
|
480
|
+
}[]) => string;
|
|
481
|
+
modules: (modules: {
|
|
482
|
+
type: string;
|
|
483
|
+
items: {
|
|
484
|
+
key: string;
|
|
485
|
+
properties: any;
|
|
486
|
+
}[];
|
|
487
|
+
}[]) => string;
|
|
488
|
+
remotes: (remotes: {
|
|
489
|
+
key: string;
|
|
490
|
+
baseUrl: string;
|
|
491
|
+
operations: string[];
|
|
492
|
+
}[]) => string;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
list: {
|
|
496
|
+
cmdName: string;
|
|
497
|
+
option: {
|
|
498
|
+
json: string;
|
|
499
|
+
outFile: string;
|
|
500
|
+
};
|
|
501
|
+
desc: string;
|
|
502
|
+
start: string;
|
|
503
|
+
end: string;
|
|
504
|
+
details: {
|
|
505
|
+
banner: (envKey: string, envType: AppEnvironmentType, versions: number) => string;
|
|
506
|
+
deploymentDate: (date: Date) => string;
|
|
507
|
+
egresses: (egresses: {
|
|
508
|
+
type: string;
|
|
509
|
+
count: number;
|
|
510
|
+
}[]) => string;
|
|
511
|
+
policies: (policies: {
|
|
512
|
+
type: string;
|
|
513
|
+
count: number;
|
|
514
|
+
}[]) => string;
|
|
515
|
+
modules: (modules: {
|
|
516
|
+
type: string;
|
|
517
|
+
count: number;
|
|
518
|
+
}[]) => string;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
391
522
|
deploy: {
|
|
392
523
|
cmd: {
|
|
393
524
|
desc: string;
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAK9D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,M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M;;;;;;+BAOf,MAAM;;;8BAIT,MAAM;8BACN,MAAM;;oCAGF,MAAM;;;;;qDAOa,MAAM;0CAGjB,MAAM,aAAa,OAAO;;iDAInB,MAAM;;oCAInB,MAAM,GAAG,IAAI;;;;;;;;uCAeV,MAAM;;;;;;;+BAQd,OAAO;;;;;;;;wBAQZ,MAAM,UAAU,MAAM,eAAe,MAAM,WAAW,OAAO;0BAI3D,MAAM,UAAU,MAAM,eAAe,MAAM;;;;;oBAYjD,MAAM;;;;;;;;;qCAYS,MAAM;;;;;;;;;oCAWL,MAAM;;;;;;;;;;oCAYN,MAAM,WAAW,MAAM;kCAMzB,MAAM,sBAAsB,MAAM,KAAG,MAAM;;sBAUvD,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;6BAE5D,MAAM,eAAe,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;gCAevF,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;wBAe7E,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;;;yBAKlE,MAAM,WAAW,MAAM;;;;qCAMb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;;6CAiBP,MAAM,mBAAmB,MAAM,EAAE;;;;CAUvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Text = exports.capitalise = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
|
+
const yaml_1 = tslib_1.__importDefault(require("yaml"));
|
|
6
7
|
const terminal_link_1 = tslib_1.__importDefault(require("terminal-link"));
|
|
7
8
|
const case_1 = require("case");
|
|
8
9
|
const log_symbols_1 = tslib_1.__importDefault(require("./log-symbols"));
|
|
@@ -21,8 +22,8 @@ const forge = (...args) => command('forge', ...args);
|
|
|
21
22
|
const autoSpaceSentences = (...sentences) => sentences
|
|
22
23
|
.filter((sentence) => sentence.length > 0)
|
|
23
24
|
.join(' ');
|
|
24
|
-
function itemList(items) {
|
|
25
|
-
return items.map((item) =>
|
|
25
|
+
function itemList(items, indent) {
|
|
26
|
+
return items.map((item) => `${indent ?? ' '}- ${item}`).join(`\n${indent ?? ''}`);
|
|
26
27
|
}
|
|
27
28
|
const fatalError = (message) => chalk_1.default.bold(chalk_1.default.red(message));
|
|
28
29
|
const keytarAccessErrorBase = (message) => `Keytar error detected: ${message}`;
|
|
@@ -475,6 +476,144 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
},
|
|
479
|
+
version: {
|
|
480
|
+
cmd: {
|
|
481
|
+
cmdName: 'version',
|
|
482
|
+
desc: 'app version information'
|
|
483
|
+
},
|
|
484
|
+
diff: {
|
|
485
|
+
cmdName: 'compare',
|
|
486
|
+
error: {
|
|
487
|
+
noVersionProvided: 'Please provide 2 versions to compare'
|
|
488
|
+
},
|
|
489
|
+
option: {
|
|
490
|
+
version1: '1st version to compare',
|
|
491
|
+
version2: '2nd version to compare',
|
|
492
|
+
outFile: 'specify a file to output the results'
|
|
493
|
+
},
|
|
494
|
+
desc: `returns the details of two versions of the app for comparison. Details include:\n${itemList([
|
|
495
|
+
'deployment date',
|
|
496
|
+
'egress',
|
|
497
|
+
'policies',
|
|
498
|
+
'scopes',
|
|
499
|
+
'connect keys',
|
|
500
|
+
'functions',
|
|
501
|
+
'remotes',
|
|
502
|
+
'modules',
|
|
503
|
+
'license'
|
|
504
|
+
])}`,
|
|
505
|
+
start: 'Comparing app versions...',
|
|
506
|
+
end: 'Comparing app versions...',
|
|
507
|
+
details: {
|
|
508
|
+
banner: (envKey, envType, version1, version2) => `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(version1)} and ${chalk_1.default.bold(version2)}] in [${exports.Text.env.displayEnvironment(envKey, envType)}] is shown below:`
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
check: {
|
|
512
|
+
cmdName: 'details',
|
|
513
|
+
option: {
|
|
514
|
+
majorVersion: 'specify a major version',
|
|
515
|
+
json: 'output results in JSON format',
|
|
516
|
+
outFile: 'specify a file to output the results'
|
|
517
|
+
},
|
|
518
|
+
error: {
|
|
519
|
+
invalidMajorVersion: (property) => `Invalid major version number${property ? ` for ${property}` : ''}`
|
|
520
|
+
},
|
|
521
|
+
desc: `returns the details of a specific version of the app. Details include:\n${itemList([
|
|
522
|
+
'egress',
|
|
523
|
+
'policies',
|
|
524
|
+
'scopes',
|
|
525
|
+
'connect keys',
|
|
526
|
+
'functions',
|
|
527
|
+
'remotes',
|
|
528
|
+
'modules',
|
|
529
|
+
'license'
|
|
530
|
+
])}`,
|
|
531
|
+
start: 'Getting app version details...',
|
|
532
|
+
end: 'Getting app version details...',
|
|
533
|
+
details: {
|
|
534
|
+
banner: (envKey, envType, version) => `${log_symbols_1.default.info} App [${version}] in [${exports.Text.env.displayEnvironment(envKey, envType)}] includes the following:`,
|
|
535
|
+
prompt: {
|
|
536
|
+
options: {
|
|
537
|
+
banner: 'Select option:',
|
|
538
|
+
choices: {
|
|
539
|
+
all: 'Show all properties',
|
|
540
|
+
manual: 'Manual selection'
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
properties: {
|
|
544
|
+
banner: 'Select properties that you are interested in:',
|
|
545
|
+
info: 'Note: Changes to the properties below may trigger major version updates in Atlassian systems.\n',
|
|
546
|
+
headers: ['Property', 'Description'],
|
|
547
|
+
descriptions: {
|
|
548
|
+
scopes: 'Product scopes that the app has access to',
|
|
549
|
+
egress: 'Network permissions',
|
|
550
|
+
policies: 'Content security policies (Custom UI)',
|
|
551
|
+
functions: 'Function modules used by the app',
|
|
552
|
+
modules: 'Modules used by the app (other than functions & remotes)',
|
|
553
|
+
remotes: 'Remote modules used by the app (Remote backend, Connect or External Auth)',
|
|
554
|
+
connectKeys: 'Connect on Forge',
|
|
555
|
+
license: 'Does the app require a license?'
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
writeToFile: (file) => `Writing to file: ${file}`,
|
|
560
|
+
deploymentDate: (date) => `${date.toISOString()}`,
|
|
561
|
+
scopes: (scopes) => `${itemList(scopes, '')}`,
|
|
562
|
+
egress: (egresses) => `${itemList(egresses.map((egress) => `[${chalk_1.default.cyan(egress.type)}]: \n ${itemList(egress.addresses, ' ')}`), '')}`,
|
|
563
|
+
securityPolicies: (policies) => `${itemList(policies.map((policy) => `[${chalk_1.default.cyan(policy.type)}]: ${policy.policies.join(', ')}`))}`,
|
|
564
|
+
license: (requiresLicense) => `${requiresLicense ? 'Yes' : 'No'}`,
|
|
565
|
+
connectKeys: (keys) => `${itemList(keys.map((key) => `[${chalk_1.default.cyan(key.product)}]: ${key.key}`), '')}`,
|
|
566
|
+
storage: (storages) => `${itemList(storages.map((storage) => `[${chalk_1.default.cyan(storage.type)}]: ${storage.store.map((store) => `${store.baseUrl} (${store.locations.join(', ')})`).join(', ')}`))}`,
|
|
567
|
+
functions: (functions) => `${itemList(functions.map((func) => `[${chalk_1.default.cyan(func.key)}]: is configured with the following properties: \n ${yaml_1.default.stringify({
|
|
568
|
+
runtime: `${func.runtimeName}`,
|
|
569
|
+
handler: `${func.handler}`
|
|
570
|
+
}, undefined, ' ').replaceAll('\n', '\n ')}`), '')}`,
|
|
571
|
+
modules: (modules) => {
|
|
572
|
+
return `${modules
|
|
573
|
+
.map((mod) => `${chalk_1.default.bold(mod.type)}\n${itemList(mod.items.map((item) => `[${chalk_1.default.cyan(item.key)}]: is configured with the following properties:\n ${yaml_1.default.stringify(item.properties, undefined, ' ').replaceAll('\n', '\n ')}`), '')}`)
|
|
574
|
+
.join('\n')}`;
|
|
575
|
+
},
|
|
576
|
+
remotes: (remotes) => `${itemList(remotes.map((remote) => `[${chalk_1.default.cyan(remote.key)}]: is configured with the following properties: \n ${yaml_1.default.stringify({
|
|
577
|
+
baseUrl: remote.baseUrl,
|
|
578
|
+
operations: remote.operations
|
|
579
|
+
}, undefined, ' ').replaceAll('\n', '\n ')}`), '')}`
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
list: {
|
|
583
|
+
cmdName: 'list',
|
|
584
|
+
option: {
|
|
585
|
+
json: 'output results in JSON format',
|
|
586
|
+
outFile: 'specify a file to output the results'
|
|
587
|
+
},
|
|
588
|
+
desc: `returns a summary of all major versions of the app. Summary includes:\n${itemList([
|
|
589
|
+
'version number',
|
|
590
|
+
'deployment date',
|
|
591
|
+
'egress',
|
|
592
|
+
'policies',
|
|
593
|
+
'scopes',
|
|
594
|
+
'connect keys',
|
|
595
|
+
'functions',
|
|
596
|
+
'remotes',
|
|
597
|
+
'modules',
|
|
598
|
+
'license'
|
|
599
|
+
])}`,
|
|
600
|
+
start: 'Getting app version list...',
|
|
601
|
+
end: 'Getting app version list...',
|
|
602
|
+
details: {
|
|
603
|
+
banner: (envKey, envType, versions) => `${log_symbols_1.default.info} Details of a total of [${versions} major versions] in [${exports.Text.env.displayEnvironment(envKey, envType)}] can be seen below:`,
|
|
604
|
+
deploymentDate: (date) => exports.Text.version.check.details.deploymentDate(date),
|
|
605
|
+
egresses: (egresses) => {
|
|
606
|
+
return egresses.map((egress) => `${egress.type}: ${egress.count}`).join('\n');
|
|
607
|
+
},
|
|
608
|
+
policies: (policies) => {
|
|
609
|
+
return policies.map((policy) => `${policy.type}: ${policy.count}`).join('\n');
|
|
610
|
+
},
|
|
611
|
+
modules: (modules) => {
|
|
612
|
+
return modules.map((module) => `${module.type}: ${module.count}`).join('\n');
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
},
|
|
478
617
|
deploy: {
|
|
479
618
|
cmd: {
|
|
480
619
|
desc: 'deploy your app to an environment',
|