Skip to content

Commit

Permalink
feat: added an option to the convert command
Browse files Browse the repository at this point in the history
  • Loading branch information
smotwani11 committed Sep 28, 2022
1 parent 9b71bcc commit 71bceb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions messages/package_convert.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ bypass the installation key requirement (either --installationkey or --installat

Bypasses the installation key requirement. If you bypass this requirement, anyone can install your package. Either an --installationkey value or the --installationkeybypass flag is required.

# definitionfile

path to a definition file similar to scratch org definition file that contains the list of features and org preferences that the metadata of the package version depends on

# longDefinitionfile

The path to a definition file similar to scratch org definition file that contains the list of features and org preferences that the metadata of the package version depends on.

# wait

minutes to wait for the package version to be created
Expand Down
6 changes: 6 additions & 0 deletions src/commands/force/package/beta/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export class PackageConvert extends SfdxCommand {
longDescription: messages.getMessage('longKey'),
exactlyOne: ['installationkey', 'installationkeybypass'],
}),
definitionfile: flags.filepath({
char: 'f',
description: messages.getMessage('definitionfile'),
longDescription: messages.getMessage('longDefinitionfile'),
}),
installationkeybypass: flags.boolean({
char: 'x',
description: messages.getMessage('keyBypass'),
Expand Down Expand Up @@ -84,6 +89,7 @@ export class PackageConvert extends SfdxCommand {
{
wait: this.flags.wait as Duration,
installationKey: this.flags.installationkey as string,
definitionfile: this.flags.definitionfile as string,
installationKeyBypass: this.flags.installationkeybypass as boolean,
buildInstance: this.flags.buildinstance as string,
},
Expand Down

0 comments on commit 71bceb6

Please sign in to comment.