Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

optk-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optk-cli

developer tool for creating opentok sessions and tokens using command line

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

optk

A command line interface developer tool for creating OpenTok sessions and tokens.

Installation

npm install optk-cli -g

Usage

You can run optk -h to see a list of commands and their options.

Storing a key and secret

There are 3 ways to specify a key and secret when a command. They are listed in order of priority:

  • command line parameters (-k, --key, -s, --secret)
  • environment variables (OPTK_KEY, OPTK_SECRET)
  • local .optk file (see below)

Priority

You can use any combination of the above, but note the priority of which values are read. For example:

$ OPTK_KEY=12345 OPTK_SECRET=abcdef optk session --key 67890

In the command above, the key specified as a command line parameter will override the key specified in the environment variable.

Using a local .optk file

You can create a file named .optk in your home directory (Mac OS X or Linux: ``~/.optk, Windows: $USERPROFILE/.optk`) to specify your key and secret.

The format of the file is the following:

key=KEYVALUE
secret=SECRETVALUE

FAQs

Package last updated on 12 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc