vercel 31.2.1 → 31.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +613 -359
  2. package/package.json +8 -9
package/dist/index.js CHANGED
@@ -218840,7 +218840,61 @@ async function prompt(client, message) {
218840
218840
 
218841
218841
  /***/ }),
218842
218842
 
218843
- /***/ 19392:
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:
218844
218898
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
218845
218899
 
218846
218900
  "use strict";
@@ -218883,7 +218937,7 @@ const build_utils_1 = __webpack_require__(63445);
218883
218937
  const fs_detectors_1 = __webpack_require__(88995);
218884
218938
  const routing_utils_1 = __webpack_require__(679);
218885
218939
  const client_1 = __webpack_require__(40521);
218886
- const pull_1 = __importDefault(__webpack_require__(65158));
218940
+ const pull_1 = __importDefault(__webpack_require__(46230));
218887
218941
  const get_files_1 = __webpack_require__(20802);
218888
218942
  const get_args_1 = __importDefault(__webpack_require__(2505));
218889
218943
  const cmd_1 = __importDefault(__webpack_require__(62422));
@@ -218903,30 +218957,8 @@ const sort_builders_1 = __webpack_require__(84701);
218903
218957
  const error_1 = __webpack_require__(4400);
218904
218958
  const validate_config_1 = __webpack_require__(21144);
218905
218959
  const monorepo_1 = __webpack_require__(21481);
218906
- const help = () => {
218907
- return console.log(`
218908
- ${chalk_1.default.bold(`${cli.logo} ${cli.name} build`)}
218909
-
218910
- ${chalk_1.default.dim('Options:')}
218911
-
218912
- -h, --help Output usage information
218913
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
218914
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
218915
- --cwd [path] The current working directory
218916
- --output [path] Directory where built assets should be written to
218917
- --prod Build a production deployment
218918
- -d, --debug Debug mode [off]
218919
- --no-color No color mode [off]
218920
- -y, --yes Skip the confirmation prompt about pulling environment variables and project settings when not found locally
218921
-
218922
- ${chalk_1.default.dim('Examples:')}
218923
-
218924
- ${chalk_1.default.gray('-')} Build the project
218925
-
218926
- ${chalk_1.default.cyan(`$ ${cli.name} build`)}
218927
- ${chalk_1.default.cyan(`$ ${cli.name} build --cwd ./path-to-project`)}
218928
- `);
218929
- };
218960
+ const help_1 = __webpack_require__(58219);
218961
+ const command_1 = __webpack_require__(29216);
218930
218962
  async function main(client) {
218931
218963
  let { cwd } = client;
218932
218964
  const { output } = client;
@@ -218947,7 +218979,7 @@ async function main(client) {
218947
218979
  '-y': '--yes',
218948
218980
  });
218949
218981
  if (argv['--help']) {
218950
- help();
218982
+ output.print((0, help_1.help)(command_1.buildCommand, { columns: client.stderr.columns }));
218951
218983
  return 2;
218952
218984
  }
218953
218985
  // Build `target` influences which environment variables will be used
@@ -223466,7 +223498,7 @@ function lineToString(line) {
223466
223498
  }
223467
223499
  exports.lineToString = lineToString;
223468
223500
  function outputArrayToString(outputArray) {
223469
- return outputArray.join(NEWLINE);
223501
+ return outputArray.filter(line => line !== null).join(NEWLINE);
223470
223502
  }
223471
223503
  exports.outputArrayToString = outputArrayToString;
223472
223504
  /**
@@ -223475,7 +223507,12 @@ exports.outputArrayToString = outputArrayToString;
223475
223507
  * @returns
223476
223508
  */
223477
223509
  function buildCommandSynopsisLine(command) {
223478
- const line = [constants_1.LOGO, chalk_1.default.bold(constants_1.NAME), chalk_1.default.bold(command.name)];
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
+ ];
223479
223516
  if (command.arguments.length > 0) {
223480
223517
  for (const argument of command.arguments) {
223481
223518
  line.push(argument.required ? argument.name : `[${argument.name}]`);
@@ -223484,6 +223521,7 @@ function buildCommandSynopsisLine(command) {
223484
223521
  if (command.options.length > 0) {
223485
223522
  line.push('[options]');
223486
223523
  }
223524
+ line.push(NEWLINE);
223487
223525
  return lineToString(line);
223488
223526
  }
223489
223527
  exports.buildCommandSynopsisLine = buildCommandSynopsisLine;
@@ -223491,10 +223529,10 @@ function buildCommandOptionLines(commandOptions, options, sectionTitle) {
223491
223529
  // Filter out deprecated and intentionally undocumented options
223492
223530
  commandOptions = commandOptions.filter(option => !option.deprecated && option.description !== undefined);
223493
223531
  if (commandOptions.length === 0) {
223494
- return '';
223532
+ return null;
223495
223533
  }
223496
223534
  // Initialize output array with header and empty line
223497
- const outputArray = [`${chalk_1.default.dim(sectionTitle)}:`, ''];
223535
+ const outputArray = [`${INDENT}${chalk_1.default.dim(sectionTitle)}:`, ''];
223498
223536
  // Start building option lines
223499
223537
  const optionLines = [];
223500
223538
  // Sort command options alphabetically
@@ -223503,7 +223541,7 @@ function buildCommandOptionLines(commandOptions, options, sectionTitle) {
223503
223541
  let maxLineStartLength = 0;
223504
223542
  // Iterate over options and create the "start" of each option (e.g. ` -b, --build-env <key=value>`)
223505
223543
  for (const option of commandOptions) {
223506
- const startLine = [INDENT];
223544
+ const startLine = [INDENT, INDENT, INDENT];
223507
223545
  if (option.shorthand) {
223508
223546
  startLine.push(`-${option.shorthand},`);
223509
223547
  }
@@ -223565,12 +223603,11 @@ function buildCommandOptionLines(commandOptions, options, sectionTitle) {
223565
223603
  outputArray.push(lineToString(line));
223566
223604
  }
223567
223605
  }
223568
- // return the entire list of options as a single string after delete the last '\n' added to the option list
223569
- return outputArrayToString(outputArray);
223606
+ return `${outputArrayToString(outputArray)}${NEWLINE}`;
223570
223607
  }
223571
223608
  exports.buildCommandOptionLines = buildCommandOptionLines;
223572
223609
  function buildCommandExampleLines(command) {
223573
- const outputArray = [chalk_1.default.dim(`Examples:`), ''];
223610
+ const outputArray = [`${INDENT}${chalk_1.default.dim('Examples:')}`, ''];
223574
223611
  for (const example of command.examples) {
223575
223612
  const nameLine = [INDENT];
223576
223613
  nameLine.push(chalk_1.default.gray('-'));
@@ -223590,21 +223627,20 @@ function buildCommandExampleLines(command) {
223590
223627
  }
223591
223628
  outputArray.push('');
223592
223629
  }
223593
- // delete the last newline added after examples iteration
223594
- outputArray.splice(-1);
223595
223630
  return outputArrayToString(outputArray);
223596
223631
  }
223597
223632
  exports.buildCommandExampleLines = buildCommandExampleLines;
223633
+ function buildDescriptionLine(command) {
223634
+ const line = [INDENT, command.description, NEWLINE];
223635
+ return lineToString(line);
223636
+ }
223598
223637
  function buildHelpOutput(command, options) {
223599
223638
  const outputArray = [
223600
- buildCommandSynopsisLine(command),
223601
- '',
223602
- command.description,
223603
223639
  '',
223640
+ buildCommandSynopsisLine(command),
223641
+ buildDescriptionLine(command),
223604
223642
  buildCommandOptionLines(command.options, options, 'Options'),
223605
- '',
223606
223643
  buildCommandOptionLines(globalCommandOptions, options, 'Global Options'),
223607
- '',
223608
223644
  buildCommandExampleLines(command),
223609
223645
  '',
223610
223646
  ];
@@ -223920,7 +223956,66 @@ async function guess(client, exampleList, name) {
223920
223956
 
223921
223957
  /***/ }),
223922
223958
 
223923
- /***/ 91411:
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:
223924
224019
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
223925
224020
 
223926
224021
  "use strict";
@@ -223934,7 +224029,6 @@ const get_args_1 = __importDefault(__webpack_require__(2505));
223934
224029
  const builds_1 = __importDefault(__webpack_require__(41966));
223935
224030
  const routes_1 = __importDefault(__webpack_require__(38317));
223936
224031
  const indent_1 = __importDefault(__webpack_require__(57676));
223937
- const logo_1 = __importDefault(__webpack_require__(66669));
223938
224032
  const elapsed_1 = __importDefault(__webpack_require__(14099));
223939
224033
  const error_1 = __webpack_require__(4400);
223940
224034
  const get_scope_1 = __importDefault(__webpack_require__(60324));
@@ -223947,42 +224041,10 @@ const read_standard_input_1 = __importDefault(__webpack_require__(57317));
223947
224041
  const sleep_1 = __importDefault(__webpack_require__(89507));
223948
224042
  const ms_1 = __importDefault(__webpack_require__(21378));
223949
224043
  const is_deploying_1 = __webpack_require__(25307);
223950
- const help = () => {
223951
- console.log(`
223952
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} inspect`)} <url>
223953
-
223954
- ${chalk_1.default.dim('Options:')}
223955
-
223956
- -h, --help Output usage information
223957
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
223958
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
223959
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
223960
- -d, --debug Debug mode [off]
223961
- --no-color No color mode [off]
223962
- -S, --scope Set a custom scope
223963
- --timeout=${chalk_1.default.bold.underline('TIME')} Time to wait for deployment completion [3m]
223964
- --wait Blocks until deployment completes
223965
-
223966
- ${chalk_1.default.dim('Examples:')}
223967
-
223968
- ${chalk_1.default.gray('–')} Get information about a deployment by its unique URL
223969
-
223970
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment-ji2fjij2.vercel.app`)}
223971
-
223972
- ${chalk_1.default.gray('-')} Get information about the deployment an alias points to
223973
-
223974
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app`)}
223975
-
223976
- ${chalk_1.default.gray('-')} Get information about a deployment by piping in the URL
223977
-
223978
- ${chalk_1.default.cyan(`$ echo my-deployment.vercel.app | ${(0, pkg_name_1.getPkgName)()} inspect`)}
223979
-
223980
- ${chalk_1.default.gray('-')} Wait up to 90 seconds for deployment to complete
223981
-
223982
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} inspect my-deployment.vercel.app --wait --timeout 90s`)}
223983
- `);
223984
- };
223985
- 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;
223986
224048
  let argv;
223987
224049
  try {
223988
224050
  argv = (0, get_args_1.default)(client.argv.slice(2), {
@@ -223995,7 +224057,7 @@ async function main(client) {
223995
224057
  return 1;
223996
224058
  }
223997
224059
  if (argv['--help']) {
223998
- help();
224060
+ output.print((0, help_1.help)(command_1.inspectCommand, { columns: client.stderr.columns }));
223999
224061
  return 2;
224000
224062
  }
224001
224063
  const { print, log, error } = client.output;
@@ -224011,7 +224073,7 @@ async function main(client) {
224011
224073
  }
224012
224074
  if (!deploymentIdOrHost) {
224013
224075
  error(`${(0, pkg_name_1.getCommandName)('inspect <url>')} expects exactly one argument`);
224014
- help();
224076
+ output.print((0, help_1.help)(command_1.inspectCommand, { columns: client.stderr.columns }));
224015
224077
  return 1;
224016
224078
  }
224017
224079
  // validate the timeout
@@ -224092,7 +224154,7 @@ async function main(client) {
224092
224154
  }
224093
224155
  return 0;
224094
224156
  }
224095
- exports.default = main;
224157
+ exports.default = inspect;
224096
224158
  function stateString(s) {
224097
224159
  const CIRCLE = '● ';
224098
224160
  const sTitle = s && (0, title_1.default)(s);
@@ -224114,6 +224176,68 @@ function stateString(s) {
224114
224176
  }
224115
224177
 
224116
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
+
224117
224241
  /***/ }),
224118
224242
 
224119
224243
  /***/ 82346:
@@ -224125,50 +224249,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
224125
224249
  return (mod && mod.__esModule) ? mod : { "default": mod };
224126
224250
  };
224127
224251
  Object.defineProperty(exports, "__esModule", ({ value: true }));
224128
- const chalk_1 = __importDefault(__webpack_require__(90877));
224129
224252
  const get_args_1 = __importDefault(__webpack_require__(2505));
224130
- const logo_1 = __importDefault(__webpack_require__(66669));
224131
224253
  const cmd_1 = __importDefault(__webpack_require__(62422));
224132
- const pkg_name_1 = __webpack_require__(79000);
224133
224254
  const ensure_link_1 = __webpack_require__(65382);
224134
224255
  const repo_1 = __webpack_require__(18726);
224135
- const help = () => {
224136
- console.log(`
224137
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} link`)} [options]
224138
-
224139
- ${chalk_1.default.dim('Options:')}
224140
-
224141
- -h, --help Output usage information
224142
- -r, --repo Link multiple projects based on Git repository (alpha)
224143
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
224144
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
224145
- -d, --debug Debug mode [off]
224146
- --no-color No color mode [off]
224147
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
224148
- -p ${chalk_1.default.bold.underline('NAME')}, --project=${chalk_1.default.bold.underline('NAME')} Project name
224149
- -y, --yes Skip questions when setting up new project using default scope and settings
224150
-
224151
- ${chalk_1.default.dim('Examples:')}
224152
-
224153
- ${chalk_1.default.gray('–')} Link current directory to a Vercel Project
224154
-
224155
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link`)}
224156
-
224157
- ${chalk_1.default.gray('–')} Link current directory with default options and skip questions
224158
-
224159
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link --yes`)}
224160
-
224161
- ${chalk_1.default.gray('–')} Link a specific directory to a Vercel Project
224162
-
224163
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link --cwd /path/to/project`)}
224164
-
224165
- ${chalk_1.default.gray('–')} ${chalk_1.default.yellow('(alpha)')} Link to the current Git repository, allowing for multiple
224166
- Vercel Projects to be linked simultaneously (useful for monorepos)
224167
-
224168
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} link --repo`)}
224169
- `);
224170
- };
224171
- async function main(client) {
224256
+ const help_1 = __webpack_require__(58219);
224257
+ const command_1 = __webpack_require__(72067);
224258
+ async function link(client) {
224172
224259
  const argv = (0, get_args_1.default)(client.argv.slice(2), {
224173
224260
  '--yes': Boolean,
224174
224261
  '-y': '--yes',
@@ -224181,7 +224268,7 @@ async function main(client) {
224181
224268
  '-c': '--confirm',
224182
224269
  });
224183
224270
  if (argv['--help']) {
224184
- help();
224271
+ client.output.print((0, help_1.help)(command_1.linkCommand, { columns: client.stderr.columns }));
224185
224272
  return 2;
224186
224273
  }
224187
224274
  if ('--confirm' in argv) {
@@ -224213,12 +224300,81 @@ async function main(client) {
224213
224300
  }
224214
224301
  return 0;
224215
224302
  }
224216
- exports.default = main;
224303
+ exports.default = link;
224304
+
224305
+
224306
+ /***/ }),
224307
+
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
+ };
224217
224373
 
224218
224374
 
224219
224375
  /***/ }),
224220
224376
 
224221
- /***/ 99744:
224377
+ /***/ 41509:
224222
224378
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
224223
224379
 
224224
224380
  "use strict";
@@ -224235,7 +224391,6 @@ const title_1 = __importDefault(__webpack_require__(16650));
224235
224391
  const util_1 = __importDefault(__webpack_require__(4058));
224236
224392
  const get_args_1 = __importDefault(__webpack_require__(2505));
224237
224393
  const error_1 = __webpack_require__(4400);
224238
- const logo_1 = __importDefault(__webpack_require__(66669));
224239
224394
  const elapsed_1 = __importDefault(__webpack_require__(14099));
224240
224395
  const strlen_1 = __importDefault(__webpack_require__(97330));
224241
224396
  const to_host_1 = __importDefault(__webpack_require__(47914));
@@ -224248,44 +224403,9 @@ const ensure_link_1 = __webpack_require__(65382);
224248
224403
  const get_scope_1 = __importDefault(__webpack_require__(60324));
224249
224404
  const errors_ts_1 = __webpack_require__(39240);
224250
224405
  const error_utils_1 = __webpack_require__(39799);
224251
- const help = () => {
224252
- console.log(`
224253
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} list`)} [app]
224254
-
224255
- ${chalk_1.default.dim('Options:')}
224256
-
224257
- -h, --help Output usage information
224258
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
224259
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
224260
- -d, --debug Debug mode [off]
224261
- --no-color No color mode [off]
224262
- -y, --yes Skip questions when setting up new project using default scope and settings
224263
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
224264
- -S, --scope Set a custom scope
224265
- -m, --meta Filter deployments by metadata (e.g.: ${chalk_1.default.dim('`-m KEY=value`')}). Can appear many times.
224266
- --environment=${chalk_1.default.bold.underline('ENVIRONMENT')} Filter by environment (production|preview)
224267
- -N, --next Show next page of results
224268
-
224269
- ${chalk_1.default.dim('Examples:')}
224270
-
224271
- ${chalk_1.default.gray('–')} List all deployments for the currently linked project
224272
-
224273
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls`)}
224274
-
224275
- ${chalk_1.default.gray('–')} List all deployments for the project ${chalk_1.default.dim('`my-app`')} in the team of the currently linked project
224276
-
224277
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls my-app`)}
224278
-
224279
- ${chalk_1.default.gray('–')} Filter deployments by metadata
224280
-
224281
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls -m key1=value1 -m key2=value2`)}
224282
-
224283
- ${chalk_1.default.gray('–')} Paginate deployments for a project, where ${chalk_1.default.dim('`1584722256178`')} is the time in milliseconds since the UNIX epoch.
224284
-
224285
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} ls my-app --next 1584722256178`)}
224286
- `);
224287
- };
224288
- async function main(client) {
224406
+ const help_1 = __webpack_require__(58219);
224407
+ const command_1 = __webpack_require__(38695);
224408
+ async function list(client) {
224289
224409
  let argv;
224290
224410
  try {
224291
224411
  argv = (0, get_args_1.default)(client.argv.slice(2), {
@@ -224317,7 +224437,7 @@ async function main(client) {
224317
224437
  return 1;
224318
224438
  }
224319
224439
  if (argv['--help']) {
224320
- help();
224440
+ output.print((0, help_1.help)(command_1.listCommand, { columns: client.stderr.columns }));
224321
224441
  return 2;
224322
224442
  }
224323
224443
  const autoConfirm = !!argv['--yes'];
@@ -224491,7 +224611,7 @@ async function main(client) {
224491
224611
  log(`To display the next page, run ${(0, pkg_name_1.getCommandName)(`ls${app ? ' ' + app : ''}${flags} --next ${pagination.next}`)}`);
224492
224612
  }
224493
224613
  }
224494
- exports.default = main;
224614
+ exports.default = list;
224495
224615
  function getDeploymentDuration(dep) {
224496
224616
  if (!dep || !dep.ready || !dep.buildingAt) {
224497
224617
  return '?';
@@ -224550,7 +224670,65 @@ function filterUniqueApps() {
224550
224670
 
224551
224671
  /***/ }),
224552
224672
 
224553
- /***/ 92609:
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:
224554
224732
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
224555
224733
 
224556
224734
  "use strict";
@@ -224563,7 +224741,6 @@ const email_validator_1 = __webpack_require__(88508);
224563
224741
  const chalk_1 = __importDefault(__webpack_require__(90877));
224564
224742
  const humanize_path_1 = __importDefault(__webpack_require__(33234));
224565
224743
  const get_args_1 = __importDefault(__webpack_require__(2505));
224566
- const logo_1 = __importDefault(__webpack_require__(66669));
224567
224744
  const prompt_1 = __importDefault(__webpack_require__(75964));
224568
224745
  const saml_1 = __importDefault(__webpack_require__(21745));
224569
224746
  const email_1 = __importDefault(__webpack_require__(52915));
@@ -224574,36 +224751,8 @@ const emoji_1 = __webpack_require__(35172);
224574
224751
  const pkg_name_1 = __webpack_require__(79000);
224575
224752
  const global_path_1 = __importDefault(__webpack_require__(88976));
224576
224753
  const files_1 = __webpack_require__(48695);
224577
- const help = () => {
224578
- console.log(`
224579
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} login`)} <email or team>
224580
-
224581
- ${chalk_1.default.dim('Options:')}
224582
-
224583
- -h, --help Output usage information
224584
- --no-color No color mode [off]
224585
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
224586
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
224587
-
224588
- ${chalk_1.default.dim('Examples:')}
224589
-
224590
- ${chalk_1.default.gray('–')} Log into the Vercel platform
224591
-
224592
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login`)}
224593
-
224594
- ${chalk_1.default.gray('–')} Log in using a specific email address
224595
-
224596
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login john@doe.com`)}
224597
-
224598
- ${chalk_1.default.gray('–')} Log in using a specific team "slug" for SAML Single Sign-On
224599
-
224600
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login acme`)}
224601
-
224602
- ${chalk_1.default.gray('–')} Log in using GitHub in "out-of-band" mode
224603
-
224604
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} login --github --oob`)}
224605
- `);
224606
- };
224754
+ const help_1 = __webpack_require__(58219);
224755
+ const command_1 = __webpack_require__(23496);
224607
224756
  async function login(client) {
224608
224757
  const { output } = client;
224609
224758
  const argv = (0, get_args_1.default)(client.argv.slice(2), {
@@ -224613,7 +224762,7 @@ async function login(client) {
224613
224762
  '--bitbucket': Boolean,
224614
224763
  });
224615
224764
  if (argv['--help']) {
224616
- help();
224765
+ output.print((0, help_1.help)(command_1.loginCommand, { columns: client.stderr.columns }));
224617
224766
  return 2;
224618
224767
  }
224619
224768
  if (argv['--token']) {
@@ -224674,7 +224823,31 @@ exports.default = login;
224674
224823
 
224675
224824
  /***/ }),
224676
224825
 
224677
- /***/ 68269:
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:
224678
224851
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
224679
224852
 
224680
224853
  "use strict";
@@ -224683,33 +224856,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
224683
224856
  return (mod && mod.__esModule) ? mod : { "default": mod };
224684
224857
  };
224685
224858
  Object.defineProperty(exports, "__esModule", ({ value: true }));
224686
- const chalk_1 = __importDefault(__webpack_require__(90877));
224687
- const logo_1 = __importDefault(__webpack_require__(66669));
224688
224859
  const error_1 = __webpack_require__(4400);
224689
224860
  const files_1 = __webpack_require__(48695);
224690
224861
  const get_args_1 = __importDefault(__webpack_require__(2505));
224691
224862
  const pkg_name_1 = __webpack_require__(79000);
224692
224863
  const errors_ts_1 = __webpack_require__(39240);
224693
224864
  const error_utils_1 = __webpack_require__(39799);
224694
- const help = () => {
224695
- console.log(`
224696
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} logout`)}
224697
-
224698
- ${chalk_1.default.dim('Options:')}
224699
-
224700
- -h, --help Output usage information
224701
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
224702
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
224703
-
224704
- ${chalk_1.default.dim('Examples:')}
224705
-
224706
- ${chalk_1.default.gray('–')} Logout from the CLI:
224707
-
224708
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} logout`)}
224709
- `);
224710
- };
224865
+ const help_1 = __webpack_require__(58219);
224866
+ const command_1 = __webpack_require__(86887);
224711
224867
  async function main(client) {
224712
224868
  let argv;
224869
+ const { authConfig, config, output } = client;
224713
224870
  try {
224714
224871
  argv = (0, get_args_1.default)(client.argv.slice(2), {
224715
224872
  '--help': Boolean,
@@ -224721,10 +224878,9 @@ async function main(client) {
224721
224878
  return 1;
224722
224879
  }
224723
224880
  if (argv['--help']) {
224724
- help();
224881
+ output.print((0, help_1.help)(command_1.logoutCommand, { columns: client.stderr.columns }));
224725
224882
  return 2;
224726
224883
  }
224727
- const { authConfig, config, output } = client;
224728
224884
  if (!authConfig.token) {
224729
224885
  output.note(`Not currently logged in, so ${(0, pkg_name_1.getCommandName)('logout')} did nothing`);
224730
224886
  return 0;
@@ -224777,7 +224933,81 @@ exports.default = main;
224777
224933
 
224778
224934
  /***/ }),
224779
224935
 
224780
- /***/ 46325:
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:
224781
225011
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
224782
225012
 
224783
225013
  "use strict";
@@ -224787,41 +225017,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
224787
225017
  };
224788
225018
  Object.defineProperty(exports, "__esModule", ({ value: true }));
224789
225019
  const chalk_1 = __importDefault(__webpack_require__(90877));
224790
- const logo_1 = __importDefault(__webpack_require__(66669));
224791
225020
  const elapsed_1 = __importDefault(__webpack_require__(14099));
224792
225021
  const url_1 = __webpack_require__(84265);
224793
225022
  const events_1 = __importDefault(__webpack_require__(63274));
224794
225023
  const get_scope_1 = __importDefault(__webpack_require__(60324));
224795
- const pkg_name_1 = __webpack_require__(79000);
224796
225024
  const get_args_1 = __importDefault(__webpack_require__(2505));
224797
225025
  const get_deployment_1 = __importDefault(__webpack_require__(84249));
224798
- const help = () => {
224799
- console.log(`
224800
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} logs`)} <url|deploymentId>
224801
-
224802
- ${chalk_1.default.dim('Options:')}
224803
-
224804
- -h, --help Output usage information
224805
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
224806
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
224807
- -d, --debug Debug mode [off]
224808
- --no-color No color mode [off]
224809
- -f, --follow Wait for additional data [off]
224810
- -n ${chalk_1.default.bold.underline('NUMBER')} Number of logs [100]
224811
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
224812
- --since=${chalk_1.default.bold.underline('SINCE')} Only return logs after date (ISO 8601)
224813
- --until=${chalk_1.default.bold.underline('UNTIL')} Only return logs before date (ISO 8601), ignored for ${'`-f`'}
224814
- -S, --scope Set a custom scope
224815
- -o ${chalk_1.default.bold.underline('MODE')}, --output=${chalk_1.default.bold.underline('MODE')} Specify the output format (${Object.keys(logPrinters).join('|')}) [short]
224816
-
224817
- ${chalk_1.default.dim('Examples:')}
224818
-
224819
- ${chalk_1.default.gray('–')} Print the logs for the deployment ${chalk_1.default.dim('`deploymentId`')}
224820
-
224821
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} logs deploymentId`)}
224822
- `);
224823
- };
224824
- async function main(client) {
225026
+ const help_1 = __webpack_require__(58219);
225027
+ const command_1 = __webpack_require__(70201);
225028
+ async function logs(client) {
224825
225029
  let head;
224826
225030
  let limit;
224827
225031
  let follow;
@@ -224841,11 +225045,11 @@ async function main(client) {
224841
225045
  });
224842
225046
  argv._ = argv._.slice(1);
224843
225047
  deploymentIdOrURL = argv._[0];
225048
+ const { output } = client;
224844
225049
  if (argv['--help'] || !deploymentIdOrURL || deploymentIdOrURL === 'help') {
224845
- help();
225050
+ output.print((0, help_1.help)(command_1.logsCommand, { columns: client.stderr.columns }));
224846
225051
  return 2;
224847
225052
  }
224848
- const { output } = client;
224849
225053
  try {
224850
225054
  since = argv['--since'] ? toTimestamp(argv['--since']) : 0;
224851
225055
  }
@@ -224927,7 +225131,7 @@ async function main(client) {
224927
225131
  }
224928
225132
  return 0;
224929
225133
  }
224930
- exports.default = main;
225134
+ exports.default = logs;
224931
225135
  function compareEvents(d1, d2) {
224932
225136
  const c1 = d1.date || d1.created;
224933
225137
  const c2 = d2.date || d2.created;
@@ -225656,7 +225860,67 @@ async function renderJobSucceeded({ client, contextName, performingPromote, proj
225656
225860
 
225657
225861
  /***/ }),
225658
225862
 
225659
- /***/ 65158:
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:
225660
225924
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
225661
225925
 
225662
225926
  "use strict";
@@ -225670,45 +225934,15 @@ const chalk_1 = __importDefault(__webpack_require__(90877));
225670
225934
  const path_1 = __webpack_require__(85622);
225671
225935
  const emoji_1 = __webpack_require__(35172);
225672
225936
  const get_args_1 = __importDefault(__webpack_require__(2505));
225673
- const logo_1 = __importDefault(__webpack_require__(66669));
225674
225937
  const stamp_1 = __importDefault(__webpack_require__(49079));
225675
- const pkg_name_1 = __webpack_require__(79000);
225676
225938
  const link_1 = __webpack_require__(49347);
225677
225939
  const project_settings_1 = __webpack_require__(61440);
225678
225940
  const pull_1 = __importDefault(__webpack_require__(80800));
225679
225941
  const env_target_1 = __webpack_require__(20229);
225680
225942
  const ensure_link_1 = __webpack_require__(65382);
225681
225943
  const humanize_path_1 = __importDefault(__webpack_require__(33234));
225682
- const help = () => {
225683
- return console.log(`
225684
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} pull`)} [project-path]
225685
-
225686
- ${chalk_1.default.dim('Options:')}
225687
-
225688
- -h, --help Output usage information
225689
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
225690
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
225691
- -d, --debug Debug mode [off]
225692
- --git-branch Specify the Git branch to pull specific Environment Variables for
225693
- --no-color No color mode [off]
225694
- --environment [environment] Deployment environment [development]
225695
- -y, --yes Skip questions when setting up new project using default scope and settings
225696
-
225697
- ${chalk_1.default.dim('Examples:')}
225698
-
225699
- ${chalk_1.default.gray('–')} Pull the latest Environment Variables and Project Settings from the cloud
225700
- and stores them in \`.vercel/.env.\${target}.local\` and \`.vercel/project.json\` respectively.
225701
-
225702
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} pull`)}
225703
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} pull ./path-to-project`)}
225704
-
225705
- ${chalk_1.default.gray('–')} Pull for a specific environment
225706
-
225707
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} pull --environment=${(0, env_target_1.getEnvTargetPlaceholder)()}`)}
225708
-
225709
- ${chalk_1.default.gray('If you want to download environment variables to a specific file, use `vercel env pull` instead.')}
225710
- `);
225711
- };
225944
+ const help_1 = __webpack_require__(58219);
225945
+ const command_1 = __webpack_require__(8444);
225712
225946
  function processArgs(client) {
225713
225947
  return (0, get_args_1.default)(client.argv.slice(2), {
225714
225948
  '--yes': Boolean,
@@ -225722,7 +225956,7 @@ function processArgs(client) {
225722
225956
  function parseArgs(client) {
225723
225957
  const argv = processArgs(client);
225724
225958
  if (argv['--help']) {
225725
- help();
225959
+ client.output.print((0, help_1.help)(command_1.pullCommand, { columns: client.stderr.columns }));
225726
225960
  return 2;
225727
225961
  }
225728
225962
  return argv;
@@ -225772,7 +226006,49 @@ exports.default = main;
225772
226006
 
225773
226007
  /***/ }),
225774
226008
 
225775
- /***/ 29281:
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:
225776
226052
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
225777
226053
 
225778
226054
  "use strict";
@@ -225790,46 +226066,20 @@ const get_deployment_by_id_or_url_1 = __webpack_require__(47662);
225790
226066
  const get_scope_1 = __importDefault(__webpack_require__(60324));
225791
226067
  const handle_error_1 = __importDefault(__webpack_require__(64377));
225792
226068
  const error_utils_1 = __webpack_require__(39799);
225793
- const logo_1 = __importDefault(__webpack_require__(66669));
225794
226069
  const util_1 = __importDefault(__webpack_require__(4058));
225795
226070
  const print_deployment_status_1 = __webpack_require__(27951);
225796
226071
  const stamp_1 = __importDefault(__webpack_require__(49079));
225797
226072
  const ua_1 = __importDefault(__webpack_require__(36308));
225798
- const help = () => {
225799
- console.log(`
225800
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} redeploy`)} [deploymentId|deploymentName]
225801
-
225802
- Rebuild and deploy a previous deployment.
225803
-
225804
- ${chalk_1.default.dim('Options:')}
225805
-
225806
- -h, --help Output usage information
225807
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
225808
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
225809
- -d, --debug Debug mode [off]
225810
- --no-color No color mode [off]
225811
- --no-wait Don't wait for the redeploy to finish
225812
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
225813
- -y, --yes Skip questions when setting up new project using default scope and settings
225814
-
225815
- ${chalk_1.default.dim('Examples:')}
225816
-
225817
- ${chalk_1.default.gray('–')} Rebuild and deploy an existing deployment using id or url
225818
-
225819
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app`)}
225820
-
225821
- ${chalk_1.default.gray('–')} Write Deployment URL to a file
225822
-
225823
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} redeploy my-deployment.vercel.app > deployment-url.txt`)}
225824
- `);
225825
- };
226073
+ const help_1 = __webpack_require__(58219);
226074
+ const command_1 = __webpack_require__(18232);
225826
226075
  /**
225827
226076
  * `vc redeploy` command
225828
226077
  * @param {Client} client
225829
226078
  * @returns {Promise<number>} Resolves an exit code; 0 on success
225830
226079
  */
225831
- exports.default = async (client) => {
226080
+ async function redeploy(client) {
225832
226081
  let argv;
226082
+ const { output } = client;
225833
226083
  try {
225834
226084
  argv = (0, get_args_1.default)(client.argv.slice(2), {
225835
226085
  '--no-wait': Boolean,
@@ -225842,10 +226092,9 @@ exports.default = async (client) => {
225842
226092
  return 1;
225843
226093
  }
225844
226094
  if (argv['--help'] || argv._[0] === 'help') {
225845
- help();
226095
+ output.print((0, help_1.help)(command_1.redeployCommand, { columns: client.stderr.columns }));
225846
226096
  return 2;
225847
226097
  }
225848
- const { output } = client;
225849
226098
  const deployIdOrUrl = argv._[1];
225850
226099
  if (!deployIdOrUrl) {
225851
226100
  output.error(`Missing required deployment id or url: ${(0, pkg_name_1.getCommandName)(`redeploy <deployment-id-or-url>`)}`);
@@ -225945,7 +226194,8 @@ exports.default = async (client) => {
225945
226194
  }
225946
226195
  return 1;
225947
226196
  }
225948
- };
226197
+ }
226198
+ exports.default = redeploy;
225949
226199
 
225950
226200
 
225951
226201
  /***/ }),
@@ -227169,46 +227419,49 @@ exports.default = main;
227169
227419
 
227170
227420
  /***/ }),
227171
227421
 
227172
- /***/ 28646:
227173
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
227422
+ /***/ 95328:
227423
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
227174
227424
 
227175
227425
  "use strict";
227176
227426
 
227177
- var __importDefault = (this && this.__importDefault) || function (mod) {
227178
- return (mod && mod.__esModule) ? mod : { "default": mod };
227179
- };
227180
227427
  Object.defineProperty(exports, "__esModule", ({ value: true }));
227181
- const chalk_1 = __importDefault(__webpack_require__(90877));
227182
- const logo_1 = __importDefault(__webpack_require__(66669));
227183
- const get_scope_1 = __importDefault(__webpack_require__(60324));
227428
+ exports.whoamiCommand = void 0;
227184
227429
  const pkg_name_1 = __webpack_require__(79000);
227185
- const get_args_1 = __importDefault(__webpack_require__(2505));
227186
- const help = () => {
227187
- console.log(`
227188
- ${chalk_1.default.bold(`${logo_1.default} ${(0, pkg_name_1.getPkgName)()} whoami`)}
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
+ };
227189
227442
 
227190
- ${chalk_1.default.dim('Options:')}
227191
227443
 
227192
- -h, --help Output usage information
227193
- -A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
227194
- -Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
227195
- -d, --debug Debug mode [off]
227196
- --no-color No color mode [off]
227197
- -t ${chalk_1.default.bold.underline('TOKEN')}, --token=${chalk_1.default.bold.underline('TOKEN')} Login token
227444
+ /***/ }),
227198
227445
 
227199
- ${chalk_1.default.dim('Examples:')}
227446
+ /***/ 8660:
227447
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
227200
227448
 
227201
- ${chalk_1.default.gray('–')} Shows the username of the currently logged in user
227449
+ "use strict";
227202
227450
 
227203
- ${chalk_1.default.cyan(`$ ${(0, pkg_name_1.getPkgName)()} whoami`)}
227204
- `);
227451
+ var __importDefault = (this && this.__importDefault) || function (mod) {
227452
+ return (mod && mod.__esModule) ? mod : { "default": mod };
227205
227453
  };
227206
- exports.default = async (client) => {
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) {
227207
227460
  const { output } = client;
227208
227461
  const argv = (0, get_args_1.default)(client.argv.slice(2), {});
227209
227462
  argv._ = argv._.slice(1);
227210
227463
  if (argv['--help'] || argv._[0] === 'help') {
227211
- help();
227464
+ output.print((0, help_1.help)(command_1.whoamiCommand, { columns: client.stderr.columns }));
227212
227465
  return 2;
227213
227466
  }
227214
227467
  const { contextName } = await (0, get_scope_1.default)(client, { getTeam: false });
@@ -227221,7 +227474,8 @@ exports.default = async (client) => {
227221
227474
  client.stdout.write(`${contextName}\n`);
227222
227475
  }
227223
227476
  return 0;
227224
- };
227477
+ }
227478
+ exports.default = whoami;
227225
227479
 
227226
227480
 
227227
227481
  /***/ }),
@@ -227669,7 +227923,7 @@ const main = async () => {
227669
227923
  func = __webpack_require__(37327).default;
227670
227924
  break;
227671
227925
  case 'build':
227672
- func = __webpack_require__(19392).default;
227926
+ func = __webpack_require__(12559).default;
227673
227927
  break;
227674
227928
  case 'certs':
227675
227929
  func = __webpack_require__(1165).default;
@@ -227696,22 +227950,22 @@ const main = async () => {
227696
227950
  func = __webpack_require__(41793).default;
227697
227951
  break;
227698
227952
  case 'inspect':
227699
- func = __webpack_require__(91411).default;
227953
+ func = __webpack_require__(16088).default;
227700
227954
  break;
227701
227955
  case 'link':
227702
227956
  func = __webpack_require__(82346).default;
227703
227957
  break;
227704
227958
  case 'list':
227705
- func = __webpack_require__(99744).default;
227959
+ func = __webpack_require__(41509).default;
227706
227960
  break;
227707
227961
  case 'logs':
227708
- func = __webpack_require__(46325).default;
227962
+ func = __webpack_require__(26582).default;
227709
227963
  break;
227710
227964
  case 'login':
227711
- func = __webpack_require__(92609).default;
227965
+ func = __webpack_require__(66298).default;
227712
227966
  break;
227713
227967
  case 'logout':
227714
- func = __webpack_require__(68269).default;
227968
+ func = __webpack_require__(80693).default;
227715
227969
  break;
227716
227970
  case 'project':
227717
227971
  func = __webpack_require__(80860).default;
@@ -227720,10 +227974,10 @@ const main = async () => {
227720
227974
  func = __webpack_require__(62435).default;
227721
227975
  break;
227722
227976
  case 'pull':
227723
- func = __webpack_require__(65158).default;
227977
+ func = __webpack_require__(46230).default;
227724
227978
  break;
227725
227979
  case 'redeploy':
227726
- func = __webpack_require__(29281).default;
227980
+ func = __webpack_require__(90408).default;
227727
227981
  break;
227728
227982
  case 'remove':
227729
227983
  func = __webpack_require__(86614).default;
@@ -227738,7 +227992,7 @@ const main = async () => {
227738
227992
  func = __webpack_require__(72921).default;
227739
227993
  break;
227740
227994
  case 'whoami':
227741
- func = __webpack_require__(28646).default;
227995
+ func = __webpack_require__(8660).default;
227742
227996
  break;
227743
227997
  default:
227744
227998
  func = null;
@@ -243711,7 +243965,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
243711
243965
  /***/ ((module) => {
243712
243966
 
243713
243967
  "use strict";
243714
- module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.6.5\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"Apache-2.0\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-e2e\":\"pnpm test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"pnpm test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.5\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.9.5\"},\"dependencies\":{\"@vercel/build-utils\":\"6.8.2\",\"@vercel/routing-utils\":\"2.2.1\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
243968
+ module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.6.6\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"Apache-2.0\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-e2e\":\"pnpm test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"pnpm test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.5\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.9.5\"},\"dependencies\":{\"@vercel/build-utils\":\"6.8.3\",\"@vercel/routing-utils\":\"2.2.1\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
243715
243969
 
243716
243970
  /***/ }),
243717
243971