|
| 1 | +@microsoft/bf-lg-cli |
| 2 | +====================== |
| 3 | + |
| 4 | +This package is intended for Microsoft use only and should be consumed through @microsoft/botframework-cli. It is not designed to be consumed as an independent package. |
| 5 | + |
| 6 | +[](https://oclif.io) |
| 7 | +[](https://npmjs.org/package/@microsoft/bf-luis-cli) |
| 8 | + |
| 9 | +# Relevant docs |
| 10 | +- [.lg file format][1] |
| 11 | +- [translating .lg files][2] |
| 12 | + |
| 13 | + |
| 14 | +# Commands |
| 15 | +<!-- commands --> |
| 16 | +* [`bf lg`](#bf-lg) |
| 17 | +* [`bf lg:expand`](#bf-lgexpand) |
| 18 | +* [`bf lg:translate`](#bf-lgtranslate) |
| 19 | +* [`bf lg:verify`](#bf-lgverify) |
| 20 | + |
| 21 | +## `bf lg` |
| 22 | + |
| 23 | +Parse, collate, expand and translate lg files. |
| 24 | + |
| 25 | +``` |
| 26 | +USAGE |
| 27 | + $ bf lg |
| 28 | +
|
| 29 | +OPTIONS |
| 30 | + -h, --help lg command help |
| 31 | +``` |
| 32 | + |
| 33 | +_See code: [src/commands/lg/index.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/lg/src/commands/lg/index.ts)_ |
| 34 | + |
| 35 | +## `bf lg:expand` |
| 36 | + |
| 37 | +Expand one or all templates in .lg file(s). Expand an inline expression. |
| 38 | + |
| 39 | +``` |
| 40 | +USAGE |
| 41 | + $ bf lg:expand |
| 42 | +
|
| 43 | +OPTIONS |
| 44 | + -f, --force If --out flag is provided with the path to an existing file, overwrites that file |
| 45 | + -h, --help lg:expand help |
| 46 | + -i, --in=in (required) .lg file or folder that contains .lg file. |
| 47 | + -o, --out=out Output file or folder name. If not specified stdout will be used as output |
| 48 | + -r, --recurse Consider sub-folders to find .lg file(s) |
| 49 | + --all When set, all templates in the .lg file be expanded. |
| 50 | + --expression=expression Inline expression provided as a string to evaluate. |
| 51 | + --interactive Interactively prompt for all missing entity value references required for expansion. |
| 52 | + --template=template Name of the template to expand. Template names with spaces must be enclosed in quotes. |
| 53 | + --testInput=testInput Path to a JSON file containing test input for all variable references. |
| 54 | +``` |
| 55 | + |
| 56 | +_See code: [src/commands/lg/expand.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/lg/src/commands/lg/expand.ts)_ |
| 57 | + |
| 58 | +## `bf lg:translate` |
| 59 | + |
| 60 | +Machine translate .lg files using Microsoft Translator Text API. |
| 61 | + |
| 62 | +``` |
| 63 | +USAGE |
| 64 | + $ bf lg:translate |
| 65 | +
|
| 66 | +OPTIONS |
| 67 | + -f, --force If --out flag is provided with the path to an existing file, overwrites that file |
| 68 | + -h, --help lg:translate help |
| 69 | + -i, --in=in (required) .lg file or folder that contains .lg file. |
| 70 | + -o, --out=out Output file or folder name. If not specified stdout will be used as output |
| 71 | + -r, --recurse Consider sub-folders to find .lg file(s) |
| 72 | + --srclang=srclang Source lang code. Auto detect if missing. |
| 73 | + --tgtlang=tgtlang (required) Comma separated list of target languages. |
| 74 | + --translate_comments Machine translate all comments found in .lg file |
| 75 | + --translate_link_text Machine translate link description in .lg file |
| 76 | + --translatekey=translatekey (required) Machine translation endpoint key. |
| 77 | +``` |
| 78 | + |
| 79 | +_See code: [src/commands/lg/translate.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/lg/src/commands/lg/translate.ts)_ |
| 80 | + |
| 81 | +## `bf lg:verify` |
| 82 | + |
| 83 | +Verify .lg file(s) and collate them into a single file. |
| 84 | + |
| 85 | +``` |
| 86 | +USAGE |
| 87 | + $ bf lg:verify |
| 88 | +
|
| 89 | +OPTIONS |
| 90 | + -f, --force If --out flag is provided with the path to an existing file, overwrites that file |
| 91 | + -h, --help lg:verify help |
| 92 | + -i, --in=in (required) .lg file or folder that contains .lg file. |
| 93 | + -o, --out=out Output file or folder name. If not specified stdout will be used as output |
| 94 | + -r, --recurse Considere sub-folders to find .lg file(s) |
| 95 | +``` |
| 96 | + |
| 97 | +_See code: [src/commands/lg/verify.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/lg/src/commands/lg/verify.ts)_ |
| 98 | +<!-- commandsstop --> |
| 99 | + |
| 100 | +[1]:https://aka.ms/lg-file-format |
| 101 | +[2]:./docs/translate-command.md |
0 commit comments