import

The import will take data from a given export directory and load it into Enonic XP at the desired content path.

-?, --help

Displays a detailed help message.

-u <user:password>

The user / password combination for export resource. Requires role ADMIN_LOGIN_ID.

-s <dir>

A relative or absolute path to a directory containing an export structure. Example: /tmp/exports/myExport.

-t <repo:branch:path>

The Enonic XP content path to place the imported data. Example: cms-repo:draft:/.

-h <hostname>

The hostname of the Enonic XP instance. Defaults to localhost.

-p <port>

The http port of the Enonic XP instance. Defaults to 8080.

-i <true|false>

Include id’s of the content in the import.

-n

Apply pretty print of the snapshot output result. This requires that Python is installed on your system.

Example:

$ ./import.sh -u myUser:abc -s /Users/rmy/tmp/myExports/siteExport \
  -t cms-repo:draft:/content/mySite -n