Deploy your component to the DXP

To test your component in Squiz Content Management Service, 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

  1. Sign in to the DXP Console using a browser.

  2. Select Component Service.

  3. Look at the URL on the browser. It will look like this:

    https://dxp.squiz.cloud/organization/YOUR-TENANT-ID/component-service/component-sets

    YOUR_TENANT_ID is an alphanumeric identifier specific to your DXP instance.

  4. Copy the tenant ID.

Log in without specifying the tenant ID

  1. Go to your CLI.

  2. Use the following command to sign in:

    dxp-next auth login

  3. Use the arrow keys to select your tenant ID from the list provided.

    This image shows the CLI with a message saying 'login successful'. An instruction says 'select a tenant'. There are 2 tenants to choose from.

  4. Select Enter. You will see that your tenant ID has been assigned to your session: this image shows a message that says that your login is successful

Log in specifying the tenant ID.

  1. Go to your CLI.

  2. Enter the following command, replacing YOUR-TENANT-ID with the tenant ID you have just copied.

    dxp-next auth login --tenant=YOUR-TENANT-ID

  3. Enter your userID and password when prompted.

You will now be signed in to the DXP from the CLI.

Deploy your component:

You now need to deploy your component to the DXP.

In your CLI:

  1. Change to your components directory.

  2. Enter the following command replacing hello-world with the name of the directory that contains your component files:

    dxp-next cmp deploy ./hello-world

  3. Go to dxp.squiz.cloud and select All components. Your deployed component will be shown in the All components list.

    This image shows the newly deployed component in the DXP All Components page. It appears as a card with the title