deploy
The deploy
group of commands are responsible for uploading your component to a DXP organization to which you have access.
Usage: dxp-next cmp deploy [options] <source>
Arguments:
source folder/file path containing the template files to deploy
Options:
-cu, --component-service-url <string> Override the component service url from login (env: COMPONENT_SERVICE_URL)
-t, --tenant <string> Tenant ID to deploy to. If not provided will use configured tenant from login
-h, --help display help for command
Edge components
If you are attempting to deploy an edge component, be aware of the following items:
-
Edge component deployments need to be enabled in the DXP CLI using the
FEATURE_EDGE_COMPONENTS=true
feature flag:FEATURE_EDGE_COMPONENTS=true dxp-next cmp deploy ./components/my-component
The CLI will prompt the user to set this environment variable before deploying an Edge component.
-
If your component contains static files, you will get the following error:
Static files are not supported in edge and have been removed.
To avoid this message, either;
-
manually remove the
staticFiles
setting from the manifest file or, -
contact Squiz Support to have the component converted from server to edge format.
-