enapter-cli

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: Apache-2.0

README

Enapter CLI

Build Status License Release

This tool helps Enapter customers to work with devices. It useful in the following cases:

  1. Develop devices via blueprints.
  2. Update and monitor devices.

How to install

brew tap enapter/tap && brew install enapter
Get prebuilt binaries

Choose your platform and required release on the Releases page.

Build from source

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

How to use

API token

Enapter CLI requires access token for authentication. Obtaining of the token is easy and can be done by following few steps.

  1. Ensure you have registed Enapter Cloud account. If not, sign up here.

  2. Log in to your Enapter Cloud account, click on your profile name in top right corner and choose Account Settings

  3. Select API Tokens menu and click New Token button

  4. Follow the instructions on the screen

  5. Set environment variable ENAPTER_API_TOKEN with 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.

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL