0.7.0 • Published 5 years ago

@appknobs/cli v0.7.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

APPKNOBS CLI

CLI interface for Appknobs.io

Hint: the CLI comes with two aliases: knobs and appknobs

Usage

npm i -g @appknobs/cli

$ knobs --help
  █████╗  ██████╗  ██████╗  ██╗  ██╗ ███╗   ██╗  ██████╗  ██████╗  ███████╗
 ██╔══██╗ ██╔══██╗ ██╔══██╗ ██║ ██╔╝ ████╗  ██║ ██╔═══██╗ ██╔══██╗ ██╔════╝
 ███████║ ██████╔╝ ██████╔╝ █████╔╝  ██╔██╗ ██║ ██║   ██║ ██████╔╝ ███████╗
 ██╔══██║ ██╔═══╝  ██╔═══╝  ██╔═██╗  ██║╚██╗██║ ██║   ██║ ██╔══██╗ ╚════██║
 ██║  ██║ ██║      ██║      ██║  ██╗ ██║ ╚████║ ╚██████╔╝ ██████╔╝ ███████║
 ╚═╝  ╚═╝ ╚═╝      ╚═╝      ╚═╝  ╚═╝ ╚═╝  ╚═══╝  ╚═════╝  ╚═════╝  ╚══════╝



  Usage: knobs [options] [command]

  Options:

    -V, --version                output the version number
    -h, --help                   output usage information

  Commands:

    parse [options] <path>       Find & upload feature flags from your project
    app-info                     Retrieve app name and appID
    app-remove [options]         Deletes the current app and all associated records from Appknobs
    apikey                       Retrieve your API key
    console                      Open Appknobs web console at console.appknobs.io
    register [email] [password]  Register on appknobs.io using your email address and password
    login [email] [password]     Log in to the service
    logout                       Log out from the service
    user                         Show current user

$ appknobs parse

Find & upload feature flags from your project. Will auto-guess the framework type if not specified.

Options:
  -t --type <framework>  Specify the framework type: "angular" or "react"
  -h, --help             output usage information

Auto feature-discovery by appknobs parse is supported in Angular and React. In Angular only .html files are considered at the moment.

You can run the command multiple times, flags are recorded only once.

About project types: usually, the framework/library is correctly guessed, so you don't need to specify anything. Pass --type Angular if your flags are not found as the default/fallback is React.

Examples

To find flags in ./src in your React app:

$ appknobs parse src/

To discover flags in an Angular app the same command works just fine:

$ appknobs parse src/

In case you're file names don't follow the Angular convention try

$ appknobs parse src/ --type angular

Note: the authentication cache is stored in YOUR_HOME_DIR/.appknobs/congito.json.

0.7.0

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.7

5 years ago

0.4.6

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.24-alpha.0

5 years ago

0.1.23-alpha.0

5 years ago

0.1.22-alpha.0

5 years ago

0.1.21-alpha.0

5 years ago

0.1.20-alpha.0

5 years ago

0.1.19-alpha.0

5 years ago

0.1.18-alpha.0

5 years ago

0.1.17-alpha.0

5 years ago

0.1.16-alpha.0

5 years ago

0.1.15-alpha.0

5 years ago

0.1.14-alpha.0

5 years ago

0.1.13-alpha.0

5 years ago

0.1.12-alpha.0

5 years ago

0.1.11-alpha.0

5 years ago

0.1.10-alpha.0

5 years ago

0.1.9-alpha.0

5 years ago

0.1.8-alpha.0

5 years ago

0.1.7-alpha.0

5 years ago

0.1.6-alpha.0

5 years ago

0.1.5-alpha.0

5 years ago

0.1.4-alpha.0

5 years ago

0.1.3-alpha.0

5 years ago

0.1.2-alpha.0

5 years ago

0.1.1-alpha.0

5 years ago

0.1.0-alpha.0

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.10

5 years ago