Publishing Cosmos DX components
Publish your Cosmos digital experience (DX) components to the Pega Infinity Server so that the component is discoverable as you author in the component palette. As a result, you can use the components while building the UI of your application.
Ensure that you have authentication to access the resources in the Pega Infinity Server to list, publish, or delete components. For more information, see Authenticating Pega Infinity Server user access.
- Ensure that your default access group is mapped to the application where you want to publish the component. If you do not use your default access group, use the full application URL alias.
- Ensure that you can access the ruleset in which you want to publish your custom component.
- Open your preferred terminal tool.
- Enter
npm run publish
.Note: After you publish the component, Constellation creates the Rule-UI-Component instance with the name of the component on the Pega Infinity Server. - Complete the parameter values:
- For the
component
, enter the name of the component that you want to publish. - For the
rulesetName
, enter the name of the ruleset. - For the
rulesetVersion
, enter the version of the ruleset.Note: Make sure you unlock the relevant ruleset version before you publish. - For the
devBuild
, enter the development build that you use for debugging.
Note: You can also preconfigure the values in a tasks.config.json
file.For example: { "components-server-config": { "server": "http://127.0.0.1:8080/prweb", "user": "customcomponentoperator", "password": "pwd" "rulesetName": "TestPega-C11nGall", "rulesetVersion": "01-01-03", "sourceOfComponents": "Server", "devBuild": false, } }
- For the
- Optional: To list your custom components and ensure that your component is displayed on
the list, run the
npm run list
command.
<organization>_<library>_<component name>
Previous topic Viewing existing Cosmos DX components in Storybook Next topic Listing Cosmos DX components