---
schema_version: "1"
id: 29ff0fec4cd4f44acb43bcb16372b5688977297ea3a5b8d6c86c7161e2983d35
title: Deploy a Custom Component
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/salesforce-commerce/guides/d2c-commerce/b2b-b2c-comm-deploy-lwc-component.md
canonical_url: https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-deploy-lwc-component.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 810203e5b90552e8a8dd1ff25a5591d45199a667ca122cd19538358404086be9
products:
  - B2B Commerce Developer Guide
  - Salesforce APIs
---
# Deploy a Custom Component

Deploy a Lightning web component to use it on pages in your B2B store built with an LWR template.

1.  From the component project directory in Visual Studio Code, right-click the default folder under force-app/main, and select **SFDX: Deploy Source to Org**.

    ![Screenshot of SFDX deploy source to org menu in VS Code.](https://developer.salesforce.com/media/d2c-commerce/deploy_lwc.png)

2.  On the Output tab of the integrated terminal, view the results of your deployment. SFDX displays a deployment status notice that includes an exit code, such as “SFDX: Deploy Source to Org ... ended with exit code 0.” Exit code 0 means that the command ran successfully.

    ![Screenshot of deployment  success message.](https://developer.salesforce.com/media/d2c-commerce/success_deploy_lwc.png)

**See Also**

- [Add a Custom Component to Your Store](https://developer.salesforce.com/docs/commerce/salesforce-commerce/guide/b2b-b2c-comm-add-lwc-component.htm)
