Deploy Using Your Own Tools

Not using Salesforce DX tools? That’s OK! Use your own tools and the Metadata API to deploy Lightning web components.

Sometimes, developers and release management teams use deployment environments that don’t use Salesforce DX tools. For example, a deployment environment might use Eclipse, multiple repositories, and tools like ANT or GNU Make. Or, your team may have an established in-house release process. While we recommend using our tools, you can use metadata to deploy components in your own way.

To develop and deploy Lightning web components using packages and Metadata API, follow these steps.

  1. Create a zip archive that includes your component files and a package.xml manifest file. The Metadata API type for Lightning web components is LightningComponentBundle.
  2. Use a tool like the ANT Migration Tool or your own tool to deploy the component to a sandbox or scratch org.

When you use the Salesforce CLI, you get change tracking between your project and your target scratch org. Without these tools, you must come up with your own solution. A repository like Github monitors code changes. Sandboxes support Auditing for changes to data or fields.

If you’re using Prettier, consider adding a pre-commit hook to ensure that your code is properly formatted.