GithubHelp home page GithubHelp logo

Inspektre CLI & SDK

Inspektre CLI and SDK is a command line tool and SDK for the Inspektre API.

Wiki

inspektre-cli Wiki can be found here

Purpose

This CLI utility is helpful in performing the following:

  1. Query Inspektre Security Graphs.
  2. Manage projects on Inspektre Platform.
  3. Modify user roles or permissions.
  4. Supress attack patterns or weaknesses or verifications.

inspektre-cli is a graphql client that queries to api.inspektre.io and query the inspektre security graphs.

Usage

Usage: cli [options] [command]

  _                      _    _                           _ _
 (_)_ __  ___ _ __   ___| | _| |_ _ __ ___            ___| (_)
 | | '_ \/ __| '_ \ / _ \ |/ / __| '__/ _ \  _____   / __| | |
 | | | | \__ \ |_) |  __/   <| |_| | |  __/ |_____| | (__| | |
 |_|_| |_|___/ .__/ \___|_|\_\\__|_|  \___|          \___|_|_|
             |_|                                               

Options:
  -V, --version          output the version number
  -h, --help             display help for command

Commands:
  version               Display the version of Inspektre-CLI in use.
  auth [options]        Authenticate to Inspektre Platform.
  projects [options]    List/Create/Update projects on Inspektre Platform.
  playground            Manage temporary access the Inspektre  GraphQLPlayground.

Authorize

Inspektre CLI command authorize is Device Authorization Grant as specified in OAuth 2.0 RFC 8628 located here.

  • To Authorize a device, run inspektre-cli authorize.
  • For verbose mode, run inspektre-cli authorize -v.

Reauthorize

Reauthroize command is used to refresh device authorization and extending the device authorization.

  • To reauthorize, run inspektre-cli reauthorize.
  • For Verbose, run inspektre-cli reauthorize -v.

Environment Variables

  • In order to use Inspektre CLI, Please ensure that an environment variable CLIENT_ID is set.
  • You will be able find the CLIENT_ID under your account at https://app.inspektre.io/app/account.

Development

  • When bumping cli version, Please change it in the package.json manifest file.
  • This entry in the manifestis used to get the version into the CLI Client.

Builds

In order to generate binaries for Mac OS X orWindows or Linux, Vercel pkg is required.

With Yarn

yarn global add pkg

With NPM

npm i -g pkg

Typical Severity

  • Critical, High, Medium, Low, Very Low

Likelihood of Attack

  • High, Low, Medium

inspektre's Projects

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.