Identity File
The identity file is an optional file that takes priority over the configuration file if a field is present in both files. In order to use an identity file, the identity_path
field in the configuration file must be populated.
Any field of the configuration can be overridden with the identity file. This can allow you to use a single configuration file across multiple projects. See the configuration file for more information.
Example basic configuration:
{
"device_enrollment_token": "[REDACTED]",
"name": "identity_override"
}
Provisioning
The Thistle Release Helper can be used to provision identity files for your fleet of devices:
$ ./trh identity --device-name "tutorial" --pre-enroll
Identity file generated at path "./identity.json"
$ cat identity.json
{
"name": "tutorial",
"device_id": "[REDACTED]",
"device_token": "[REDACTED]"
}