This site is obsolete and should be used for reference only. The information in this documentation is not guaranteed to work for Bot Framework SDK versions past 4.9.1.

Tutorial: Deploy (cli)

Deploy LUIS models

  1. Run the following command for each .lu file in \Deployment\Resources\LU to parse the files to .luis files that can be imported to LUIS. See bf luis:convert command.
     bf luis:convert `
         --in "path-to-lu-file" `
         --culture "culture-code" `
         --out "output-file-name.luis or folder name"
  2. Run the following command to import the LUIS application from JSON or LU content. See bf luis:application:import command.
     bf luis:application:import `
         --in "path-to-luis-file" `
         --name "app-name" `
         --endpoint "luid-endpoint-hostname" `
         --subscriptionKey "luis-authoring-key" `
  3. Run the following command to train the LUIS application. See bf luis:train:run command.
     bf luis:train:run `
         --appId "app-id" `
         --endpoint "luis-endpoint-hostname" `
         --subscriptionKey "luis-authoring-key" `
         --versionId "version-id" `
  4. Run the following command to publish the LUIS application’s version. See bf luis:application:publish command.
     bf luis:application:publish `
         --appId "app-id" `
         --endpoint "luis-endpoint-hostname" `
         --subscriptionKey "luis-authoring-key" `
         --versionId "version-id"
  5. Run the following command to generate a strongly typed C# source code from your exported (json) LUIS application. See bf luis:generate:cs command.
     bf luis:generate:cs `
         --in "path-to-json-file" `
         --className "luis-name" `
         --out "path-to-output-folder"
  6. For each LUIS application, add the following configuration to the cognitiveModels.your-locale.languageModels collection in cognitivemodels.json file of your bot.
         "subscriptionkey": "",
         "appid": "",
         "id": "",
         "version": "",
         "region": "",
         "name": "",
         "authoringkey": "",
         "authoringRegion": ""