You can get signed OTA updates running on your devices in just a few commands.
Follow the file update tutorial below using the live terminal to see how easy it is to increase your security resilience with Thistle.
It can take some time to load and start the console.
You can run the following commands in the terminal above to try out the OTA file update tutorial.
export THISTLE_TOKEN=$(cat) # Enter, paste staging project access token, and ctrl+d
trh --signing-method="remote" init
mkdir -p release
echo "Test Thistle File Update" > release/myapp
trh --signing-method="remote" prepare --target="release" --file-base-path="/ota/bin"
trh --signing-method="remote" release
# Create tuc-config.json file
trh --signing-method="remote" gen-device-config \
--device-name="demo-device" \
--enrollment-type="pre-enroll" \
--persist="/ota" \
--config-path="./tuc-config.json"
# Run tuc in background
tuc --log-level info -c tuc-config.json &
# Verify file content
cat /ota/bin/myapp # Should see "Test Thistle File Update"