vercel 31.2.0 → 31.2.2
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 +756 -431
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -218477,6 +218477,84 @@ function getTargetsForAlias(args, { alias } = {}) {
|
|
218477
218477
|
}
|
218478
218478
|
|
218479
218479
|
|
218480
|
+
/***/ }),
|
218481
|
+
|
218482
|
+
/***/ 22218:
|
218483
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
218484
|
+
|
218485
|
+
"use strict";
|
218486
|
+
|
218487
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218488
|
+
exports.bisectCommand = void 0;
|
218489
|
+
const pkg_name_1 = __webpack_require__(79000);
|
218490
|
+
exports.bisectCommand = {
|
218491
|
+
name: 'bisect',
|
218492
|
+
description: 'Bisect the current project interactively.',
|
218493
|
+
arguments: [],
|
218494
|
+
options: [
|
218495
|
+
{
|
218496
|
+
name: 'bad',
|
218497
|
+
description: 'Known bad URL',
|
218498
|
+
argument: 'URL',
|
218499
|
+
shorthand: 'b',
|
218500
|
+
type: 'string',
|
218501
|
+
deprecated: false,
|
218502
|
+
multi: false,
|
218503
|
+
},
|
218504
|
+
{
|
218505
|
+
name: 'good',
|
218506
|
+
description: 'Known good URL',
|
218507
|
+
argument: 'URL',
|
218508
|
+
shorthand: 'g',
|
218509
|
+
type: 'string',
|
218510
|
+
deprecated: false,
|
218511
|
+
multi: false,
|
218512
|
+
},
|
218513
|
+
{
|
218514
|
+
name: 'open',
|
218515
|
+
description: 'Automatically open each URL in the browser',
|
218516
|
+
argument: 'URL',
|
218517
|
+
shorthand: 'o',
|
218518
|
+
type: 'string',
|
218519
|
+
deprecated: false,
|
218520
|
+
multi: false,
|
218521
|
+
},
|
218522
|
+
{
|
218523
|
+
name: 'path',
|
218524
|
+
description: 'Subpath of the deployment URL to test',
|
218525
|
+
argument: 'URL',
|
218526
|
+
shorthand: 'p',
|
218527
|
+
type: 'string',
|
218528
|
+
deprecated: false,
|
218529
|
+
multi: false,
|
218530
|
+
},
|
218531
|
+
{
|
218532
|
+
name: 'run',
|
218533
|
+
description: 'Test script to run for each deployment',
|
218534
|
+
argument: 'URL',
|
218535
|
+
shorthand: 'r',
|
218536
|
+
type: 'string',
|
218537
|
+
deprecated: false,
|
218538
|
+
multi: false,
|
218539
|
+
},
|
218540
|
+
],
|
218541
|
+
examples: [
|
218542
|
+
{
|
218543
|
+
name: 'Bisect the current project interactively',
|
218544
|
+
value: `${(0, pkg_name_1.getPkgName)()} bisect`,
|
218545
|
+
},
|
218546
|
+
{
|
218547
|
+
name: 'Bisect with a known bad deployment',
|
218548
|
+
value: `${(0, pkg_name_1.getPkgName)()} bisect --bad example-310pce9i0.vercel.app`,
|
218549
|
+
},
|
218550
|
+
{
|
218551
|
+
name: 'Automated bisect with a run script',
|
218552
|
+
value: `${(0, pkg_name_1.getPkgName)()} bisect --run ./test.sh`,
|
218553
|
+
},
|
218554
|
+
],
|
218555
|
+
};
|
218556
|
+
|
218557
|
+
|
218480
218558
|
/***/ }),
|
218481
218559
|
|
218482
218560
|
/***/ 37327:
|
@@ -218497,44 +218575,13 @@ const url_1 = __webpack_require__(78835);
|
|
218497
218575
|
const box_1 = __importDefault(__webpack_require__(58587));
|
218498
218576
|
const format_date_1 = __importDefault(__webpack_require__(738));
|
218499
218577
|
const link_1 = __importDefault(__webpack_require__(39302));
|
218500
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
218501
218578
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
218502
|
-
const pkg_name_1 = __webpack_require__(79000);
|
218503
218579
|
const normalize_url_1 = __webpack_require__(63623);
|
218504
218580
|
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
218505
218581
|
const get_deployment_1 = __importDefault(__webpack_require__(84249));
|
218506
|
-
const
|
218507
|
-
const
|
218508
|
-
|
218509
|
-
${chalk_1.default.bold(`${logo_1.default} ${pkgName} bisect`)} [options]
|
218510
|
-
|
218511
|
-
${chalk_1.default.dim('Options:')}
|
218512
|
-
|
218513
|
-
-h, --help Output usage information
|
218514
|
-
-d, --debug Debug mode [off]
|
218515
|
-
--no-color No color mode [off]
|
218516
|
-
-b, --bad Known bad URL
|
218517
|
-
-g, --good Known good URL
|
218518
|
-
-o, --open Automatically open each URL in the browser
|
218519
|
-
-p, --path Subpath of the deployment URL to test
|
218520
|
-
-r, --run Test script to run for each deployment
|
218521
|
-
|
218522
|
-
${chalk_1.default.dim('Examples:')}
|
218523
|
-
|
218524
|
-
${chalk_1.default.gray('–')} Bisect the current project interactively
|
218525
|
-
|
218526
|
-
${chalk_1.default.cyan(`$ ${pkgName} bisect`)}
|
218527
|
-
|
218528
|
-
${chalk_1.default.gray('–')} Bisect with a known bad deployment
|
218529
|
-
|
218530
|
-
${chalk_1.default.cyan(`$ ${pkgName} bisect --bad example-310pce9i0.vercel.app`)}
|
218531
|
-
|
218532
|
-
${chalk_1.default.gray('–')} Automated bisect with a run script
|
218533
|
-
|
218534
|
-
${chalk_1.default.cyan(`$ ${pkgName} bisect --run ./test.sh`)}
|
218535
|
-
`);
|
218536
|
-
};
|
218537
|
-
async function main(client) {
|
218582
|
+
const help_1 = __webpack_require__(58219);
|
218583
|
+
const command_1 = __webpack_require__(22218);
|
218584
|
+
async function bisect(client) {
|
218538
218585
|
const { output } = client;
|
218539
218586
|
const scope = await (0, get_scope_1.default)(client);
|
218540
218587
|
const { contextName } = scope;
|
@@ -218551,7 +218598,7 @@ async function main(client) {
|
|
218551
218598
|
'-r': '--run',
|
218552
218599
|
});
|
218553
218600
|
if (argv['--help']) {
|
218554
|
-
help();
|
218601
|
+
output.print((0, help_1.help)(command_1.bisectCommand, { columns: client.stderr.columns }));
|
218555
218602
|
return 2;
|
218556
218603
|
}
|
218557
218604
|
let bad = argv['--bad'] ||
|
@@ -218761,7 +218808,7 @@ async function main(client) {
|
|
218761
218808
|
output.print('\n');
|
218762
218809
|
return 0;
|
218763
218810
|
}
|
218764
|
-
exports.default =
|
218811
|
+
exports.default = bisect;
|
218765
218812
|
function getCommit(deployment) {
|
218766
218813
|
const sha = deployment.meta?.githubCommitSha ||
|
218767
218814
|
deployment.meta?.gitlabCommitSha ||
|
@@ -218793,7 +218840,61 @@ async function prompt(client, message) {
|
|
218793
218840
|
|
218794
218841
|
/***/ }),
|
218795
218842
|
|
218796
|
-
/***/
|
218843
|
+
/***/ 29216:
|
218844
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
218845
|
+
|
218846
|
+
"use strict";
|
218847
|
+
|
218848
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218849
|
+
exports.buildCommand = void 0;
|
218850
|
+
const pkg_name_1 = __webpack_require__(79000);
|
218851
|
+
exports.buildCommand = {
|
218852
|
+
name: 'build',
|
218853
|
+
description: 'Build the project.',
|
218854
|
+
arguments: [],
|
218855
|
+
options: [
|
218856
|
+
{
|
218857
|
+
name: 'prod',
|
218858
|
+
description: 'Build a production deployment',
|
218859
|
+
shorthand: null,
|
218860
|
+
type: 'string',
|
218861
|
+
deprecated: false,
|
218862
|
+
multi: false,
|
218863
|
+
},
|
218864
|
+
{
|
218865
|
+
name: 'output',
|
218866
|
+
description: 'Directory where built assets should be written to',
|
218867
|
+
shorthand: null,
|
218868
|
+
argument: 'PATH',
|
218869
|
+
type: 'string',
|
218870
|
+
deprecated: false,
|
218871
|
+
multi: false,
|
218872
|
+
},
|
218873
|
+
{
|
218874
|
+
name: 'yes',
|
218875
|
+
description: 'Skip the confirmation prompt about pulling environment variables and project settings when not found locally',
|
218876
|
+
shorthand: 'y',
|
218877
|
+
type: 'boolean',
|
218878
|
+
deprecated: false,
|
218879
|
+
multi: false,
|
218880
|
+
},
|
218881
|
+
],
|
218882
|
+
examples: [
|
218883
|
+
{
|
218884
|
+
name: 'Build the project',
|
218885
|
+
value: `${(0, pkg_name_1.getPkgName)()} build`,
|
218886
|
+
},
|
218887
|
+
{
|
218888
|
+
name: 'Build the project in a specific directory',
|
218889
|
+
value: `${(0, pkg_name_1.getPkgName)()} build --cwd ./path-to-project`,
|
218890
|
+
},
|
218891
|
+
],
|
218892
|
+
};
|
218893
|
+
|
218894
|
+
|
218895
|
+
/***/ }),
|
218896
|
+
|
218897
|
+
/***/ 12559:
|
218797
218898
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
218798
218899
|
|
218799
218900
|
"use strict";
|
@@ -218836,7 +218937,7 @@ const build_utils_1 = __webpack_require__(63445);
|
|
218836
218937
|
const fs_detectors_1 = __webpack_require__(88995);
|
218837
218938
|
const routing_utils_1 = __webpack_require__(679);
|
218838
218939
|
const client_1 = __webpack_require__(40521);
|
218839
|
-
const pull_1 = __importDefault(__webpack_require__(
|
218940
|
+
const pull_1 = __importDefault(__webpack_require__(46230));
|
218840
218941
|
const get_files_1 = __webpack_require__(20802);
|
218841
218942
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
218842
218943
|
const cmd_1 = __importDefault(__webpack_require__(62422));
|
@@ -218856,30 +218957,8 @@ const sort_builders_1 = __webpack_require__(84701);
|
|
218856
218957
|
const error_1 = __webpack_require__(4400);
|
218857
218958
|
const validate_config_1 = __webpack_require__(21144);
|
218858
218959
|
const monorepo_1 = __webpack_require__(21481);
|
218859
|
-
const
|
218860
|
-
|
218861
|
-
${chalk_1.default.bold(`${cli.logo} ${cli.name} build`)}
|
218862
|
-
|
218863
|
-
${chalk_1.default.dim('Options:')}
|
218864
|
-
|
218865
|
-
-h, --help Output usage information
|
218866
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
218867
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
218868
|
-
--cwd [path] The current working directory
|
218869
|
-
--output [path] Directory where built assets should be written to
|
218870
|
-
--prod Build a production deployment
|
218871
|
-
-d, --debug Debug mode [off]
|
218872
|
-
--no-color No color mode [off]
|
218873
|
-
-y, --yes Skip the confirmation prompt about pulling environment variables and project settings when not found locally
|
218874
|
-
|
218875
|
-
${chalk_1.default.dim('Examples:')}
|
218876
|
-
|
218877
|
-
${chalk_1.default.gray('-')} Build the project
|
218878
|
-
|
218879
|
-
${chalk_1.default.cyan(`$ ${cli.name} build`)}
|
218880
|
-
${chalk_1.default.cyan(`$ ${cli.name} build --cwd ./path-to-project`)}
|
218881
|
-
`);
|
218882
|
-
};
|
218960
|
+
const help_1 = __webpack_require__(58219);
|
218961
|
+
const command_1 = __webpack_require__(29216);
|
218883
218962
|
async function main(client) {
|
218884
218963
|
let { cwd } = client;
|
218885
218964
|
const { output } = client;
|
@@ -218900,7 +218979,7 @@ async function main(client) {
|
|
218900
218979
|
'-y': '--yes',
|
218901
218980
|
});
|
218902
218981
|
if (argv['--help']) {
|
218903
|
-
help();
|
218982
|
+
output.print((0, help_1.help)(command_1.buildCommand, { columns: client.stderr.columns }));
|
218904
218983
|
return 2;
|
218905
218984
|
}
|
218906
218985
|
// Build `target` influences which environment variables will be used
|
@@ -223419,7 +223498,7 @@ function lineToString(line) {
|
|
223419
223498
|
}
|
223420
223499
|
exports.lineToString = lineToString;
|
223421
223500
|
function outputArrayToString(outputArray) {
|
223422
|
-
return outputArray.join(NEWLINE);
|
223501
|
+
return outputArray.filter(line => line !== null).join(NEWLINE);
|
223423
223502
|
}
|
223424
223503
|
exports.outputArrayToString = outputArrayToString;
|
223425
223504
|
/**
|
@@ -223428,7 +223507,12 @@ exports.outputArrayToString = outputArrayToString;
|
|
223428
223507
|
* @returns
|
223429
223508
|
*/
|
223430
223509
|
function buildCommandSynopsisLine(command) {
|
223431
|
-
const line = [
|
223510
|
+
const line = [
|
223511
|
+
INDENT,
|
223512
|
+
constants_1.LOGO,
|
223513
|
+
chalk_1.default.bold(constants_1.NAME),
|
223514
|
+
chalk_1.default.bold(command.name),
|
223515
|
+
];
|
223432
223516
|
if (command.arguments.length > 0) {
|
223433
223517
|
for (const argument of command.arguments) {
|
223434
223518
|
line.push(argument.required ? argument.name : `[${argument.name}]`);
|
@@ -223437,6 +223521,7 @@ function buildCommandSynopsisLine(command) {
|
|
223437
223521
|
if (command.options.length > 0) {
|
223438
223522
|
line.push('[options]');
|
223439
223523
|
}
|
223524
|
+
line.push(NEWLINE);
|
223440
223525
|
return lineToString(line);
|
223441
223526
|
}
|
223442
223527
|
exports.buildCommandSynopsisLine = buildCommandSynopsisLine;
|
@@ -223444,10 +223529,10 @@ function buildCommandOptionLines(commandOptions, options, sectionTitle) {
|
|
223444
223529
|
// Filter out deprecated and intentionally undocumented options
|
223445
223530
|
commandOptions = commandOptions.filter(option => !option.deprecated && option.description !== undefined);
|
223446
223531
|
if (commandOptions.length === 0) {
|
223447
|
-
return
|
223532
|
+
return null;
|
223448
223533
|
}
|
223449
223534
|
// Initialize output array with header and empty line
|
223450
|
-
const outputArray = [`${chalk_1.default.dim(sectionTitle)}:`, ''];
|
223535
|
+
const outputArray = [`${INDENT}${chalk_1.default.dim(sectionTitle)}:`, ''];
|
223451
223536
|
// Start building option lines
|
223452
223537
|
const optionLines = [];
|
223453
223538
|
// Sort command options alphabetically
|
@@ -223456,7 +223541,7 @@ function buildCommandOptionLines(commandOptions, options, sectionTitle) {
|
|
223456
223541
|
let maxLineStartLength = 0;
|
223457
223542
|
// Iterate over options and create the "start" of each option (e.g. ` -b, --build-env <key=value>`)
|
223458
223543
|
for (const option of commandOptions) {
|
223459
|
-
const startLine = [INDENT];
|
223544
|
+
const startLine = [INDENT, INDENT, INDENT];
|
223460
223545
|
if (option.shorthand) {
|
223461
223546
|
startLine.push(`-${option.shorthand},`);
|
223462
223547
|
}
|
@@ -223518,12 +223603,11 @@ function buildCommandOptionLines(commandOptions, options, sectionTitle) {
|
|
223518
223603
|
outputArray.push(lineToString(line));
|
223519
223604
|
}
|
223520
223605
|
}
|
223521
|
-
|
223522
|
-
return outputArrayToString(outputArray);
|
223606
|
+
return `${outputArrayToString(outputArray)}${NEWLINE}`;
|
223523
223607
|
}
|
223524
223608
|
exports.buildCommandOptionLines = buildCommandOptionLines;
|
223525
223609
|
function buildCommandExampleLines(command) {
|
223526
|
-
const outputArray = [chalk_1.default.dim(
|
223610
|
+
const outputArray = [`${INDENT}${chalk_1.default.dim('Examples:')}`, ''];
|
223527
223611
|
for (const example of command.examples) {
|
223528
223612
|
const nameLine = [INDENT];
|
223529
223613
|
nameLine.push(chalk_1.default.gray('-'));
|
@@ -223543,21 +223627,20 @@ function buildCommandExampleLines(command) {
|
|
223543
223627
|
}
|
223544
223628
|
outputArray.push('');
|
223545
223629
|
}
|
223546
|
-
// delete the last newline added after examples iteration
|
223547
|
-
outputArray.splice(-1);
|
223548
223630
|
return outputArrayToString(outputArray);
|
223549
223631
|
}
|
223550
223632
|
exports.buildCommandExampleLines = buildCommandExampleLines;
|
223633
|
+
function buildDescriptionLine(command) {
|
223634
|
+
const line = [INDENT, command.description, NEWLINE];
|
223635
|
+
return lineToString(line);
|
223636
|
+
}
|
223551
223637
|
function buildHelpOutput(command, options) {
|
223552
223638
|
const outputArray = [
|
223553
|
-
buildCommandSynopsisLine(command),
|
223554
|
-
'',
|
223555
|
-
command.description,
|
223556
223639
|
'',
|
223640
|
+
buildCommandSynopsisLine(command),
|
223641
|
+
buildDescriptionLine(command),
|
223557
223642
|
buildCommandOptionLines(command.options, options, 'Options'),
|
223558
|
-
'',
|
223559
223643
|
buildCommandOptionLines(globalCommandOptions, options, 'Global Options'),
|
223560
|
-
'',
|
223561
223644
|
buildCommandExampleLines(command),
|
223562
223645
|
'',
|
223563
223646
|
];
|
@@ -223873,7 +223956,66 @@ async function guess(client, exampleList, name) {
|
|
223873
223956
|
|
223874
223957
|
/***/ }),
|
223875
223958
|
|
223876
|
-
/***/
|
223959
|
+
/***/ 73603:
|
223960
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
223961
|
+
|
223962
|
+
"use strict";
|
223963
|
+
|
223964
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
223965
|
+
exports.inspectCommand = void 0;
|
223966
|
+
const pkg_name_1 = __webpack_require__(79000);
|
223967
|
+
exports.inspectCommand = {
|
223968
|
+
name: 'inspect',
|
223969
|
+
description: 'Show information about a deployment.',
|
223970
|
+
arguments: [
|
223971
|
+
{
|
223972
|
+
name: 'url',
|
223973
|
+
required: true,
|
223974
|
+
},
|
223975
|
+
],
|
223976
|
+
options: [
|
223977
|
+
{
|
223978
|
+
name: 'timeout',
|
223979
|
+
description: 'Time to wait for deployment completion [3m]',
|
223980
|
+
argument: 'TIME',
|
223981
|
+
shorthand: null,
|
223982
|
+
type: 'string',
|
223983
|
+
deprecated: false,
|
223984
|
+
multi: false,
|
223985
|
+
},
|
223986
|
+
{
|
223987
|
+
name: 'wait',
|
223988
|
+
description: 'Blocks until deployment completes',
|
223989
|
+
shorthand: null,
|
223990
|
+
type: 'string',
|
223991
|
+
deprecated: false,
|
223992
|
+
multi: false,
|
223993
|
+
},
|
223994
|
+
],
|
223995
|
+
examples: [
|
223996
|
+
{
|
223997
|
+
name: 'Get information about a deployment by its unique URL',
|
223998
|
+
value: `${(0, pkg_name_1.getPkgName)()} inspect my-deployment-ji2fjij2.vercel.app`,
|
223999
|
+
},
|
224000
|
+
{
|
224001
|
+
name: 'Get information about the deployment an alias points to',
|
224002
|
+
value: `${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app`,
|
224003
|
+
},
|
224004
|
+
{
|
224005
|
+
name: 'Get information about a deployment by piping in the URL',
|
224006
|
+
value: `echo my-deployment.vercel.app | ${(0, pkg_name_1.getPkgName)()} inspect`,
|
224007
|
+
},
|
224008
|
+
{
|
224009
|
+
name: 'Wait up to 90 seconds for deployment to complete',
|
224010
|
+
value: `${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app --wait --timeout 90s`,
|
224011
|
+
},
|
224012
|
+
],
|
224013
|
+
};
|
224014
|
+
|
224015
|
+
|
224016
|
+
/***/ }),
|
224017
|
+
|
224018
|
+
/***/ 16088:
|
223877
224019
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
223878
224020
|
|
223879
224021
|
"use strict";
|
@@ -223887,7 +224029,6 @@ const get_args_1 = __importDefault(__webpack_require__(2505));
|
|
223887
224029
|
const builds_1 = __importDefault(__webpack_require__(41966));
|
223888
224030
|
const routes_1 = __importDefault(__webpack_require__(38317));
|
223889
224031
|
const indent_1 = __importDefault(__webpack_require__(57676));
|
223890
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
223891
224032
|
const elapsed_1 = __importDefault(__webpack_require__(14099));
|
223892
224033
|
const error_1 = __webpack_require__(4400);
|
223893
224034
|
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
@@ -223900,42 +224041,10 @@ const read_standard_input_1 = __importDefault(__webpack_require__(57317));
|
|
223900
224041
|
const sleep_1 = __importDefault(__webpack_require__(89507));
|
223901
224042
|
const ms_1 = __importDefault(__webpack_require__(21378));
|
223902
224043
|
const is_deploying_1 = __webpack_require__(25307);
|
223903
|
-
const
|
223904
|
-
|
223905
|
-
|
223906
|
-
|
223907
|
-
${chalk_1.default.dim('Options:')}
|
223908
|
-
|
223909
|
-
-h, --help Output usage information
|
223910
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
223911
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
223912
|
-
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
223913
|
-
-d, --debug Debug mode [off]
|
223914
|
-
--no-color No color mode [off]
|
223915
|
-
-S, --scope Set a custom scope
|
223916
|
-
--timeout=${chalk_1.default.bold.underline('TIME')} Time to wait for deployment completion [3m]
|
223917
|
-
--wait Blocks until deployment completes
|
223918
|
-
|
223919
|
-
${chalk_1.default.dim('Examples:')}
|
223920
|
-
|
223921
|
-
${chalk_1.default.gray('–')} Get information about a deployment by its unique URL
|
223922
|
-
|
223923
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment-ji2fjij2.vercel.app`)}
|
223924
|
-
|
223925
|
-
${chalk_1.default.gray('-')} Get information about the deployment an alias points to
|
223926
|
-
|
223927
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app`)}
|
223928
|
-
|
223929
|
-
${chalk_1.default.gray('-')} Get information about a deployment by piping in the URL
|
223930
|
-
|
223931
|
-
${chalk_1.default.cyan(`$ echo my-deployment.vercel.app | ${(0, pkg_name_1.getPkgName)()} inspect`)}
|
223932
|
-
|
223933
|
-
${chalk_1.default.gray('-')} Wait up to 90 seconds for deployment to complete
|
223934
|
-
|
223935
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app --wait --timeout 90s`)}
|
223936
|
-
`);
|
223937
|
-
};
|
223938
|
-
async function main(client) {
|
224044
|
+
const help_1 = __webpack_require__(58219);
|
224045
|
+
const command_1 = __webpack_require__(73603);
|
224046
|
+
async function inspect(client) {
|
224047
|
+
const { output } = client;
|
223939
224048
|
let argv;
|
223940
224049
|
try {
|
223941
224050
|
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
@@ -223948,7 +224057,7 @@ async function main(client) {
|
|
223948
224057
|
return 1;
|
223949
224058
|
}
|
223950
224059
|
if (argv['--help']) {
|
223951
|
-
help();
|
224060
|
+
output.print((0, help_1.help)(command_1.inspectCommand, { columns: client.stderr.columns }));
|
223952
224061
|
return 2;
|
223953
224062
|
}
|
223954
224063
|
const { print, log, error } = client.output;
|
@@ -223964,7 +224073,7 @@ async function main(client) {
|
|
223964
224073
|
}
|
223965
224074
|
if (!deploymentIdOrHost) {
|
223966
224075
|
error(`${(0, pkg_name_1.getCommandName)('inspect <url>')} expects exactly one argument`);
|
223967
|
-
help();
|
224076
|
+
output.print((0, help_1.help)(command_1.inspectCommand, { columns: client.stderr.columns }));
|
223968
224077
|
return 1;
|
223969
224078
|
}
|
223970
224079
|
// validate the timeout
|
@@ -224045,7 +224154,7 @@ async function main(client) {
|
|
224045
224154
|
}
|
224046
224155
|
return 0;
|
224047
224156
|
}
|
224048
|
-
exports.default =
|
224157
|
+
exports.default = inspect;
|
224049
224158
|
function stateString(s) {
|
224050
224159
|
const CIRCLE = '● ';
|
224051
224160
|
const sTitle = s && (0, title_1.default)(s);
|
@@ -224067,6 +224176,68 @@ function stateString(s) {
|
|
224067
224176
|
}
|
224068
224177
|
|
224069
224178
|
|
224179
|
+
/***/ }),
|
224180
|
+
|
224181
|
+
/***/ 72067:
|
224182
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
224183
|
+
|
224184
|
+
"use strict";
|
224185
|
+
|
224186
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224187
|
+
exports.linkCommand = void 0;
|
224188
|
+
const pkg_name_1 = __webpack_require__(79000);
|
224189
|
+
exports.linkCommand = {
|
224190
|
+
name: 'link',
|
224191
|
+
description: 'Link a local directory to a Vercel Project.',
|
224192
|
+
arguments: [],
|
224193
|
+
options: [
|
224194
|
+
{
|
224195
|
+
name: 'repo',
|
224196
|
+
description: 'Link multiple projects based on Git repository (alpha)',
|
224197
|
+
shorthand: 'r',
|
224198
|
+
type: 'string',
|
224199
|
+
deprecated: false,
|
224200
|
+
multi: false,
|
224201
|
+
},
|
224202
|
+
{
|
224203
|
+
name: 'project',
|
224204
|
+
description: 'Specify a project name',
|
224205
|
+
shorthand: 'p',
|
224206
|
+
argument: 'NAME',
|
224207
|
+
type: 'string',
|
224208
|
+
deprecated: false,
|
224209
|
+
multi: false,
|
224210
|
+
},
|
224211
|
+
{
|
224212
|
+
name: 'yes',
|
224213
|
+
description: 'Skip questions when setting up new project using default scope and settings',
|
224214
|
+
shorthand: 'y',
|
224215
|
+
type: 'boolean',
|
224216
|
+
deprecated: false,
|
224217
|
+
multi: false,
|
224218
|
+
},
|
224219
|
+
],
|
224220
|
+
examples: [
|
224221
|
+
{
|
224222
|
+
name: 'Link current directory to a Vercel Project',
|
224223
|
+
value: `${(0, pkg_name_1.getPkgName)()} link`,
|
224224
|
+
},
|
224225
|
+
{
|
224226
|
+
name: 'Link current directory with default options and skip questions',
|
224227
|
+
value: `${(0, pkg_name_1.getPkgName)()} link --yes`,
|
224228
|
+
},
|
224229
|
+
{
|
224230
|
+
name: 'Link a specific directory to a Vercel Project',
|
224231
|
+
value: `${(0, pkg_name_1.getPkgName)()} link --cwd /path/to/project`,
|
224232
|
+
},
|
224233
|
+
{
|
224234
|
+
name: 'Link to the current Git repository, allowing for multiple Vercel Projects to be linked simultaneously (useful for monorepos)',
|
224235
|
+
value: `${(0, pkg_name_1.getPkgName)()} link --repo`,
|
224236
|
+
},
|
224237
|
+
],
|
224238
|
+
};
|
224239
|
+
|
224240
|
+
|
224070
224241
|
/***/ }),
|
224071
224242
|
|
224072
224243
|
/***/ 82346:
|
@@ -224078,50 +224249,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
224078
224249
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
224079
224250
|
};
|
224080
224251
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224081
|
-
const chalk_1 = __importDefault(__webpack_require__(90877));
|
224082
224252
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
224083
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
224084
224253
|
const cmd_1 = __importDefault(__webpack_require__(62422));
|
224085
|
-
const pkg_name_1 = __webpack_require__(79000);
|
224086
224254
|
const ensure_link_1 = __webpack_require__(65382);
|
224087
224255
|
const repo_1 = __webpack_require__(18726);
|
224088
|
-
const
|
224089
|
-
|
224090
|
-
|
224091
|
-
|
224092
|
-
${chalk_1.default.dim('Options:')}
|
224093
|
-
|
224094
|
-
-h, --help Output usage information
|
224095
|
-
-r, --repo Link multiple projects based on Git repository (alpha)
|
224096
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
224097
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
224098
|
-
-d, --debug Debug mode [off]
|
224099
|
-
--no-color No color mode [off]
|
224100
|
-
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
224101
|
-
-p ${chalk_1.default.bold.underline('NAME')}, --project=${chalk_1.default.bold.underline('NAME')} Project name
|
224102
|
-
-y, --yes Skip questions when setting up new project using default scope and settings
|
224103
|
-
|
224104
|
-
${chalk_1.default.dim('Examples:')}
|
224105
|
-
|
224106
|
-
${chalk_1.default.gray('–')} Link current directory to a Vercel Project
|
224107
|
-
|
224108
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link`)}
|
224109
|
-
|
224110
|
-
${chalk_1.default.gray('–')} Link current directory with default options and skip questions
|
224111
|
-
|
224112
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link --yes`)}
|
224113
|
-
|
224114
|
-
${chalk_1.default.gray('–')} Link a specific directory to a Vercel Project
|
224115
|
-
|
224116
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link --cwd /path/to/project`)}
|
224117
|
-
|
224118
|
-
${chalk_1.default.gray('–')} ${chalk_1.default.yellow('(alpha)')} Link to the current Git repository, allowing for multiple
|
224119
|
-
Vercel Projects to be linked simultaneously (useful for monorepos)
|
224120
|
-
|
224121
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link --repo`)}
|
224122
|
-
`);
|
224123
|
-
};
|
224124
|
-
async function main(client) {
|
224256
|
+
const help_1 = __webpack_require__(58219);
|
224257
|
+
const command_1 = __webpack_require__(72067);
|
224258
|
+
async function link(client) {
|
224125
224259
|
const argv = (0, get_args_1.default)(client.argv.slice(2), {
|
224126
224260
|
'--yes': Boolean,
|
224127
224261
|
'-y': '--yes',
|
@@ -224134,7 +224268,7 @@ async function main(client) {
|
|
224134
224268
|
'-c': '--confirm',
|
224135
224269
|
});
|
224136
224270
|
if (argv['--help']) {
|
224137
|
-
help();
|
224271
|
+
client.output.print((0, help_1.help)(command_1.linkCommand, { columns: client.stderr.columns }));
|
224138
224272
|
return 2;
|
224139
224273
|
}
|
224140
224274
|
if ('--confirm' in argv) {
|
@@ -224166,12 +224300,81 @@ async function main(client) {
|
|
224166
224300
|
}
|
224167
224301
|
return 0;
|
224168
224302
|
}
|
224169
|
-
exports.default =
|
224303
|
+
exports.default = link;
|
224170
224304
|
|
224171
224305
|
|
224172
224306
|
/***/ }),
|
224173
224307
|
|
224174
|
-
/***/
|
224308
|
+
/***/ 38695:
|
224309
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
224310
|
+
|
224311
|
+
"use strict";
|
224312
|
+
|
224313
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224314
|
+
exports.listCommand = void 0;
|
224315
|
+
const pkg_name_1 = __webpack_require__(79000);
|
224316
|
+
exports.listCommand = {
|
224317
|
+
name: 'list',
|
224318
|
+
description: 'List app deployments for an app.',
|
224319
|
+
arguments: [
|
224320
|
+
{
|
224321
|
+
name: 'app',
|
224322
|
+
required: false,
|
224323
|
+
},
|
224324
|
+
],
|
224325
|
+
options: [
|
224326
|
+
{
|
224327
|
+
name: 'meta',
|
224328
|
+
description: 'Filter deployments by metadata (e.g.: `-m KEY=value`). Can appear many times.',
|
224329
|
+
argument: 'KEY=value',
|
224330
|
+
shorthand: null,
|
224331
|
+
type: 'string',
|
224332
|
+
deprecated: false,
|
224333
|
+
multi: true,
|
224334
|
+
},
|
224335
|
+
{
|
224336
|
+
name: 'environment',
|
224337
|
+
description: '',
|
224338
|
+
argument: 'production|preview',
|
224339
|
+
shorthand: null,
|
224340
|
+
type: 'string',
|
224341
|
+
deprecated: false,
|
224342
|
+
multi: false,
|
224343
|
+
},
|
224344
|
+
{
|
224345
|
+
name: 'next',
|
224346
|
+
description: 'Show next page of results',
|
224347
|
+
argument: 'MS',
|
224348
|
+
shorthand: 'n',
|
224349
|
+
type: 'string',
|
224350
|
+
deprecated: false,
|
224351
|
+
multi: false,
|
224352
|
+
},
|
224353
|
+
],
|
224354
|
+
examples: [
|
224355
|
+
{
|
224356
|
+
name: 'List all deployments for the currently linked project',
|
224357
|
+
value: `${(0, pkg_name_1.getPkgName)()} list`,
|
224358
|
+
},
|
224359
|
+
{
|
224360
|
+
name: 'List all deployments for the project `my-app` in the team of the currently linked project',
|
224361
|
+
value: `${(0, pkg_name_1.getPkgName)()} list my-app`,
|
224362
|
+
},
|
224363
|
+
{
|
224364
|
+
name: 'Filter deployments by metadata',
|
224365
|
+
value: `${(0, pkg_name_1.getPkgName)()} list -m key1=value1 -m key2=value2`,
|
224366
|
+
},
|
224367
|
+
{
|
224368
|
+
name: 'Paginate deployments for a project, where `1584722256178` is the time in milliseconds since the UNIX epoch',
|
224369
|
+
value: `${(0, pkg_name_1.getPkgName)()} list my-app --next 1584722256178`,
|
224370
|
+
},
|
224371
|
+
],
|
224372
|
+
};
|
224373
|
+
|
224374
|
+
|
224375
|
+
/***/ }),
|
224376
|
+
|
224377
|
+
/***/ 41509:
|
224175
224378
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
224176
224379
|
|
224177
224380
|
"use strict";
|
@@ -224188,7 +224391,6 @@ const title_1 = __importDefault(__webpack_require__(16650));
|
|
224188
224391
|
const util_1 = __importDefault(__webpack_require__(4058));
|
224189
224392
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
224190
224393
|
const error_1 = __webpack_require__(4400);
|
224191
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
224192
224394
|
const elapsed_1 = __importDefault(__webpack_require__(14099));
|
224193
224395
|
const strlen_1 = __importDefault(__webpack_require__(97330));
|
224194
224396
|
const to_host_1 = __importDefault(__webpack_require__(47914));
|
@@ -224201,44 +224403,9 @@ const ensure_link_1 = __webpack_require__(65382);
|
|
224201
224403
|
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
224202
224404
|
const errors_ts_1 = __webpack_require__(39240);
|
224203
224405
|
const error_utils_1 = __webpack_require__(39799);
|
224204
|
-
const
|
224205
|
-
|
224206
|
-
|
224207
|
-
|
224208
|
-
${chalk_1.default.dim('Options:')}
|
224209
|
-
|
224210
|
-
-h, --help Output usage information
|
224211
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
224212
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
224213
|
-
-d, --debug Debug mode [off]
|
224214
|
-
--no-color No color mode [off]
|
224215
|
-
-y, --yes Skip questions when setting up new project using default scope and settings
|
224216
|
-
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
224217
|
-
-S, --scope Set a custom scope
|
224218
|
-
-m, --meta Filter deployments by metadata (e.g.: ${chalk_1.default.dim('`-m KEY=value`')}). Can appear many times.
|
224219
|
-
--environment=${chalk_1.default.bold.underline('ENVIRONMENT')} Filter by environment (production|preview)
|
224220
|
-
-N, --next Show next page of results
|
224221
|
-
|
224222
|
-
${chalk_1.default.dim('Examples:')}
|
224223
|
-
|
224224
|
-
${chalk_1.default.gray('–')} List all deployments for the currently linked project
|
224225
|
-
|
224226
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls`)}
|
224227
|
-
|
224228
|
-
${chalk_1.default.gray('–')} List all deployments for the project ${chalk_1.default.dim('`my-app`')} in the team of the currently linked project
|
224229
|
-
|
224230
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls my-app`)}
|
224231
|
-
|
224232
|
-
${chalk_1.default.gray('–')} Filter deployments by metadata
|
224233
|
-
|
224234
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls -m key1=value1 -m key2=value2`)}
|
224235
|
-
|
224236
|
-
${chalk_1.default.gray('–')} Paginate deployments for a project, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
|
224237
|
-
|
224238
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls my-app --next 1584722256178`)}
|
224239
|
-
`);
|
224240
|
-
};
|
224241
|
-
async function main(client) {
|
224406
|
+
const help_1 = __webpack_require__(58219);
|
224407
|
+
const command_1 = __webpack_require__(38695);
|
224408
|
+
async function list(client) {
|
224242
224409
|
let argv;
|
224243
224410
|
try {
|
224244
224411
|
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
@@ -224270,7 +224437,7 @@ async function main(client) {
|
|
224270
224437
|
return 1;
|
224271
224438
|
}
|
224272
224439
|
if (argv['--help']) {
|
224273
|
-
help();
|
224440
|
+
output.print((0, help_1.help)(command_1.listCommand, { columns: client.stderr.columns }));
|
224274
224441
|
return 2;
|
224275
224442
|
}
|
224276
224443
|
const autoConfirm = !!argv['--yes'];
|
@@ -224444,7 +224611,7 @@ async function main(client) {
|
|
224444
224611
|
log(`To display the next page, run ${(0, pkg_name_1.getCommandName)(`ls${app ? ' ' + app : ''}${flags} --next ${pagination.next}`)}`);
|
224445
224612
|
}
|
224446
224613
|
}
|
224447
|
-
exports.default =
|
224614
|
+
exports.default = list;
|
224448
224615
|
function getDeploymentDuration(dep) {
|
224449
224616
|
if (!dep || !dep.ready || !dep.buildingAt) {
|
224450
224617
|
return '?';
|
@@ -224503,7 +224670,65 @@ function filterUniqueApps() {
|
|
224503
224670
|
|
224504
224671
|
/***/ }),
|
224505
224672
|
|
224506
|
-
/***/
|
224673
|
+
/***/ 23496:
|
224674
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
224675
|
+
|
224676
|
+
"use strict";
|
224677
|
+
|
224678
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224679
|
+
exports.loginCommand = void 0;
|
224680
|
+
const pkg_name_1 = __webpack_require__(79000);
|
224681
|
+
exports.loginCommand = {
|
224682
|
+
name: 'login',
|
224683
|
+
description: 'Authenticate using your email or team id.',
|
224684
|
+
arguments: [
|
224685
|
+
{
|
224686
|
+
name: 'email or team id',
|
224687
|
+
required: false,
|
224688
|
+
},
|
224689
|
+
],
|
224690
|
+
options: [
|
224691
|
+
{
|
224692
|
+
name: 'github',
|
224693
|
+
description: 'Log in with GitHub',
|
224694
|
+
shorthand: null,
|
224695
|
+
type: 'string',
|
224696
|
+
deprecated: false,
|
224697
|
+
multi: false,
|
224698
|
+
},
|
224699
|
+
{
|
224700
|
+
name: 'oob',
|
224701
|
+
description: 'Log in with "out of band" authentication',
|
224702
|
+
shorthand: null,
|
224703
|
+
type: 'string',
|
224704
|
+
deprecated: false,
|
224705
|
+
multi: false,
|
224706
|
+
},
|
224707
|
+
],
|
224708
|
+
examples: [
|
224709
|
+
{
|
224710
|
+
name: 'Log into the Vercel platform',
|
224711
|
+
value: `${(0, pkg_name_1.getPkgName)()} login`,
|
224712
|
+
},
|
224713
|
+
{
|
224714
|
+
name: 'Log in using a specific email address',
|
224715
|
+
value: `${(0, pkg_name_1.getPkgName)()} login username@example.com`,
|
224716
|
+
},
|
224717
|
+
{
|
224718
|
+
name: 'Log in using a specific team "slug" for SAML Single Sign-On',
|
224719
|
+
value: `${(0, pkg_name_1.getPkgName)()} login acme`,
|
224720
|
+
},
|
224721
|
+
{
|
224722
|
+
name: 'Log in using GitHub in "out-of-band" mode',
|
224723
|
+
value: `${(0, pkg_name_1.getPkgName)()} login --github --oob`,
|
224724
|
+
},
|
224725
|
+
],
|
224726
|
+
};
|
224727
|
+
|
224728
|
+
|
224729
|
+
/***/ }),
|
224730
|
+
|
224731
|
+
/***/ 66298:
|
224507
224732
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
224508
224733
|
|
224509
224734
|
"use strict";
|
@@ -224516,7 +224741,6 @@ const email_validator_1 = __webpack_require__(88508);
|
|
224516
224741
|
const chalk_1 = __importDefault(__webpack_require__(90877));
|
224517
224742
|
const humanize_path_1 = __importDefault(__webpack_require__(33234));
|
224518
224743
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
224519
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
224520
224744
|
const prompt_1 = __importDefault(__webpack_require__(75964));
|
224521
224745
|
const saml_1 = __importDefault(__webpack_require__(21745));
|
224522
224746
|
const email_1 = __importDefault(__webpack_require__(52915));
|
@@ -224527,36 +224751,8 @@ const emoji_1 = __webpack_require__(35172);
|
|
224527
224751
|
const pkg_name_1 = __webpack_require__(79000);
|
224528
224752
|
const global_path_1 = __importDefault(__webpack_require__(88976));
|
224529
224753
|
const files_1 = __webpack_require__(48695);
|
224530
|
-
const
|
224531
|
-
|
224532
|
-
${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} login`)} <email or team>
|
224533
|
-
|
224534
|
-
${chalk_1.default.dim('Options:')}
|
224535
|
-
|
224536
|
-
-h, --help Output usage information
|
224537
|
-
--no-color No color mode [off]
|
224538
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
224539
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
224540
|
-
|
224541
|
-
${chalk_1.default.dim('Examples:')}
|
224542
|
-
|
224543
|
-
${chalk_1.default.gray('–')} Log into the Vercel platform
|
224544
|
-
|
224545
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login`)}
|
224546
|
-
|
224547
|
-
${chalk_1.default.gray('–')} Log in using a specific email address
|
224548
|
-
|
224549
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login john@doe.com`)}
|
224550
|
-
|
224551
|
-
${chalk_1.default.gray('–')} Log in using a specific team "slug" for SAML Single Sign-On
|
224552
|
-
|
224553
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login acme`)}
|
224554
|
-
|
224555
|
-
${chalk_1.default.gray('–')} Log in using GitHub in "out-of-band" mode
|
224556
|
-
|
224557
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login --github --oob`)}
|
224558
|
-
`);
|
224559
|
-
};
|
224754
|
+
const help_1 = __webpack_require__(58219);
|
224755
|
+
const command_1 = __webpack_require__(23496);
|
224560
224756
|
async function login(client) {
|
224561
224757
|
const { output } = client;
|
224562
224758
|
const argv = (0, get_args_1.default)(client.argv.slice(2), {
|
@@ -224566,7 +224762,7 @@ async function login(client) {
|
|
224566
224762
|
'--bitbucket': Boolean,
|
224567
224763
|
});
|
224568
224764
|
if (argv['--help']) {
|
224569
|
-
help();
|
224765
|
+
output.print((0, help_1.help)(command_1.loginCommand, { columns: client.stderr.columns }));
|
224570
224766
|
return 2;
|
224571
224767
|
}
|
224572
224768
|
if (argv['--token']) {
|
@@ -224627,7 +224823,31 @@ exports.default = login;
|
|
224627
224823
|
|
224628
224824
|
/***/ }),
|
224629
224825
|
|
224630
|
-
/***/
|
224826
|
+
/***/ 86887:
|
224827
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
224828
|
+
|
224829
|
+
"use strict";
|
224830
|
+
|
224831
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224832
|
+
exports.logoutCommand = void 0;
|
224833
|
+
const pkg_name_1 = __webpack_require__(79000);
|
224834
|
+
exports.logoutCommand = {
|
224835
|
+
name: 'logout',
|
224836
|
+
description: 'Logout the current authenticated user or team.',
|
224837
|
+
arguments: [],
|
224838
|
+
options: [],
|
224839
|
+
examples: [
|
224840
|
+
{
|
224841
|
+
name: 'Logout from the CLI',
|
224842
|
+
value: `${(0, pkg_name_1.getPkgName)()} logout`,
|
224843
|
+
},
|
224844
|
+
],
|
224845
|
+
};
|
224846
|
+
|
224847
|
+
|
224848
|
+
/***/ }),
|
224849
|
+
|
224850
|
+
/***/ 80693:
|
224631
224851
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
224632
224852
|
|
224633
224853
|
"use strict";
|
@@ -224636,33 +224856,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
224636
224856
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
224637
224857
|
};
|
224638
224858
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224639
|
-
const chalk_1 = __importDefault(__webpack_require__(90877));
|
224640
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
224641
224859
|
const error_1 = __webpack_require__(4400);
|
224642
224860
|
const files_1 = __webpack_require__(48695);
|
224643
224861
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
224644
224862
|
const pkg_name_1 = __webpack_require__(79000);
|
224645
224863
|
const errors_ts_1 = __webpack_require__(39240);
|
224646
224864
|
const error_utils_1 = __webpack_require__(39799);
|
224647
|
-
const
|
224648
|
-
|
224649
|
-
${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} logout`)}
|
224650
|
-
|
224651
|
-
${chalk_1.default.dim('Options:')}
|
224652
|
-
|
224653
|
-
-h, --help Output usage information
|
224654
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
224655
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
224656
|
-
|
224657
|
-
${chalk_1.default.dim('Examples:')}
|
224658
|
-
|
224659
|
-
${chalk_1.default.gray('–')} Logout from the CLI:
|
224660
|
-
|
224661
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} logout`)}
|
224662
|
-
`);
|
224663
|
-
};
|
224865
|
+
const help_1 = __webpack_require__(58219);
|
224866
|
+
const command_1 = __webpack_require__(86887);
|
224664
224867
|
async function main(client) {
|
224665
224868
|
let argv;
|
224869
|
+
const { authConfig, config, output } = client;
|
224666
224870
|
try {
|
224667
224871
|
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
224668
224872
|
'--help': Boolean,
|
@@ -224674,10 +224878,9 @@ async function main(client) {
|
|
224674
224878
|
return 1;
|
224675
224879
|
}
|
224676
224880
|
if (argv['--help']) {
|
224677
|
-
help();
|
224881
|
+
output.print((0, help_1.help)(command_1.logoutCommand, { columns: client.stderr.columns }));
|
224678
224882
|
return 2;
|
224679
224883
|
}
|
224680
|
-
const { authConfig, config, output } = client;
|
224681
224884
|
if (!authConfig.token) {
|
224682
224885
|
output.note(`Not currently logged in, so ${(0, pkg_name_1.getCommandName)('logout')} did nothing`);
|
224683
224886
|
return 0;
|
@@ -224730,7 +224933,81 @@ exports.default = main;
|
|
224730
224933
|
|
224731
224934
|
/***/ }),
|
224732
224935
|
|
224733
|
-
/***/
|
224936
|
+
/***/ 70201:
|
224937
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
224938
|
+
|
224939
|
+
"use strict";
|
224940
|
+
|
224941
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224942
|
+
exports.logsCommand = void 0;
|
224943
|
+
const pkg_name_1 = __webpack_require__(79000);
|
224944
|
+
exports.logsCommand = {
|
224945
|
+
name: 'logs',
|
224946
|
+
description: 'Display logs for a specific deployment.',
|
224947
|
+
arguments: [
|
224948
|
+
{
|
224949
|
+
name: 'url|deploymentId',
|
224950
|
+
required: true,
|
224951
|
+
},
|
224952
|
+
],
|
224953
|
+
options: [
|
224954
|
+
{
|
224955
|
+
name: 'follow',
|
224956
|
+
shorthand: 'f',
|
224957
|
+
description: 'Wait for additional data [off]',
|
224958
|
+
type: 'string',
|
224959
|
+
deprecated: false,
|
224960
|
+
multi: false,
|
224961
|
+
},
|
224962
|
+
{
|
224963
|
+
name: 'limit',
|
224964
|
+
shorthand: 'n',
|
224965
|
+
description: 'Number of log entries [100]',
|
224966
|
+
argument: 'NUMBER',
|
224967
|
+
type: 'string',
|
224968
|
+
deprecated: false,
|
224969
|
+
multi: false,
|
224970
|
+
},
|
224971
|
+
{
|
224972
|
+
name: 'since',
|
224973
|
+
shorthand: null,
|
224974
|
+
description: 'Only return logs after date (ISO 8601)',
|
224975
|
+
argument: 'SINCE',
|
224976
|
+
type: 'string',
|
224977
|
+
deprecated: false,
|
224978
|
+
multi: false,
|
224979
|
+
},
|
224980
|
+
{
|
224981
|
+
name: 'until',
|
224982
|
+
shorthand: null,
|
224983
|
+
description: 'Only return logs before date (ISO 8601), ignored when used with --follow',
|
224984
|
+
argument: 'UNTIL',
|
224985
|
+
type: 'string',
|
224986
|
+
deprecated: false,
|
224987
|
+
multi: false,
|
224988
|
+
},
|
224989
|
+
{
|
224990
|
+
name: 'output',
|
224991
|
+
shorthand: 'o',
|
224992
|
+
description: `Specify the output format (short|raw) [short]`,
|
224993
|
+
argument: 'MODE',
|
224994
|
+
type: 'string',
|
224995
|
+
deprecated: false,
|
224996
|
+
multi: false,
|
224997
|
+
},
|
224998
|
+
],
|
224999
|
+
examples: [
|
225000
|
+
{
|
225001
|
+
name: 'Print the logs for the deployment DEPLOYMENT_ID',
|
225002
|
+
value: `${(0, pkg_name_1.getPkgName)()} logs DEPLOYMENT_ID`,
|
225003
|
+
},
|
225004
|
+
],
|
225005
|
+
};
|
225006
|
+
|
225007
|
+
|
225008
|
+
/***/ }),
|
225009
|
+
|
225010
|
+
/***/ 26582:
|
224734
225011
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
224735
225012
|
|
224736
225013
|
"use strict";
|
@@ -224740,41 +225017,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
224740
225017
|
};
|
224741
225018
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
224742
225019
|
const chalk_1 = __importDefault(__webpack_require__(90877));
|
224743
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
224744
225020
|
const elapsed_1 = __importDefault(__webpack_require__(14099));
|
224745
225021
|
const url_1 = __webpack_require__(84265);
|
224746
225022
|
const events_1 = __importDefault(__webpack_require__(63274));
|
224747
225023
|
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
224748
|
-
const pkg_name_1 = __webpack_require__(79000);
|
224749
225024
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
224750
225025
|
const get_deployment_1 = __importDefault(__webpack_require__(84249));
|
224751
|
-
const
|
224752
|
-
|
224753
|
-
|
224754
|
-
|
224755
|
-
${chalk_1.default.dim('Options:')}
|
224756
|
-
|
224757
|
-
-h, --help Output usage information
|
224758
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
224759
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
224760
|
-
-d, --debug Debug mode [off]
|
224761
|
-
--no-color No color mode [off]
|
224762
|
-
-f, --follow Wait for additional data [off]
|
224763
|
-
-n ${chalk_1.default.bold.underline('NUMBER')} Number of logs [100]
|
224764
|
-
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
224765
|
-
--since=${chalk_1.default.bold.underline('SINCE')} Only return logs after date (ISO 8601)
|
224766
|
-
--until=${chalk_1.default.bold.underline('UNTIL')} Only return logs before date (ISO 8601), ignored for ${'`-f`'}
|
224767
|
-
-S, --scope Set a custom scope
|
224768
|
-
-o ${chalk_1.default.bold.underline('MODE')}, --output=${chalk_1.default.bold.underline('MODE')} Specify the output format (${Object.keys(logPrinters).join('|')}) [short]
|
224769
|
-
|
224770
|
-
${chalk_1.default.dim('Examples:')}
|
224771
|
-
|
224772
|
-
${chalk_1.default.gray('–')} Print the logs for the deployment ${chalk_1.default.dim('`deploymentId`')}
|
224773
|
-
|
224774
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} logs deploymentId`)}
|
224775
|
-
`);
|
224776
|
-
};
|
224777
|
-
async function main(client) {
|
225026
|
+
const help_1 = __webpack_require__(58219);
|
225027
|
+
const command_1 = __webpack_require__(70201);
|
225028
|
+
async function logs(client) {
|
224778
225029
|
let head;
|
224779
225030
|
let limit;
|
224780
225031
|
let follow;
|
@@ -224794,11 +225045,11 @@ async function main(client) {
|
|
224794
225045
|
});
|
224795
225046
|
argv._ = argv._.slice(1);
|
224796
225047
|
deploymentIdOrURL = argv._[0];
|
225048
|
+
const { output } = client;
|
224797
225049
|
if (argv['--help'] || !deploymentIdOrURL || deploymentIdOrURL === 'help') {
|
224798
|
-
help();
|
225050
|
+
output.print((0, help_1.help)(command_1.logsCommand, { columns: client.stderr.columns }));
|
224799
225051
|
return 2;
|
224800
225052
|
}
|
224801
|
-
const { output } = client;
|
224802
225053
|
try {
|
224803
225054
|
since = argv['--since'] ? toTimestamp(argv['--since']) : 0;
|
224804
225055
|
}
|
@@ -224880,7 +225131,7 @@ async function main(client) {
|
|
224880
225131
|
}
|
224881
225132
|
return 0;
|
224882
225133
|
}
|
224883
|
-
exports.default =
|
225134
|
+
exports.default = logs;
|
224884
225135
|
function compareEvents(d1, d2) {
|
224885
225136
|
const c1 = d1.date || d1.created;
|
224886
225137
|
const c2 = d2.date || d2.created;
|
@@ -225609,7 +225860,67 @@ async function renderJobSucceeded({ client, contextName, performingPromote, proj
|
|
225609
225860
|
|
225610
225861
|
/***/ }),
|
225611
225862
|
|
225612
|
-
/***/
|
225863
|
+
/***/ 8444:
|
225864
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
225865
|
+
|
225866
|
+
"use strict";
|
225867
|
+
|
225868
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
225869
|
+
exports.pullCommand = void 0;
|
225870
|
+
const pkg_name_1 = __webpack_require__(79000);
|
225871
|
+
const env_target_1 = __webpack_require__(20229);
|
225872
|
+
exports.pullCommand = {
|
225873
|
+
name: 'pull',
|
225874
|
+
description: 'Pull latest environment variables and project settings from Vercel. ',
|
225875
|
+
arguments: [
|
225876
|
+
{
|
225877
|
+
name: 'project-path',
|
225878
|
+
required: false,
|
225879
|
+
},
|
225880
|
+
],
|
225881
|
+
options: [
|
225882
|
+
{
|
225883
|
+
name: 'environment',
|
225884
|
+
description: 'Deployment environment [development]',
|
225885
|
+
argument: 'environment',
|
225886
|
+
shorthand: null,
|
225887
|
+
type: 'string',
|
225888
|
+
deprecated: false,
|
225889
|
+
multi: false,
|
225890
|
+
},
|
225891
|
+
{
|
225892
|
+
name: 'yes',
|
225893
|
+
description: 'Skip questions when setting up new project using default scope and settings',
|
225894
|
+
shorthand: 'y',
|
225895
|
+
type: 'string',
|
225896
|
+
deprecated: false,
|
225897
|
+
multi: false,
|
225898
|
+
},
|
225899
|
+
],
|
225900
|
+
examples: [
|
225901
|
+
{
|
225902
|
+
name: 'Pull the latest Environment Variables and Project Settings from the cloud',
|
225903
|
+
value: `${(0, pkg_name_1.getPkgName)()} pull`,
|
225904
|
+
},
|
225905
|
+
{
|
225906
|
+
name: 'Pull the latest Environment Variables and Project Settings from the cloud targeting a directory',
|
225907
|
+
value: `${(0, pkg_name_1.getPkgName)()} pull ./path-to-project`,
|
225908
|
+
},
|
225909
|
+
{
|
225910
|
+
name: 'Pull for a specific environment',
|
225911
|
+
value: `${(0, pkg_name_1.getPkgName)()} pull --environment=${(0, env_target_1.getEnvTargetPlaceholder)()}`,
|
225912
|
+
},
|
225913
|
+
{
|
225914
|
+
name: 'If you want to download environment variables to a specific file, use `vercel env pull` instead',
|
225915
|
+
value: `${(0, pkg_name_1.getPkgName)()} env pull`,
|
225916
|
+
},
|
225917
|
+
],
|
225918
|
+
};
|
225919
|
+
|
225920
|
+
|
225921
|
+
/***/ }),
|
225922
|
+
|
225923
|
+
/***/ 46230:
|
225613
225924
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
225614
225925
|
|
225615
225926
|
"use strict";
|
@@ -225623,45 +225934,15 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
|
|
225623
225934
|
const path_1 = __webpack_require__(85622);
|
225624
225935
|
const emoji_1 = __webpack_require__(35172);
|
225625
225936
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
225626
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
225627
225937
|
const stamp_1 = __importDefault(__webpack_require__(49079));
|
225628
|
-
const pkg_name_1 = __webpack_require__(79000);
|
225629
225938
|
const link_1 = __webpack_require__(49347);
|
225630
225939
|
const project_settings_1 = __webpack_require__(61440);
|
225631
225940
|
const pull_1 = __importDefault(__webpack_require__(80800));
|
225632
225941
|
const env_target_1 = __webpack_require__(20229);
|
225633
225942
|
const ensure_link_1 = __webpack_require__(65382);
|
225634
225943
|
const humanize_path_1 = __importDefault(__webpack_require__(33234));
|
225635
|
-
const
|
225636
|
-
|
225637
|
-
${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} pull`)} [project-path]
|
225638
|
-
|
225639
|
-
${chalk_1.default.dim('Options:')}
|
225640
|
-
|
225641
|
-
-h, --help Output usage information
|
225642
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
225643
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
225644
|
-
-d, --debug Debug mode [off]
|
225645
|
-
--git-branch Specify the Git branch to pull specific Environment Variables for
|
225646
|
-
--no-color No color mode [off]
|
225647
|
-
--environment [environment] Deployment environment [development]
|
225648
|
-
-y, --yes Skip questions when setting up new project using default scope and settings
|
225649
|
-
|
225650
|
-
${chalk_1.default.dim('Examples:')}
|
225651
|
-
|
225652
|
-
${chalk_1.default.gray('–')} Pull the latest Environment Variables and Project Settings from the cloud
|
225653
|
-
and stores them in \`.vercel/.env.\${target}.local\` and \`.vercel/project.json\` respectively.
|
225654
|
-
|
225655
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} pull`)}
|
225656
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} pull ./path-to-project`)}
|
225657
|
-
|
225658
|
-
${chalk_1.default.gray('–')} Pull for a specific environment
|
225659
|
-
|
225660
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} pull --environment=${(0, env_target_1.getEnvTargetPlaceholder)()}`)}
|
225661
|
-
|
225662
|
-
${chalk_1.default.gray('If you want to download environment variables to a specific file, use `vercel env pull` instead.')}
|
225663
|
-
`);
|
225664
|
-
};
|
225944
|
+
const help_1 = __webpack_require__(58219);
|
225945
|
+
const command_1 = __webpack_require__(8444);
|
225665
225946
|
function processArgs(client) {
|
225666
225947
|
return (0, get_args_1.default)(client.argv.slice(2), {
|
225667
225948
|
'--yes': Boolean,
|
@@ -225675,7 +225956,7 @@ function processArgs(client) {
|
|
225675
225956
|
function parseArgs(client) {
|
225676
225957
|
const argv = processArgs(client);
|
225677
225958
|
if (argv['--help']) {
|
225678
|
-
help();
|
225959
|
+
client.output.print((0, help_1.help)(command_1.pullCommand, { columns: client.stderr.columns }));
|
225679
225960
|
return 2;
|
225680
225961
|
}
|
225681
225962
|
return argv;
|
@@ -225725,7 +226006,49 @@ exports.default = main;
|
|
225725
226006
|
|
225726
226007
|
/***/ }),
|
225727
226008
|
|
225728
|
-
/***/
|
226009
|
+
/***/ 18232:
|
226010
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
226011
|
+
|
226012
|
+
"use strict";
|
226013
|
+
|
226014
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
226015
|
+
exports.redeployCommand = void 0;
|
226016
|
+
const pkg_name_1 = __webpack_require__(79000);
|
226017
|
+
exports.redeployCommand = {
|
226018
|
+
name: 'redeploy',
|
226019
|
+
description: 'Rebuild and deploy a previous deployment.',
|
226020
|
+
arguments: [
|
226021
|
+
{
|
226022
|
+
name: 'deploymentId|deploymentName',
|
226023
|
+
required: false,
|
226024
|
+
},
|
226025
|
+
],
|
226026
|
+
options: [
|
226027
|
+
{
|
226028
|
+
name: 'no-wait',
|
226029
|
+
shorthand: null,
|
226030
|
+
description: "Don't wait for the redeploy to finish",
|
226031
|
+
type: 'boolean',
|
226032
|
+
deprecated: false,
|
226033
|
+
multi: false,
|
226034
|
+
},
|
226035
|
+
],
|
226036
|
+
examples: [
|
226037
|
+
{
|
226038
|
+
name: 'Rebuild and deploy an existing deployment using id or url',
|
226039
|
+
value: `${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app`,
|
226040
|
+
},
|
226041
|
+
{
|
226042
|
+
name: 'Write Deployment URL to a file',
|
226043
|
+
value: `${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app > deployment-url.txt`,
|
226044
|
+
},
|
226045
|
+
],
|
226046
|
+
};
|
226047
|
+
|
226048
|
+
|
226049
|
+
/***/ }),
|
226050
|
+
|
226051
|
+
/***/ 90408:
|
225729
226052
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
225730
226053
|
|
225731
226054
|
"use strict";
|
@@ -225743,46 +226066,20 @@ const get_deployment_by_id_or_url_1 = __webpack_require__(47662);
|
|
225743
226066
|
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
225744
226067
|
const handle_error_1 = __importDefault(__webpack_require__(64377));
|
225745
226068
|
const error_utils_1 = __webpack_require__(39799);
|
225746
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
225747
226069
|
const util_1 = __importDefault(__webpack_require__(4058));
|
225748
226070
|
const print_deployment_status_1 = __webpack_require__(27951);
|
225749
226071
|
const stamp_1 = __importDefault(__webpack_require__(49079));
|
225750
226072
|
const ua_1 = __importDefault(__webpack_require__(36308));
|
225751
|
-
const
|
225752
|
-
|
225753
|
-
${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} redeploy`)} [deploymentId|deploymentName]
|
225754
|
-
|
225755
|
-
Rebuild and deploy a previous deployment.
|
225756
|
-
|
225757
|
-
${chalk_1.default.dim('Options:')}
|
225758
|
-
|
225759
|
-
-h, --help Output usage information
|
225760
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
225761
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
225762
|
-
-d, --debug Debug mode [off]
|
225763
|
-
--no-color No color mode [off]
|
225764
|
-
--no-wait Don't wait for the redeploy to finish
|
225765
|
-
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
225766
|
-
-y, --yes Skip questions when setting up new project using default scope and settings
|
225767
|
-
|
225768
|
-
${chalk_1.default.dim('Examples:')}
|
225769
|
-
|
225770
|
-
${chalk_1.default.gray('–')} Rebuild and deploy an existing deployment using id or url
|
225771
|
-
|
225772
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app`)}
|
225773
|
-
|
225774
|
-
${chalk_1.default.gray('–')} Write Deployment URL to a file
|
225775
|
-
|
225776
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app > deployment-url.txt`)}
|
225777
|
-
`);
|
225778
|
-
};
|
226073
|
+
const help_1 = __webpack_require__(58219);
|
226074
|
+
const command_1 = __webpack_require__(18232);
|
225779
226075
|
/**
|
225780
226076
|
* `vc redeploy` command
|
225781
226077
|
* @param {Client} client
|
225782
226078
|
* @returns {Promise<number>} Resolves an exit code; 0 on success
|
225783
226079
|
*/
|
225784
|
-
|
226080
|
+
async function redeploy(client) {
|
225785
226081
|
let argv;
|
226082
|
+
const { output } = client;
|
225786
226083
|
try {
|
225787
226084
|
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
225788
226085
|
'--no-wait': Boolean,
|
@@ -225795,10 +226092,9 @@ exports.default = async (client) => {
|
|
225795
226092
|
return 1;
|
225796
226093
|
}
|
225797
226094
|
if (argv['--help'] || argv._[0] === 'help') {
|
225798
|
-
help();
|
226095
|
+
output.print((0, help_1.help)(command_1.redeployCommand, { columns: client.stderr.columns }));
|
225799
226096
|
return 2;
|
225800
226097
|
}
|
225801
|
-
const { output } = client;
|
225802
226098
|
const deployIdOrUrl = argv._[1];
|
225803
226099
|
if (!deployIdOrUrl) {
|
225804
226100
|
output.error(`Missing required deployment id or url: ${(0, pkg_name_1.getCommandName)(`redeploy <deployment-id-or-url>`)}`);
|
@@ -225898,12 +226194,67 @@ exports.default = async (client) => {
|
|
225898
226194
|
}
|
225899
226195
|
return 1;
|
225900
226196
|
}
|
226197
|
+
}
|
226198
|
+
exports.default = redeploy;
|
226199
|
+
|
226200
|
+
|
226201
|
+
/***/ }),
|
226202
|
+
|
226203
|
+
/***/ 88359:
|
226204
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
226205
|
+
|
226206
|
+
"use strict";
|
226207
|
+
|
226208
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
226209
|
+
exports.removeCommand = void 0;
|
226210
|
+
const pkg_name_1 = __webpack_require__(79000);
|
226211
|
+
exports.removeCommand = {
|
226212
|
+
name: 'remove',
|
226213
|
+
description: 'Remove a deployment by name or id.',
|
226214
|
+
arguments: [
|
226215
|
+
{
|
226216
|
+
name: '...deploymentId|deploymentName',
|
226217
|
+
required: true,
|
226218
|
+
},
|
226219
|
+
],
|
226220
|
+
options: [
|
226221
|
+
{
|
226222
|
+
name: 'yes',
|
226223
|
+
shorthand: 'y',
|
226224
|
+
type: 'boolean',
|
226225
|
+
deprecated: false,
|
226226
|
+
description: 'Skip confirmation',
|
226227
|
+
multi: false,
|
226228
|
+
},
|
226229
|
+
{
|
226230
|
+
name: 'safe',
|
226231
|
+
shorthand: 's',
|
226232
|
+
type: 'boolean',
|
226233
|
+
deprecated: false,
|
226234
|
+
description: 'Skip deployments with an active alias',
|
226235
|
+
multi: false,
|
226236
|
+
},
|
226237
|
+
],
|
226238
|
+
examples: [
|
226239
|
+
{
|
226240
|
+
name: 'Remove a deployment identified by `deploymentId`',
|
226241
|
+
value: `${(0, pkg_name_1.getPkgName)()} remove my-app`,
|
226242
|
+
},
|
226243
|
+
{
|
226244
|
+
name: 'Remove all deployments with name `my-app`',
|
226245
|
+
value: `${(0, pkg_name_1.getPkgName)()} remove deploymentId`,
|
226246
|
+
},
|
226247
|
+
{
|
226248
|
+
name: 'Remove two deployments with IDs `eyWt6zuSdeus` and `uWHoA9RQ1d1o`',
|
226249
|
+
value: `${(0, pkg_name_1.getPkgName)()} remove eyWt6zuSdeus uWHoA9RQ1d1o`,
|
226250
|
+
},
|
226251
|
+
],
|
225901
226252
|
};
|
225902
226253
|
|
225903
226254
|
|
225904
226255
|
/***/ }),
|
225905
226256
|
|
225906
|
-
/***/
|
226257
|
+
/***/ 86614:
|
225907
226258
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
225908
226259
|
|
225909
226260
|
"use strict";
|
@@ -225918,7 +226269,6 @@ const pluralize_1 = __importDefault(__webpack_require__(43669));
|
|
225918
226269
|
const text_table_1 = __importDefault(__webpack_require__(43362));
|
225919
226270
|
const util_1 = __importDefault(__webpack_require__(4058));
|
225920
226271
|
const get_aliases_1 = __importDefault(__webpack_require__(21674));
|
225921
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
225922
226272
|
const elapsed_1 = __importDefault(__webpack_require__(14099));
|
225923
226273
|
const url_1 = __webpack_require__(84265);
|
225924
226274
|
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
@@ -225931,38 +226281,9 @@ const pkg_name_1 = __webpack_require__(79000);
|
|
225931
226281
|
const get_args_1 = __importDefault(__webpack_require__(2505));
|
225932
226282
|
const handle_error_1 = __importDefault(__webpack_require__(64377));
|
225933
226283
|
const now_error_1 = __webpack_require__(22216);
|
225934
|
-
const
|
225935
|
-
|
225936
|
-
|
225937
|
-
|
225938
|
-
${chalk_1.default.dim('Options:')}
|
225939
|
-
|
225940
|
-
-h, --help Output usage information
|
225941
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
225942
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
225943
|
-
-d, --debug Debug mode [off]
|
225944
|
-
--no-color No color mode [off]
|
225945
|
-
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
225946
|
-
-y, --yes Skip confirmation
|
225947
|
-
-s, --safe Skip deployments with an active alias
|
225948
|
-
-S, --scope Set a custom scope
|
225949
|
-
|
225950
|
-
${chalk_1.default.dim('Examples:')}
|
225951
|
-
|
225952
|
-
${chalk_1.default.gray('–')} Remove a deployment identified by ${chalk_1.default.dim('`deploymentId`')}
|
225953
|
-
|
225954
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm deploymentId`)}
|
225955
|
-
|
225956
|
-
${chalk_1.default.gray('–')} Remove all deployments with name ${chalk_1.default.dim('`my-app`')}
|
225957
|
-
|
225958
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm my-app`)}
|
225959
|
-
|
225960
|
-
${chalk_1.default.gray('–')} Remove two deployments with IDs ${chalk_1.default.dim('`eyWt6zuSdeus`')} and ${chalk_1.default.dim('`uWHoA9RQ1d1o`')}
|
225961
|
-
|
225962
|
-
${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} rm eyWt6zuSdeus uWHoA9RQ1d1o`)}
|
225963
|
-
`);
|
225964
|
-
};
|
225965
|
-
async function main(client) {
|
226284
|
+
const help_1 = __webpack_require__(58219);
|
226285
|
+
const command_1 = __webpack_require__(88359);
|
226286
|
+
async function remove(client) {
|
225966
226287
|
let argv;
|
225967
226288
|
try {
|
225968
226289
|
argv = (0, get_args_1.default)(client.argv.slice(2), {
|
@@ -225985,12 +226306,12 @@ async function main(client) {
|
|
225985
226306
|
const ids = argv._;
|
225986
226307
|
const { success, error, log } = output;
|
225987
226308
|
if (argv['--help'] || ids[0] === 'help') {
|
225988
|
-
help();
|
226309
|
+
output.print((0, help_1.help)(command_1.removeCommand, { columns: client.stderr.columns }));
|
225989
226310
|
return 2;
|
225990
226311
|
}
|
225991
226312
|
if (ids.length < 1) {
|
225992
226313
|
error(`${(0, pkg_name_1.getCommandName)('rm')} expects at least one argument`);
|
225993
|
-
help();
|
226314
|
+
output.print((0, help_1.help)(command_1.removeCommand, { columns: client.stderr.columns }));
|
225994
226315
|
return 1;
|
225995
226316
|
}
|
225996
226317
|
const invalidName = ids.find(name => !(0, is_valid_name_1.isValidName)(name));
|
@@ -226100,7 +226421,7 @@ async function main(client) {
|
|
226100
226421
|
});
|
226101
226422
|
return 0;
|
226102
226423
|
}
|
226103
|
-
exports.default =
|
226424
|
+
exports.default = remove;
|
226104
226425
|
function readConfirmation(deployments, projects, output) {
|
226105
226426
|
return new Promise(resolve => {
|
226106
226427
|
if (deployments.length > 0) {
|
@@ -227098,46 +227419,49 @@ exports.default = main;
|
|
227098
227419
|
|
227099
227420
|
/***/ }),
|
227100
227421
|
|
227101
|
-
/***/
|
227102
|
-
/***/ (
|
227422
|
+
/***/ 95328:
|
227423
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
227103
227424
|
|
227104
227425
|
"use strict";
|
227105
227426
|
|
227106
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
227107
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
227108
|
-
};
|
227109
227427
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
227110
|
-
|
227111
|
-
const logo_1 = __importDefault(__webpack_require__(66669));
|
227112
|
-
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
227428
|
+
exports.whoamiCommand = void 0;
|
227113
227429
|
const pkg_name_1 = __webpack_require__(79000);
|
227114
|
-
|
227115
|
-
|
227116
|
-
|
227117
|
-
|
227430
|
+
exports.whoamiCommand = {
|
227431
|
+
name: 'whoami',
|
227432
|
+
description: 'Shows the username of the currently logged in user.',
|
227433
|
+
arguments: [],
|
227434
|
+
options: [],
|
227435
|
+
examples: [
|
227436
|
+
{
|
227437
|
+
name: 'Shows the username of the currently logged in user',
|
227438
|
+
value: `${(0, pkg_name_1.getPkgName)()} whoami`,
|
227439
|
+
},
|
227440
|
+
],
|
227441
|
+
};
|
227118
227442
|
|
227119
|
-
${chalk_1.default.dim('Options:')}
|
227120
227443
|
|
227121
|
-
|
227122
|
-
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
227123
|
-
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
227124
|
-
-d, --debug Debug mode [off]
|
227125
|
-
--no-color No color mode [off]
|
227126
|
-
-t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
|
227444
|
+
/***/ }),
|
227127
227445
|
|
227128
|
-
|
227446
|
+
/***/ 8660:
|
227447
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
227129
227448
|
|
227130
|
-
|
227449
|
+
"use strict";
|
227131
227450
|
|
227132
|
-
|
227133
|
-
|
227451
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
227452
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
227134
227453
|
};
|
227135
|
-
exports
|
227454
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
227455
|
+
const help_1 = __webpack_require__(58219);
|
227456
|
+
const command_1 = __webpack_require__(95328);
|
227457
|
+
const get_scope_1 = __importDefault(__webpack_require__(60324));
|
227458
|
+
const get_args_1 = __importDefault(__webpack_require__(2505));
|
227459
|
+
async function whoami(client) {
|
227136
227460
|
const { output } = client;
|
227137
227461
|
const argv = (0, get_args_1.default)(client.argv.slice(2), {});
|
227138
227462
|
argv._ = argv._.slice(1);
|
227139
227463
|
if (argv['--help'] || argv._[0] === 'help') {
|
227140
|
-
help();
|
227464
|
+
output.print((0, help_1.help)(command_1.whoamiCommand, { columns: client.stderr.columns }));
|
227141
227465
|
return 2;
|
227142
227466
|
}
|
227143
227467
|
const { contextName } = await (0, get_scope_1.default)(client, { getTeam: false });
|
@@ -227150,7 +227474,8 @@ exports.default = async (client) => {
|
|
227150
227474
|
client.stdout.write(`${contextName}\n`);
|
227151
227475
|
}
|
227152
227476
|
return 0;
|
227153
|
-
}
|
227477
|
+
}
|
227478
|
+
exports.default = whoami;
|
227154
227479
|
|
227155
227480
|
|
227156
227481
|
/***/ }),
|
@@ -227598,7 +227923,7 @@ const main = async () => {
|
|
227598
227923
|
func = __webpack_require__(37327).default;
|
227599
227924
|
break;
|
227600
227925
|
case 'build':
|
227601
|
-
func = __webpack_require__(
|
227926
|
+
func = __webpack_require__(12559).default;
|
227602
227927
|
break;
|
227603
227928
|
case 'certs':
|
227604
227929
|
func = __webpack_require__(1165).default;
|
@@ -227625,22 +227950,22 @@ const main = async () => {
|
|
227625
227950
|
func = __webpack_require__(41793).default;
|
227626
227951
|
break;
|
227627
227952
|
case 'inspect':
|
227628
|
-
func = __webpack_require__(
|
227953
|
+
func = __webpack_require__(16088).default;
|
227629
227954
|
break;
|
227630
227955
|
case 'link':
|
227631
227956
|
func = __webpack_require__(82346).default;
|
227632
227957
|
break;
|
227633
227958
|
case 'list':
|
227634
|
-
func = __webpack_require__(
|
227959
|
+
func = __webpack_require__(41509).default;
|
227635
227960
|
break;
|
227636
227961
|
case 'logs':
|
227637
|
-
func = __webpack_require__(
|
227962
|
+
func = __webpack_require__(26582).default;
|
227638
227963
|
break;
|
227639
227964
|
case 'login':
|
227640
|
-
func = __webpack_require__(
|
227965
|
+
func = __webpack_require__(66298).default;
|
227641
227966
|
break;
|
227642
227967
|
case 'logout':
|
227643
|
-
func = __webpack_require__(
|
227968
|
+
func = __webpack_require__(80693).default;
|
227644
227969
|
break;
|
227645
227970
|
case 'project':
|
227646
227971
|
func = __webpack_require__(80860).default;
|
@@ -227649,13 +227974,13 @@ const main = async () => {
|
|
227649
227974
|
func = __webpack_require__(62435).default;
|
227650
227975
|
break;
|
227651
227976
|
case 'pull':
|
227652
|
-
func = __webpack_require__(
|
227977
|
+
func = __webpack_require__(46230).default;
|
227653
227978
|
break;
|
227654
227979
|
case 'redeploy':
|
227655
|
-
func = __webpack_require__(
|
227980
|
+
func = __webpack_require__(90408).default;
|
227656
227981
|
break;
|
227657
227982
|
case 'remove':
|
227658
|
-
func = __webpack_require__(
|
227983
|
+
func = __webpack_require__(86614).default;
|
227659
227984
|
break;
|
227660
227985
|
case 'rollback':
|
227661
227986
|
func = __webpack_require__(78339).default;
|
@@ -227667,7 +227992,7 @@ const main = async () => {
|
|
227667
227992
|
func = __webpack_require__(72921).default;
|
227668
227993
|
break;
|
227669
227994
|
case 'whoami':
|
227670
|
-
func = __webpack_require__(
|
227995
|
+
func = __webpack_require__(8660).default;
|
227671
227996
|
break;
|
227672
227997
|
default:
|
227673
227998
|
func = null;
|