Deploy your component to the DXP
To test your component in Matrix, you must deploy your component to the DXP and add it to a component set.
Log in to the DXP
You must sign in to the DXP from the CLI. There are two ways you can sign in and for both of them you will need your tenant ID. The tenant ID is part of the DXP URL:
Find your tenant-ID
Sign in to the DXP Console using a browser.
Select Component Service.
Look at the URL on the browser. It will look like this:
YOUR_TENANT_ID is an alphanumeric identifier specific to your DXP instance.
Copy the tenant ID.
Log in without specifying the tenant ID
Go to your CLI.
Use the following command to sign in:
dxp-next auth login
Use the arrow keys to select your tenant ID from the list provided.
Select Enter. You will see that your tenant ID has been assigned to your session:
Deploy your component:
You now need to deploy your component to the DXP.
In your CLI:
Change to your components directory.
Enter the following command replacing
hello-worldwith the name of the folder that contains your component files:
dxp-next cmp deploy ./hello-world
Go to dxp.squiz.cloud and select All components. Your deployed component will be shown in the All components list.