ttnctl
can be used to manage The Things Network from the command line.
Configuration is done with:
- Command line arguments
- Environment variables
- Configuration file
The following configuration options can be set:
CLI flag / yaml key | Environment Var | Description |
---|---|---|
app-id |
TTNCTL_APP_ID |
The application ID that should be used |
app-eui |
TTNCTL_APP_EUI |
The LoRaWAN AppEUI that should be used |
debug |
TTNCTL_DEBUG |
Print debug logs |
discovery-address |
TTNCTL_DISCOVERY_ADDRESS |
The address and port of the discovery server |
router-id |
TTNCTL_TTN_ROUTER |
The id of the router |
handler-id |
TTNCTL_TTN_HANDLER |
The id of the handler |
mqtt-address |
TTNCTL_MQTT_ADDRESS |
The address and port of the MQTT broker |
auth-server |
TTNCTL_AUTH_SERVER |
The protocol (http/https), address and port of the auth server |
Configuration for Development: Copy ../.env/ttnctl.yml.dev-example
to ~/.ttnctl.yml
Source code for The Things Network is released under the MIT License, which can be found in the LICENSE file. A list of authors can be found in the AUTHORS file.