Use the ZEDEDA CLI to Update a Hardware Model Logo

This article describes how to update a device's hardware model logo in the Marketplace.

This is a series of articles. You will likely follow them in this order.

  1. Create a Hardware Model  
  2. Use the ZEDEDA CLI to Upload a Hardware Model 
  3. Use the ZEDEDA CLI to Update a Hardware Model Logo - You are here!

Prerequisites

  • Ensure that a ZCLI container is running.
  • Ensure that you have the front and back logo for the hardware model that you will update.

Procedures

  1. In your terminal, check the ZCLI Docker container ID.
    docker ps | grep -i zcli
  2. Upload the front and back logo files to the ZCLI Docker container "/tmp" folder. Do so for both the front and back logos.
    docker cp /path/to/file/LOGO_FILE_NAME ZCLI_CONTAINER_ID:/tmp
  3. Export the hardware model. A new directory will be created.
    zcli model export-manifest MODEL_NAME && ls
  4. Navigate to the new directory.
    cd FOLDER_NAME
  5. Add the content to the manifest.json file. Replace FRONT_LOGO_FILE_NAME and BACK_LOGO_FILE_NAME with the appropriate values.
    sed -i 's/"logo": {},/"logo": {\
    "logo_front": "\/tmp\/FRONT_LOGO_FILE_NAME",\
    "logo_back": "\/tmp\/BACK_LOGO_FILE_NAME"\
    },/' manifest.json
  6. Update the hardware model and reference the updated manifest.json. Do so for both the front and back logos.
    zcli model update MODEL_NAME --hardware-details=manifest.json
  7. Confirm that your device has been updated. To do so, log in to the ZEDEDA GUI and navigate to Marketplace > Models.
Was this article helpful?
1 out of 1 found this helpful