$ npm install -g @microsoft/botframework-cli
bf chatdownbf chatdown:convertbf configbf config:set:qnamakerbf config:set:telemetrybf config:showbf config:show:qnamakerbf config:show:telemetrybf help [COMMAND]bf luisbf luis:convertbf luis:generate:csbf luis:generate:tsbf luis:translatebf qnamakerbf qnamaker:alterationsbf qnamaker:alterations:listbf qnamaker:alterations:replacebf qnamaker:convertbf qnamaker:endpointkeysbf qnamaker:endpointkeys:listbf qnamaker:endpointkeys:refreshbf qnamaker:endpointsettingsbf qnamaker:endpointsettings:getbf qnamaker:endpointsettings:updatebf qnamaker:initbf qnamaker:kbbf qnamaker:kb:createbf qnamaker:kb:deletebf qnamaker:kb:exportbf qnamaker:kb:getbf qnamaker:kb:listbf qnamaker:kb:publishbf qnamaker:kb:replacebf qnamaker:kb:updatebf qnamaker:operationdetailsbf qnamaker:operationdetails:getbf qnamaker:querybf qnamaker:trainbf qnamaker:translate
Converts chat dialog files in .chat format into transcript files. Writes corresponding .transcript for each .chat file.
USAGE
$ bf chatdown
OPTIONS
-h, --help Chatdown command help
See code: @microsoft/bf-chatdown
Converts chat dialog files in .chat format into transcript files. Writes corresponding .transcript for each .chat file.
USAGE
$ bf chatdown:convert
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help Chatdown command help
-i, --in=in The path of the chat file or directory to be parsed. A glob expression may be passed containing chat
files to be processed all at once, ex. ./**/*.chat. If flag is omitted, stdin will be used. If an
output directory is not present (-o), it will default the output to the current working directory.
-o, --out=out Path to the directory where the output of the multiple chat file processing (-o) will be placed.
-p, --prefix Prefix stdout with package name.
-s, --stamp Use static timestamps when generating timestamps on activities.
EXAMPLE
$ bf chatdown
$ bf chatdown --in=./path/to/file/sample.chat
$ bf chatdown --in ./test/utils/*.sample.chat -o ./
$ (echo user=Joe && [ConversationUpdate=MembersAdded=Joe]) | bf chatdown --static
See code: @microsoft/bf-chatdown
Configure various settings within the cli.
USAGE
$ bf config
OPTIONS
-h, --help config help
See code: @microsoft/bf-cli-config
Set the QnAMaker config data
USAGE
$ bf config:set:qnamaker
OPTIONS
-h, --help config:set:qnamaker help
--endpointKey=endpointKey QnAMaker endpointKey to be set
--hostname=hostname QnAMaker hostname to be set
--kbId=kbId QnAMaker kbId to be set
--subscriptionKey=subscriptionKey QnAMaker subscriptionkey to be set
EXAMPLE
{
"qnamaker_kbId": "3bda64af-dddd-dddd-dddd-021906b093b1",
"qnamaker_subscriptionKey": "nnnnnnnnnnnnnnnnnnnnnnnnn",
"qnamaker_endpointKey": "6b5ecf9c-kkkk-kkkk-kkkk-761489817e5f",
"qnamaker_hostname": "https://{qnaservice-hostname}.azurewebsites.net"
}
See code: @microsoft/bf-cli-config
Enable or disable anonymous data collection to improve the products. (Command group calls and flags usage)
USAGE
$ bf config:set:telemetry
OPTIONS
-d, --disable Disable tlemetry
-e, --enable Enable tlemetry
-h, --help config:set:telemetry help
See code: @microsoft/bf-cli-config
Displays the config file
USAGE
$ bf config:show
OPTIONS
-h, --help config:show help
See code: @microsoft/bf-cli-config
Display QnAMaker settings
USAGE
$ bf config:show:qnamaker
OPTIONS
-h, --help config:show:qnamaker help
See code: @microsoft/bf-cli-config
Display telemetry settings
USAGE
$ bf config:show:telemetry
OPTIONS
-h, --help config:show:telemetry help
See code: @microsoft/bf-cli-config
display help for bf
USAGE
$ bf help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Converts, translates luis/lu files or generates source code.
USAGE
$ bf luis
OPTIONS
-h, --help Display Luis available commands
See code: @microsoft/bf-lu
Convert .lu file(s) to a LUIS application JSON model or vice versa
USAGE
$ bf luis:convert
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:convert help
-i, --in=in Source .lu file(s) or LUIS application JSON model
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to file .lu file(s)
--culture=culture Lang code for the LUIS application
--description=description Text describing the LUIS applicaion
--log Enables log messages
--name=name Name of the LUIS application
--schemaversion=schemaversion Schema version of the LUIS application
--sort When set, intent, utterances, entities are alphabetically sorted in .lu files
--versionid=versionid Version ID of the LUIS application
See code: @microsoft/bf-lu
Generate:cs generates a strongly typed C# source code from an exported (json) LUIS model.
USAGE
$ bf luis:generate:cs
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:generate:cs help
-i, --in=in Path to the file containing the LUIS application JSON model
-o, --out=out Output file or folder name. If not specified stdout will be used as output
--className=className Name of the autogenerated class (can include namespace)
See code: @microsoft/bf-lu
Generate:ts generates a strongly typed typescript source code from an exported (json) LUIS model.
USAGE
$ bf luis:generate:ts
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:generate:ts help
-i, --in=in Path to the file containing the LUIS application JSON model
-o, --out=out Output file or folder name. If not specified stdout will be used as output
--className=className Name of the autogenerated class
See code: @microsoft/bf-lu
Translate given LUIS application JSON model or lu file(s)
USAGE
$ bf luis:translate
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:translate help
-i, --in=in Source .lu file(s) or LUIS application JSON model
-o, --out=out Output folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to file .lu file(s)
--srclang=srclang Source lang code. Auto detect if missing.
--tgtlang=tgtlang (required) Comma separated list of target languages.
--translate_comments When set, machine translate comments found in .lu file
--translate_link_text When set, machine translate link description in .lu file
--translatekey=translatekey (required) Machine translation endpoint key.
See code: @microsoft/bf-lu
QnA Maker
USAGE
$ bf qnamaker
OPTIONS
-h, --help Display QnA Maker CLI available commands
See code: @microsoft/bf-qnamaker
Commands for replacing and listing your alterations
USAGE
$ bf qnamaker:alterations
OPTIONS
-h, --help display qnamaker:alterations available commands
See code: @microsoft/bf-qnamaker
Downloads all word alterations (synonyms) that have been added by the user.
USAGE
$ bf qnamaker:alterations:list
OPTIONS
-h, --help qnamaker:alterations:list command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Replaces word alterations (synonyms) for the KB with the give records.
USAGE
$ bf qnamaker:alterations:replace
OPTIONS
-h, --help qnamaker:alterations:replace command help
-i, --in=in File path to the WordAlterationsDTO object to send in the body of the request
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Converts .lu file(s) to QnA application JSON models or vice versa.
USAGE
$ bf qnamaker:convert
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help qnamaker:convert help
-i, --in=in Source .qna file(s) or QnA KB JSON file
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to file .qna file(s)
--alterations Indicates if files is QnA Alterations
--log Enables log messages
--name=name Name of the QnA KB
--sort When set, questions collections are alphabetically sorted are alphabetically sorted in .qna files
See code: @microsoft/bf-lu
Commands to refresh and list keys
USAGE
$ bf qnamaker:endpointkeys
OPTIONS
-h, --help display qnamaker:endpointkeys available commands
See code: @microsoft/bf-qnamaker
List all the currently valid endpointKeys for querying your private endpoint
USAGE
$ bf qnamaker:endpointkeys:list
OPTIONS
-h, --help qnamaker:endpointkeys:list command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Re-generates an endpoint key, in case you suspect your keys have been compromised
USAGE
$ bf qnamaker:endpointkeys:refresh
OPTIONS
-h, --help qnamaker:endpoints:refresh command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--keyType=keyType (required) Type of Key. (PrimaryKey/SecondaryKey)
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Commands to get and update endpoint settings
USAGE
$ bf qnamaker:endpointsettings
OPTIONS
-h, --help display qnamaker:update available commands
See code: @microsoft/bf-qnamaker
Gets endpoint settings for an endpoint.
USAGE
$ bf qnamaker:endpointsettings:get
OPTIONS
-h, --help qnamaker:endpointsettings:get command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--kbId=kbId Knowledgebase id to get metadata.
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Updates endpoint settings for an endpoint.
USAGE
$ bf qnamaker:endpointsettings:update
OPTIONS
-h, --help qnamaker:endpointsettings:update command help
--activelearning Enable active learning. Disables if flag not set
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Initializes the config file with settings.
USAGE
$ bf qnamaker:init
OPTIONS
-h, --help qnamaker:init command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
See code: @microsoft/bf-qnamaker
Commands for manipulating your knowledge base
USAGE
$ bf qnamaker:kb
OPTIONS
-h, --help display qnamaker:kb available commands
See code: @microsoft/bf-qnamaker
Creates a new knowledgebase
USAGE
$ bf qnamaker:kb:create
OPTIONS
-h, --help qnamaker:kb:create command help
-i, --in=in File path to the CreateKbDTO object to send in the body of the request.
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--name=name Name of the kb you want to create. This will override the name of KB that might be
present in the CreateKb DTO
--save Save the kbId in config.
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Delete a knowledgebase by id
USAGE
$ bf qnamaker:kb:delete
OPTIONS
-h, --help qnamaker:kb:delete command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--force Do not prompt for confirmation, force the operation
--kbId=kbId Knowledgebase id to be deleted. Overrides the knowledge base id present in the
config
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Echos a knowledgebase json to stdout
USAGE
$ bf qnamaker:kb:export
OPTIONS
-h, --help qnamaker:kb:export command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--environment=environment (required) Specifies whether environment is Test or Prod.
--kbId=kbId Knowledgebase id to be exported. Overrides the knowledge base id present in the
config
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Get metadata about a knowledgebase
USAGE
$ bf qnamaker:kb:get
OPTIONS
-h, --help qnamaker:kb:get command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--kbId=kbId Knowledgebase id to get metadata. Overrides the knowledge base id present in the
config
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
List all of your knowledgebases
USAGE
$ bf qnamaker:kb:list
OPTIONS
-h, --help qnamaker:kb:list command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Publish all unpublished in the knowledgebase to the prod endpoint.
USAGE
$ bf qnamaker:kb:publish
OPTIONS
-h, --help qnamaker:kb:publish command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--kbId=kbId Knowledgebase id to pubish. Overrides the knowledge base id present in the config
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Replace a knowledgebase contents with new contents
USAGE
$ bf qnamaker:kb:replace
OPTIONS
-h, --help qnamaker:kb:replace command help
-i, --in=in File path to the ReplaceKbDTO object to send in the body of the request
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--kbId=kbId Knowledgebase id. Overrides the knowledge base id present in the config
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Add or delete QnA Pairs and / or URLs to an existing knowledge base
USAGE
$ bf qnamaker:kb:update
OPTIONS
-h, --help qnamaker:kb:update command help
-i, --in=in The file path to the UpdateKbOperationDTO object to send in the body of the
request.
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--kbId=kbId Knowledgebase id. Overrides the knowledge base id present in the config
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
--wait Wait for the operation to complete.
See code: @microsoft/bf-qnamaker
Command to get operation details
USAGE
$ bf qnamaker:operationdetails
OPTIONS
-h, --help display qnamaker:operationdetails available commands
See code: @microsoft/bf-qnamaker
Gets details of a specific long running operation.
USAGE
$ bf qnamaker:operationdetails:get
OPTIONS
-h, --help qnamaker:operationdetails:get command help
--endpoint=endpoint Overrides public endpoint https://westus.api.cognitive.microsoft.com/qnamaker/v4.0/
--operationId=operationId (required) Operation id.
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in the config
See code: @microsoft/bf-qnamaker
Generate Answer for fetching the answer from Kb for a query
USAGE
$ bf qnamaker:query
OPTIONS
-h, --help qnamaker:query command help
--context=context Path to Context object json file with previous QnA
--endpointKey=endpointKey Specifies the endpoint key for your private QnA service (From qnamaker.ai portal user
settings page). Overrides the value present in config
--hostname=hostname Specifies the url for your private QnA service. Overrides the value present in config
--kbId=kbId Specifies the active qnamaker knowledgebase id. Overrides the value present in the
config
--qnaId=qnaId Exact qnaId to fetch from the knowledgebase, this field takes priority over question
--question=question (required) Query to get a prediction for
--scorethreshold=scorethreshold Specifies the confidence score threshold for the returned answer.
--strictfilters=strictfilters Path to json file with MetadataDTO[] e.g {"strictfilters": MetadataDTO[]}
--test Query against the test index
--top=top Specifies the number of matching results
See code: @microsoft/bf-qnamaker
Train call to add suggestions to the knowledgebase.
USAGE
$ bf qnamaker:train
OPTIONS
-h, --help qnamaker:get:kb command help
--endpointKey=endpointKey Specifies the endpoint key for your private QnA service.(from qnamaker.ai portal
user settings page). Overrides the value present in config.
--hostname=hostname Specifies the url for your private QnA service. Overrides the value present in
config.
--in=in File path to the FeedbackRecordDTO object to send in the body of the request.
--kbId=kbId Specifies the active qnamaker knowledgebase id. Overrides the value present in the
config
--subscriptionKey=subscriptionKey Specifies the qnamaker Ocp-Apim-Subscription Key (found in Keys under Resource
Management section for your Qna Maker cognitive service). Overrides the
subscriptionkey value present in config
See code: @microsoft/bf-qnamaker
Translate given QnA maker application JSON model or qna file(s)
USAGE
$ bf qnamaker:translate
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help qnamaker:translate help
-i, --in=in Source .qna file(s) or QnA maker application JSON model
-o, --out=out Output folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to find .qna file(s)
--srclang=srclang Source lang code. Auto detect if missing.
--tgtlang=tgtlang (required) Comma separated list of target languages.
--translate_comments When set, machine translate comments found in .qna file
--translate_link_text When set, machine translate link description in .qna file
--translatekey=translatekey (required) Machine translation endpoint key.
See code: @microsoft/bf-lu