Introduction
Enapter CLI is a device management command-line tool for Enapter Energy Management System Toolkit. You can use it to manage your Enapter:
- devices,
- rules,
- blueprints.
Setup
Enapter CLI requires access token for authentication. Obtaining of the token is easy and can be done by following few steps.
- Navigate to your Enapter Gateway 3.0 Web Interface
Settingspage by using IP address or mDNS name http://enapter-gateway.local/settings. - Enapter your Enapter Gateway password.
- Click
API Tokenand copy token to clipboard. - Set environment variables
ENAPTER3_API_TOKEN,ENAPTER3_API_URLandENAPTER3_API_ALLOW_INSECURE. To make it permanent don't forget to add it to configuration files of your shell.
export ENAPTER3_API_TOKEN="your token"
export ENAPTER3_API_URL="http://ip_address/api"
export ENAPTER3_API_ALLOW_INSECURE=true
- Check connection works by running
enapter3 device list