npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

wittycli

v0.1.0

Published

Wit.ai CLI

Readme

wittycli

Wit.ai CLI

oclif Version Downloads/week License

Usage

$ npm install -g wittycli
$ wittycli COMMAND
running command...
$ wittycli (-v|--version|version)
wittycli/0.1.0 win32-x64 node-v12.19.0
$ wittycli --help [COMMAND]
USAGE
  $ wittycli COMMAND
...

Commands

wittycli apps:post

Creates a new app for an existing user.

USAGE
  $ wittycli apps:post

OPTIONS
  -a, --auth=auth
      (required) Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP 
      header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it 
      publicly. You can obtain one in Settings for your app. Alternatively you can set WIT_AUTH_TOKEN environment 
      variable.

  -h, --help
      show CLI help

  -l, --lang=lang
      (required) Language code, in the ISO 639-1 format.

  -n, --name=name
      (required) Name of the new app.

  -p, --private
      Private if flag provided.

  -t, --timezone=timezone
      Default timezone of your app. Defaults to America/Los_Angeles.

  -v, --version=version
      Every request requires a version parameter either in the URL or in the headers. This parameter is a date that 
      represents the "version" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, 
      but when we do make these changes, this parameter will allow you to continue to use the API as before and give you 
      time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a 
      version parameter will hit the latest version of our API.

  --dot=dot
      Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from 
      json response.

EXAMPLE
  $ wittycli apps create --name=witapp --lang=en --private --timezone=Europe/Brussels

See code: src\commands\apps\post.ts

wittycli export

Exports Get a URL where you can download a ZIP file containing all of your app data. This ZIP file can be used to create a new app with the same data.

USAGE
  $ wittycli export

OPTIONS
  -a, --auth=auth
      (required) Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP 
      header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it 
      publicly. You can obtain one in Settings for your app. Alternatively you can set WIT_AUTH_TOKEN environment 
      variable.

  -d, --dir=dir
      Path of the output directory. If set this command will download a ZIP file and unzip to a provided directory.

  -h, --help
      show CLI help

  -o, --output=output
      Path of the output file. If set this command will download a ZIP file to a provided path.

  -v, --version=version
      Every request requires a version parameter either in the URL or in the headers. This parameter is a date that 
      represents the "version" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, 
      but when we do make these changes, this parameter will allow you to continue to use the API as before and give you 
      time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a 
      version parameter will hit the latest version of our API.

  --dot=dot
      Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from 
      json response.

EXAMPLE
  $ wittycli export --output="./app.zip"

See code: src\commands\export.ts

wittycli help [COMMAND]

display help for wittycli

USAGE
  $ wittycli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

wittycli import

Create a new app with all the app data from the exported app.

USAGE
  $ wittycli import

OPTIONS
  -a, --auth=auth
      (required) Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP 
      header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it 
      publicly. You can obtain one in Settings for your app. Alternatively you can set WIT_AUTH_TOKEN environment 
      variable.

  -d, --dir=dir
      Path of the import directory. If set this command will ZIP provided directory and import it.

  -f, --file=file
      Path of the import file. A ZIP file containing all of your app data.

  -h, --help
      show CLI help

  -n, --name=name
      (required) Name of the new app.

  -p, --private
      Private if flag provided.

  -v, --version=version
      Every request requires a version parameter either in the URL or in the headers. This parameter is a date that 
      represents the "version" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, 
      but when we do make these changes, this parameter will allow you to continue to use the API as before and give you 
      time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a 
      version parameter will hit the latest version of our API.

  -w, --wait
      If true the cli will wait for the app training to complete via long polling.

  --dot=dot
      Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from 
      json response.

EXAMPLE
  $ wittycli import --name=witapp --private --file ./app.zip

See code: src\commands\import.ts

wittycli message

Returns the extracted meaning from a sentence, based on the app data.

USAGE
  $ wittycli message

OPTIONS
  -a, --auth=auth
      (required) Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP 
      header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it 
      publicly. You can obtain one in Settings for your app. Alternatively you can set WIT_AUTH_TOKEN environment 
      variable.

  -h, --help
      show CLI help

  -n, --numberofintents=numberofintents
      [default: 1] The maximum number of n-best intents and traits you want to get back. The default is 1, and the maximum 
      is 8.

  -q, --query=query
      (required) User's query, between 0 and 280 characters.

  -t, --tag=tag
      A specific tag you want to use for the query. See GET /apps/:app/tags.

  -v, --version=version
      Every request requires a version parameter either in the URL or in the headers. This parameter is a date that 
      represents the "version" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, 
      but when we do make these changes, this parameter will allow you to continue to use the API as before and give you 
      time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a 
      version parameter will hit the latest version of our API.

  --dot=dot
      Use dot notation (https://github.com/rhalff/dot-object#pick-a-value-using-dot-notation) to retrieve a value from 
      json response.

EXAMPLE
  $ wittycli message --query="Set temperature to 70 degrees" --numberofintents=8

See code: src\commands\message.ts

wittycli test

Tests the wittycli app with the provided file of expected utterances and entities.

USAGE
  $ wittycli test

OPTIONS
  -a, --auth=auth
      (required) Wit.ai uses OAuth2 as an authorization layer. As such, every API request must contain an Authorize HTTP 
      header with a token. Access tokens are app and user specific. Please do not share the token with anyone, nor post it 
      publicly. You can obtain one in Settings for your app. Alternatively you can set WIT_AUTH_TOKEN environment 
      variable.

  -f, --file=file
      (required) Filepath of the file with utterances in format of the Array<ResponseOfTheMessageAPI>

  -h, --help
      show CLI help

  -p, --parallel=parallel
      [default: 10] Max amount of parallel requests

  -v, --version=version
      Every request requires a version parameter either in the URL or in the headers. This parameter is a date that 
      represents the "version" of the Wit API. We'll try to minimize backwards-incompatible changes we make to the API, 
      but when we do make these changes, this parameter will allow you to continue to use the API as before and give you 
      time to transition to the new implementation if you want. As of June 1st, 2014, requests that do not include a 
      version parameter will hit the latest version of our API.

EXAMPLE
  $ wittycli test --file="./example/test.json"

See code: src\commands\test.ts