Upload managed assets using wchtools
Use wchtools to upload managed content assets such as category images.
Procedure
- Download and install wchtools from GitHub.
- Package the content to upload. For example, the category images.
- Copy the content such as category images to upload to a working directory.
The working directory must follow the file structure that exists in the WCH-Commerce-Types.zip archive downloaded in a previous task. For example:
- working_dir/WCH-Commerce-Types/assets/dxdam/path_to_image_assets
Where path_to_image_assets is the path to the file locations containing the category images.
- Initialize wchtools with a user in Watson Content Hub that has manager or administration authority to the tenant:
wchtools init
- Use wchtools to upload the category images to Watson Content Hub:
wchtools push -A --dir working_dir/WCH-Commerce-Types --password WCH_user_password
What to do next
After uploading the content images to Watson Content Hub, we can use Management Center to work with the assets.