Giter Site home page Giter Site logo

alexeykukin / enapter-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enapter/enapter-cli

0.0 0.0 0.0 551 KB

Cross-platform device management command-line tool for Enapter Energy Management System Toolkit

Home Page: https://developers.enapter.com

License: Apache License 2.0

Shell 1.40% Go 98.60%

enapter-cli's Introduction

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

 macOS - recommended

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

  1. 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.

Autocompletion in your favourite terminal app

In order to make life easier with command line interface, you may use Fig - the next-generation command line. This autocompletion tool has native support for the Enapter CLI for Mac OS X and Linux.

enapter-cli's People

Contributors

danya avatar dependabot[bot] avatar kulti avatar nkrasko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.