Exporting your WCM library
Exporting Process
- Use the directory where you want to export as your base directory when running the commands.
-
Export the Page Hierarchy xml by running the following command.
# assumes other required parameters are already set via config file in store or via enviroment variables dxclient wcm-library-export \ -dxUsername {DXUSERNAME} \ -dxPassword {DXPASSWORD} \ -dxConnectUsername {DXUSERNAME} \ -dxConnectPassword {DXPASSWORD} \ -dxWASUsername {DXUSERNAME} \ -dxWASPassword {DXPASSWORD} \ -librariesName {LIBRARYNAME} \ -hostname $HOSTNAME \ -dxProfileName $DXPROFILENAME \ -hostname $HOSTNAME \ -dxConnectPort $DXCONNECTPORT;
:: assumes other required parameters are already set via config file in store or via enviroment variables dxclient wcm-library-export ^ -dxUsername {DXUSERNAME} ^ -dxPassword {DXPASSWORD} ^ -dxConnectUsername {DXUSERNAME} ^ -dxConnectPassword {DXPASSWORD} ^ -dxWASUsername {DXUSERNAME} ^ -dxWASPassword {DXPASSWORD} ^ -librariesName {LIBRARYNAME} ^ -hostname %HOSTNAME% ^ -dxProfileName %DXPROFILENAME% ^ -hostname %HOSTNAME% ^ -dxConnectPort %DXCONNECTPORT%;
Notes on parameters:
librariesName
should be"{Library Name}"
."Woodburn Insurance"
if you are on Woodburn Insurance Demo- Ensure to place your correct credentials in the
{DXUSERNAME}
and{DXPASSWORD}
.
Output
Find in your base directory the xml output in store/outputFiles/wcmLibrary (“The zip output file should look something like this: wcm-library-export-20220913022248.zip
”). Move the exported zip to a different directory to ensure it would not be lost.
See more detailed information here.