This tool helps Enapter customers to work with devices it is alternative for Enapter IDE for EMS Toolkit 3.0. It helpful in the following cases:
- Managing all your EMS setup as a code with Git and Ansible / Puppet
- Establishing CI/CD workflow
- Development and debugging of Enapter Blueprints
- Development and debugging of Enapter Gateway Rules
Version 1:
brew tap enapter/tap && brew install enapterVersion 3:
brew tap enapter/tap && brew install enapter@3Choose your platform and required release on the Releases page.
You should have installed Go tools. Then you can build CLI via the following command:
./build.sh
Also you can pass custom output path:
./build.sh /usr/local/bin/enapter
Note
Version 1 works only with Enapter Cloud connection.
Enapter CLI requires access token for authentication. Obtaining of the token is easy and can be done by following few steps.
- Ensure you have registed Enapter Cloud account. If not, sign up here.
- Log in to your Enapter Cloud account, click on your profile name in top right corner and choose
Account Settings - Select
API Tokensmenu and clickNew Tokenbutton - Follow the instructions on the screen
- Set environment variable
ENAPTER_API_TOKENwith new token. To make it permanent don't forget to add it to configuration files of your shell.
export ENAPTER_API_TOKEN="your token"Please note that if you don't save your token, it is not possible to reveal it anymore. You need generate new token.
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 listNote
Available for Version 1 now.
In order to make life easier with command line interface, you may use Amazon Q. This autocompletion tool has native support for the Enapter CLI for Mac OS X and Linux.

