Salesforce DX CLI v42 Release Notes

Here are the new and changed features in recent updates of the Salesforce CLI and the salesforcedx plug-in.

Run sfdx version to display the version of the Salesforce CLI installed on your computer. Run sfdx plugins --core to display the version of the installed salesforcedx plug-in.

Run sfdx update to update both the CLI and the salesforcedx plug-in to the latest available version.

Click here for the v41 release notes.

42.7.0 (March 15, 2018)

42.6.0 (March 8, 2018)

42.5.0 (March 1, 2018)

42.4.0 (February 22, 2018)

42.3.0 (February 15, 2018)

42.2.1 (February 10, 2018)

Welcome to the first release of the Salesforce CLI v42 in Spring ’18. We have several new commands and parameters, as well as some changes to existing commands and parameters. Read all about it in the Salesforce Release Notes. Here's what's changed.

New Commands

Creates skeleton Apex trigger source files.

Logs you out of orgs that you previously authorized.

Updates a second-generation package.

Changed Commands

Generates a sample .forceignore file in your new project.

New Parameters

force:apex:test:run: -t | --tests
Runs individual methods of Apex test classes.

force:apex:test:run: -y | --synchronous
Runs tests from a single Apex class synchronously.

force:schema:sobject:describe: -t | --usetoolingapi
Executes with Tooling API.

force:package2:version:create: -s | --buildinstance
The instance where the package version is created—for example, NA50.

force:package2:version:create: -e | --nonamespace
Creates the package with no namespace.

force:package2:version:update: -p | --noprompt
No prompt to confirm setting the package version as released.

force:data:record:create, force:data:record:delete, force:data:record:get, force:data:record:update, and force:data:soql:query: --perfloglevel (no short name)
Gets data on API performance metrics from the server.

Changed Parameters

force:data:bulk:upsert: -i | --externalid
Changed from being optional to required.

Installation and Configuration Changes

The salesforcedx plug-in is bundled with the CLI. When you install the CLI, you also get the plug-in. To check the version of the installed core salesforcedx plug-in, use the --core parameter:
sfdx plugins --core

The SFDX_DISABLE_ENCRYPTION environment variable is no longer supported.
The variable was deprecated in the previous release.