@microsoft/bf-lg-cli
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.
Relevant docs
Commands
bf lg
Parse, collate, expand and translate lg files.
USAGE
$ bf lg
OPTIONS
-h, --help lg command help
See code: src\commands\lg\index.ts
bf lg:analyze
Analyze templates in .lg files to show all the places where a template is used
USAGE
$ bf lg:analyze
OPTIONS
-e, --external-functions=function1,function2 Pass a list of external functions and add them to Expression functions,
seprated by ",". for example, "function1,function2,function3"
-f, --force If --out flag is provided with the path to an existing file, overwrites
that file
-h, --help lg:analyze help
-i, --in=in (required) LG File or folder that contains .lg file(s)
-o, --out=out Output file or folder name. If not specified stdout will be used as
output
-r, --recurse Consider sub-folders to find .lg file(s)
See code: src\commands\lg\analyze.ts
bf lg:expand
Expand one or all templates in .lg file(s). Expand an inline expression.
USAGE
$ bf lg:expand
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help lg:expand help
-i, --in=in (required) Folder that contains .lg file.
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Consider sub-folders to find .lg file(s)
--all When set, all templates in the .lg file be expanded.
--expression=expression Inline expression provided as a string to evaluate.
--interactive Interactively prompt for all missing entity value references required for expansion.
--template=template Name of the template to expand. Template names with spaces must be enclosed in quotes.
--testInput=testInput Path to a JSON file containing test input for all variable references.
See code: src\commands\lg\expand.ts
bf lg:translate
Machine translate .lg files using Microsoft Translator Text API.
USAGE
$ bf lg:translate
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help lg:translate help
-i, --in=in (required) Folder that contains .lg file.
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Consider sub-folders to find .lg file(s)
--region=region (required) The sub region.
--srclang=srclang Source lang code. Auto detect if missing.
--tgtlang=tgtlang (required) Comma separated list of target languages.
--translate_comments Machine translate all comments found in .lg file
--translate_link_text Machine translate link description in .lg file
--translatekey=translatekey (required) Machine translation endpoint key.
See code: src\commands\lg\translate.ts
bf lg:verify
Verify .lg file(s) and collate them into a single file.
USAGE
$ bf lg:verify
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help lg:verify help
-i, --in=in (required) Folder that contains .lg file.
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Considers sub-folders to find .lg file(s)
See code: src\commands\lg\verify.ts
bf lg
Parse, collate, expand and translate lg files.
USAGE
$ bf lg
OPTIONS
-h, --help lg command help
See code: src/commands/lg/index.ts
bf lg:analyze
Analyze templates in .lg files to show all the places where a template is used
USAGE
$ bf lg:analyze
OPTIONS
-e, --external-functions=function1,function2 Pass a list of external functions and add them to Expression functions,
seprated by ",". for example, "function1,function2,function3"
-f, --force If --out flag is provided with the path to an existing file, overwrites
that file
-h, --help lg:analyze help
-i, --in=in (required) LG File or folder that contains .lg file(s)
-o, --out=out Output file or folder name. If not specified stdout will be used as
output
-r, --recurse Consider sub-folders to find .lg file(s)
See code: src/commands/lg/analyze.ts
bf lg:expand
Expand one or all templates in .lg file(s). Expand an inline expression.
USAGE
$ bf lg:expand
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help lg:expand help
-i, --in=in (required) Folder that contains .lg file.
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Consider sub-folders to find .lg file(s)
--all When set, all templates in the .lg file be expanded.
--expression=expression Inline expression provided as a string to evaluate.
--interactive Interactively prompt for all missing entity value references required for expansion.
--template=template Name of the template to expand. Template names with spaces must be enclosed in quotes.
--testInput=testInput Path to a JSON file containing test input for all variable references.
See code: src/commands/lg/expand.ts
bf lg:translate
Machine translate .lg files using Microsoft Translator Text API.
USAGE
$ bf lg:translate
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help lg:translate help
-i, --in=in (required) Folder that contains .lg file.
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Consider sub-folders to find .lg file(s)
--region=region (required) The sub region.
--srclang=srclang Source lang code. Auto detect if missing.
--tgtlang=tgtlang (required) Comma separated list of target languages.
--translate_comments Machine translate all comments found in .lg file
--translate_link_text Machine translate link description in .lg file
--translatekey=translatekey (required) Machine translation endpoint key.
See code: src/commands/lg/translate.ts
bf lg:verify
Verify .lg file(s) and collate them into a single file.
USAGE
$ bf lg:verify
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help lg:verify help
-i, --in=in (required) Folder that contains .lg file.
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Considers sub-folders to find .lg file(s)
See code: src/commands/lg/verify.ts