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.
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. Obtain these images from a source that complies with your organization's copyright and licensing standards.
Procedures
Manifest option
-
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.
ZCLI option
Syntax:
zcli model add-artifact <name> --type=<type> --file-path=<file-path>
Example:
zcli model add-artifact Helix-511 --type=logo-front --file-path=hx511-front.jpg zcli model add-artifact Helix-511 --type=logo-rear --file-path=hx511-rear.jpg