Newer Version Available

This content describes an older version of this product. View Latest

Generate the Package

When you’re ready to test or share your package, use the force:package:create command to create a package.

If you are using a namespace, specify the package namespace in the sfdx-project.json file. To learn more, see Understanding Namespaces.

To create the package, change to the project directory. The name becomes the package alias, which is automatically added to the project file.

The output is similar to this example.

Update the Package

To update the name or description of an existing package, use this command.

You can’t change the package namespace or package type after you create the package.

Note