Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions messages/package_version_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ Display verbose command output. When polling for the status of the creation, thi

# InProgress

Package version creation request status is '%s'. Run "%s package:version:create:report -i %s" to query for status.
Package version creation request status is '%s'. Run "%s package version create report -i %s" to query for status.

# Success

Successfully created the package version [%s]. Subscriber Package Version Id: %s
Package Installation URL: %s%s
As an alternative, you can use the "%s package:install" command.
As an alternative, you can use the "%s package install" command.

# errorPathNotFound

Expand Down
6 changes: 3 additions & 3 deletions test/commands/package/packageVersion.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('package:version:*', () => {
{ ensureExitCode: 0 }
).shellOutput.stdout;
expect(result).to.include("Package version creation request status is '");
expect(result).to.match(/Run "sfd?x? package:version:create:report -i 08c.{15}" to query for status\./);
expect(result).to.match(/Run "sfd?x? package version create report -i 08c.{15}" to query for status\./);
});

it('should create a new package version with async-validation', () => {
Expand All @@ -110,7 +110,7 @@ describe('package:version:*', () => {
// eslint-disable-next-line no-console
console.log(result);
expect(result).to.include("Package version creation request status is '");
expect(result).to.match(/Run "sfd?x? package:version:create:report -i 08c.{15}" to query for status\./);
expect(result).to.match(/Run "sfd?x? package version create report -i 08c.{15}" to query for status\./);
});

// package:version:create --wait --json is tested in versionPromoteUpdate.nut.ts
Expand All @@ -124,7 +124,7 @@ describe('package:version:*', () => {
expect(result).to.match(
/Package Installation URL: https:\/\/login.salesforce.com\/packaging\/installPackage\.apexp\?p0=04t.{15}/
);
expect(result).to.match(/As an alternative, you can use the "sfd?x? package:install" command\./);
expect(result).to.match(/As an alternative, you can use the "sfd?x? package install" command\./);
});

it('should create a new package version (json)', () => {
Expand Down
6 changes: 3 additions & 3 deletions test/commands/package/packageVersionCreate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('package:version:create - tests', () => {
expect(warnStub.callCount).to.equal(0);
expect(logStub.callCount).to.equal(1);
expect(logStub.args[0]).to.deep.equal([
`Successfully created the package version [08c3i000000fylgAAA]. Subscriber Package Version Id: 04t3i000002eya2AAA${os.EOL}Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3i000002eya2AAA${os.EOL}As an alternative, you can use the "sf package:install" command.`,
`Successfully created the package version [08c3i000000fylgAAA]. Subscriber Package Version Id: 04t3i000002eya2AAA${os.EOL}Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3i000002eya2AAA${os.EOL}As an alternative, you can use the "sf package install" command.`,
]);
});

Expand Down Expand Up @@ -182,7 +182,7 @@ describe('package:version:create - tests', () => {
expect(warnStub.callCount).to.equal(0);
expect(logStub.callCount).to.equal(1);
expect(logStub.args[0]).to.deep.equal([
`Successfully created the package version [08c3i000000fylgAAA]. Subscriber Package Version Id: 04t3i000002eya2AAA${os.EOL}Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3i000002eya2AAA${os.EOL}As an alternative, you can use the "sf package:install" command.`,
`Successfully created the package version [08c3i000000fylgAAA]. Subscriber Package Version Id: 04t3i000002eya2AAA${os.EOL}Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3i000002eya2AAA${os.EOL}As an alternative, you can use the "sf package install" command.`,
]);
});

Expand Down Expand Up @@ -227,7 +227,7 @@ describe('package:version:create - tests', () => {
]);
expect(logStub.callCount).to.equal(1);
expect(logStub.args[0]).to.deep.equal([
`Successfully created the package version [08c3i000000fylgAAA]. Subscriber Package Version Id: 04t3i000002eya2AAA${os.EOL}Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3i000002eya2AAA${os.EOL}As an alternative, you can use the "sf package:install" command.`,
`Successfully created the package version [08c3i000000fylgAAA]. Subscriber Package Version Id: 04t3i000002eya2AAA${os.EOL}Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3i000002eya2AAA${os.EOL}As an alternative, you can use the "sf package install" command.`,
]);
});

Expand Down
Loading