[cli] Add --git-branch to pull command help output (#10382)

Improves the help for pull command by adding --git-branch to the output.
This commit is contained in:
Maz
2023-08-22 22:57:29 +03:30
committed by GitHub
parent c615423a0b
commit ae4a9535c1
2 changed files with 19 additions and 0 deletions

View File

@@ -22,6 +22,16 @@ export const pullCommand: Command = {
deprecated: false,
multi: false,
},
{
name: 'git-branch',
description:
'Specify the Git branch to pull specific Environment Variables for',
argument: 'branch',
shorthand: null,
type: 'string',
deprecated: false,
multi: false,
},
{
name: 'yes',
description:
@@ -45,6 +55,10 @@ export const pullCommand: Command = {
name: 'Pull for a specific environment',
value: `${packageName} pull --environment=${getEnvTargetPlaceholder()}`,
},
{
name: 'Pull for a preview feature branch',
value: `${packageName} pull --environment=preview --git-branch=feature-branch`,
},
{
name: 'If you want to download environment variables to a specific file, use `vercel env pull` instead',
value: `${packageName} env pull`,