![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
wittycli
Advanced tools
Readme
Wit.ai CLI
$ npm install -g wittycli
$ wittycli COMMAND
running command...
$ wittycli (-v|--version|version)
wittycli/0.0.4 win32-x64 node-v12.19.0
$ wittycli --help [COMMAND]
USAGE
$ wittycli COMMAND
...
wittycli apps:post
wittycli export
wittycli help [COMMAND]
wittycli import
wittycli message
wittycli test
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
-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
-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
-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.
--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
-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.
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
-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
FAQs
Wit.ai CLI
The npm package wittycli receives a total of 0 weekly downloads. As such, wittycli popularity was classified as not popular.
We found that wittycli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.