Code Deployment
You can manage code versions and securely upload code.
- Code Versions
B2C Commerce lets you have multiple custom code versions uploaded to the system at the same time. The code is arranged in a top-level directory, calledVersion Directories.
You can name each directory in accordance with your versions, for example,v12
orsummer_release
. - Manage Code Versions
A code version is a folder that contains custom cartridges. An instance uses the currently active code version. You can upload additional code versions to the server via WebDAV. These can be new code versions that will be activated later, or previous ones to allow for code rollbacks. - Code Version Best Practices
As a best practice, maintain consistent use of version numbers for each software update. - Compatibility Modes
Compatibility mode refers to a B2C Commerce API version that includes changes that affect backward compatibility with the previous API version. - Compatibility Mode Changes
To upgrade to the latest compatibility mode, you must understand what changed between modes, so that you can make the corresponding changes to your code. - Configure Secure Code Uploads
To upload code securely, use two-factor authentication to upload the code to the staging instance. After the code is on the staging instance, use code replication to propagate the code from staging to the production instance. - Deploy and Replicate Code
Use Business Manager to replicate code from Staging to Production. - Generate, Sign, and Use Client Certificates for Secure Code Uploads
Two-factor authentication to upload code securely to the staging instance requires a username and password or authentication token as one factor and a client certificate as the second factor. Generate the client certificate and sign it with a key provided by Salesforce. You can generate multiple client certificates with different expiration dates. - Collaborative Development and Deployment
The Salesforce B2C Commerce architecture lets you create multiple Sandbox instances where individual developers can work on discrete portions of an application, making efficient use of resources. At release time, developers file their changes back into a source control system for consolidation and testing. - Software Deployment Stages
The software deployment stages for B2C Commerce development include Sandbox, Build and Merge, Staging, Development, and Production.
Infocenter Retirement: On June 30, 2023, the Infocenter was retired, and documentation currently hosted on the Infocenter will be published to Salesforce Help, Commerce Cloud Developer Center, and Salesforce B2C Commerce Developer Documentation Resources. For more information, see the release note.