---
schema_version: "1"
id: 0e424ac0b390aaaabc14d9cfe42d762e6f72d1eb97e3ee32ec3dc4f22ef0fc0e
title: Create a Message Channel
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/message-channel/message-channel-create.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/message-channel-create.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d226f0109f343e1311b1b04d611d7ff1a9ff1bc742dcb56c209f26220b23129a
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# Create a Message Channel

To create a Lightning Message Channel in your org, use the LightningMessageChannel metadata type.

**note:** See LightningMessageChannel in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_lightningmessagechannel.htm).

To deploy a LightningMessageChannel into your org, create an Salesforce DX project. Include the XML definition in the force-app/main/default/messageChannels/ directory. The LightningMessageChannel file name follows the format _messageChannelName_.messageChannel-meta.xml. To add it to your scratch org, sandbox, or Developer Edition org, run the `sf project deploy start` Salesforce CLI command.

**See Also**  


-   [Trailhead: Set Up Salesforce DX](https://trailhead.salesforce.com/en/content/learn/modules/sfdx_app_dev/sfdx_app_dev_setup_dx)
-   [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm)

