Giter Club home page Giter Club logo

jsriffleutils's Introduction

jsRiffle Utils

A set of tools that can be used to do helpful things with Exis that I build as I need them.

  1. [Exis CLI Tool](#Exis CLI Tool)
  2. [Token Getter](#Token Getter)

Exis CLI TOOL

Login with your Exis Developer Credentials to open a connection and than use riffle commands from cli

Usage: node exis_cli.js

Option Flags:

  • -- help - Show help dialogue
  • -e - Authenticate using environment variables EXIS_DOMAIN and EXIS_TOKEN.
  • -p domain - Authenticate using previously stored domain profile.
  • --script /path/to/file - Run a script of instructions from a file. Use // to denote comments.

Commands:

  • help - show help dialogue.
  • help storage - show dialogue detailing storage API and options.
  • help [command] - show detailed help dialogues for any specified commands.
  • use -d domain - switch working domain.
  • use -s domain -c collection - switch working domain to xsCollection API for Storage Appliance with domain. Note: The 'xs' variable is your current working domain or Appliance API
  • xs.call('ep', ...args); - make a call using the cwd.
  • xs.publish('channel', ...args) - make a publish using the cwd.
  • xs.register('ep', func) - Must use keyword func register to recieve calls using the cwd.
  • xs.unregister('ep') - unregister a call on the cwd.
  • xs.subscribe('channel', func) - Must use keyword func subscribe to a channel using the cwd.
  • xs.unsubscribe('channel') - unsubscribe from a channel using the cwd.
  • clear | c - clear screen.
  • save - save the current logged in token and domain as a profile to be used later for authentication with -p.
  • logs - follow the logs for the current working domain.
  • import -f /path/to/file -n name - Import a node module at path and store under name.
  • script -f /path/to/file - Run a script of instructions from a file. Use // to denote comments.
  • exit - exit CLI Tool.

Token Getter

Retrieve a token for a particular domain that you can use to join the fabric with. Tokens are good for 60 days.

Usage: node token_getter.js

Option Flags:

  • -- help - Show help dialogue
  • -e - Authenticate using environment variables EXIS_DOMAIN and EXIS_TOKEN.
  • -p domain - Authenticate using previously stored domain profile.
  • -d - Delete the token from the specified Auth Appliance.
  • -l - List the tokens belonging to a domain from the specified Auth Appliance.
  • -s - Save the token as a profile that you can use for later authentication with the -p flag.
  • -f /path/to/file - Save the token to the specified file.

jsriffleutils's People

Watchers

 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.