Simple shell scripts which you can use to manage your mender server.
The scripts require the following applications to be installed:
- bash
- curl
- python
In your Yocto project root, ensure that your build environment is initialized:
user@yocto:~/poky$ source oe-init-build-env <build-directory>
And in your conf/local.conf
file, ensure that the MENDER_SERVER_URL
is set to the correct location:
MENDER_SERVER_URL = "https://hosted.mender.io"
This section contains the selection of the scripts that are available in this project.
Uploads a mender artifact to the backend.
When using the mender-deployments-post utility, it is assumed that you have already generated a .mender
file. The mender-deployments-post
script will select the latest artifact based on the provided image.
user@yocto:~/poky/build$ mender-deployments-post <image-name> <artifact-description>
user@yocto:~/poky/build$ mender-deployments-post core-image-base "release-1"
Deletes a device from the inventory.
user@yocto:~/poky/build$ mender-inventory-delete <device-id>
user@yocto:~/poky/build$ mender-inventory-delete "5ad5c95bfaead6000167662e"