Upload and run a job
Prerequisites
-
Node 18
-
npm
-
dxp-cli-next
Procedure
-
Create a directory in which to store your package.
-
Create your code in the following files:
-
main.js
-
manifest.json
-
-
Run
npm init
. -
Run
npm install <packagename>
to install any required packages and dependencies. -
Upload the entire contents of the directory using the
uploadJob
CLI command. -
Navigate to the Jobs page within Squiz DXP:
-
Your newly uploaded job will be in the list of jobs.
-
Click on the name of your new job to open the Job executions page.
-
Click on Start job to open the Start job modal.
-
On the Start job modal:
-
Select the
context
in which to run the job. -
Define the values for
inputs
.
-
-
Click on Start job to start the job.