Upload static web assets using wchtools

Use wchtools to upload static web assets such as JavaScript, CSS, and image files. This is required if we enable the Watson Content Hub store function in the Store Management tool.


Procedure

  1. Download and install wchtools from GitHub.

  2. Package the store's static web assets using the following naming convention:

    • working_dir/WCH-Commerce-Types/assets/StoreAssets/asset_store_name

    Where asset_store_name is the name of the storefront asset store. For example, AuroraStorefrontAssetStore.

  3. Initialize wchtools with a user in Watson Content Hub that has manager or administration authority to the tenant:

      wchtools init

  4. Push the WCH-Commerce-Types assets to the hub:

      wchtools push -A --dir working_dir/WCH-Commerce-Types --password WCH_user_password