
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@microsoft/bf-lg-cli
Advanced tools
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.
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
FAQs
@microsoft/bf-lg-cli ======================
We found that @microsoft/bf-lg-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.