This article describes how to update a device's hardware model logo in the Marketplace.
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
- In your terminal, check the ZCLI Docker container ID.
docker ps | grep -i zcli
- 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
- Export the hardware model. A new directory will be created.
zcli model export-manifest MODEL_NAME && ls
- Navigate to the new directory.
cd FOLDER_NAME
- 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 - 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
- Confirm that your device has been updated. To do so, log in to the ZEDEDA GUI and navigate to Marketplace > Models.