New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tog-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tog-cli

Tog (short for toggle) is a framework for clients and servers to converse about feature flags over Redis.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Tog CLI

npm version CircleCI

Tog (short for toggle) is a framework for clients and servers to converse about feature flags over Redis.

This is the command-line tool that interacts with the Server API to update flags and experiments.

Prerequisites

  1. Node.js >= 10.0

Versioning

Tog command-line uses Semantic Versioning 2.

Getting Started

  1. Install: npm install -g tog-cli
  2. Log in: tog login -h <host-url>, where <host-url> is the address to your deployment of Tog Server (e.g. https://tog.mysite.com)

Examples

# Set my_app as default namespace
> tog config namespace my_app

# List flags
> tog list
namespace: my_app
┌──────────────┬─────────────┬───────────────┐
│ name         │ description │ rollout       │
├──────────────┼─────────────┼───────────────┤
│ blue-button  │ -           │ - value: true │
└──────────────┴─────────────┴───────────────┘

# Get a flag
> tog get blue-button
namespace: my_app
name: blue-button
description: "Make the button blue"
rollout:
  - value: true
    percentage: 30
  - value: false

# Set a flag's description
> tog set blue-button -d "Make the button blue"

# Set a flag's rollout
> tog set blue-button --rollout "[{ percentage: 30, value: true }, value: false]"

# Set a flag's rollout to always true
> tog set blue-button --on

# Set a flag's rollout to always false
> tog set blue-button --off

Keywords

FAQs

Package last updated on 03 Mar 2020

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