Leverege Platform

Leverege Platform

  • Overview
  • JSDocs
  • REST API
  • Help

›Utilities

Platform Overview

  • Overview
  • Architecture
  • Core Concepts

Guides

  • Platform Setup
  • Building a Project
  • API UI

Services

  • API Server
  • Message Processor
  • Transponder
  • Reason
  • Scheduler
  • Messenger
  • Emailer
  • Rest Server
  • DB Curator

API

  • API
  • Interface
  • Project
  • System
  • Device
  • Blueprint
  • Collection
  • Child
  • History
  • Scenario
  • Script
  • Template
  • Timer
  • User
  • Users

Server Libraries

  • Log
  • Messages
  • Message Queue
  • Cache
  • Lock
  • Limit
  • Cluster Manager
  • Error
  • Exit

Utilities

  • Promise
  • Data Store
  • Factory
  • Path
  • Reasoner
  • Object Util
  • Array Util
  • String Util
  • Base62 Util
  • Value Cache
  • Validator
  • Lol

UI

  • API Redux
  • UI Builder
  • UI Elements
  • UI Redux
  • UI Mapbox Elements
  • UI Active Theme
  • UI Color Elements
  • UI Linear View Elements

Lol

Leverege Operational Lexicon, or LOL is a cli tool for interacting with the Leverege API. It makes and curls every request possible to the Leverege API. This can be used for many different things from testing to sending data.

Install

npm install -g @leverege/lol

Usage

  lol help

  Usage: lol [options] [commands]

  To pass complex objects, use JSON objects wrapped in single quotes.

  Commands:
    help : this message
    set host <host> : sets the host to connect to
    set project <project id> : sets the project id to use by default

    projects : lists the available projects
    projects create <obj> : creates a project
    projects help : lists the projects options

    users : list the platform users
    users help : list users options

    project <id> : gets the project
    project <id> help : lists the available options on the project
    project <id> update : lists the available options on the project
    project <id> <resource> : lists the projects resources, where:

      <resources> include members, accounts, apiAccess, networks, scripts,
      systems, messageRoutes, scenarios, timers, blueprints

      If the lol set project <projectId> is used, this
        lol project xxx blueprints
      can be reduced to
        lol blueprints

    project <id> : returns the project's information
    project <id> help : list the projects options
    blueprint <id> : returns the blueprint's information
    blueprint <id> help : list the blueprints options
    attribute <id> : returns the attribute's information
    attribute <id> help: list the attribute options
    system <id> : returns the system's information
    system <id> help : list the system options
    device <id> : returns the device's information
    device <id> help : list the devices options
    messageRoute <id> : returns the messageRoute's information
    messageRoute <id> help : list the messageRoute options
    script <id> : returns the script's information
    script <id> help : list the script options
    apiAccess <id> : returns the apiAccess's information
    apiAccess <id> help : list the apiAccess options
    timer <id> : returns the timer's information
    timer <id> help : list the timer options
    user <id> : returns the user's information
    user <id> help : list the user options

    interface <system> <type> : calls the interface

    getDeviceByNetworkAlias <networkId> <propertyKey> <value> : returns the device with the given network id
    forgotPassword <username> <projectId> : send password reset message
    resetPassword

  options:
    -extract <path> : This will print the value from the result specified by path.

Examples

To list your projects

lol projects 

To list blueprints in a project

lol project <id> blueprints

To change the name of a blueprint

lol blueprint <id> update '{"name" : "My New Name" }'
← ValidatorAPI Redux →
  • Install
  • Usage
  • Examples
Leverege Platform
Docs
Overview
Connect
FacebookLinkedInTwitter
Facebook Open Source