FOnline Engine
Current 2026.1.182-dev GitHub
Documentation Docs/en/reference/helper-cli/commands.md

Helper Commands

Generated reference. Do not edit this page directly. Update BuildTools/HelperCliInterface.json or the owning executable parser, then run python BuildTools/docs_helper_cli.py --write.

Reference index Commands Canonical JSON model Generation contract

Commands are shown with exact parser-generated usage and help at a fixed 80-column width. Invoke a helper from the engine repository root unless its invocation owner sets another working directory.

Code generation

Generate engine configuration, metadata registration, script bindings, and embedded-resource source files.

  • Stable ID: helper-cli.codegen
  • Program: codegen.py
  • Owner: build-release
  • Audience: engine-contributor, embedding-project-build-system
  • Invocation owner: BuildTools/cmake/stages/Codegen.cmake
  • Parser source: BuildTools/codegen.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.codegen.argument.maincfg -maincfg option yes 1 - - main config file
helper-cli.codegen.argument.buildhash -buildhash option yes 1 - - build hash
helper-cli.codegen.argument.devname -devname option yes 1 - - dev game name
helper-cli.codegen.argument.nicename -nicename option yes 1 - - nice game name
helper-cli.codegen.argument.embedded -embedded option yes 1 - - embedded buffer capacity
helper-cli.codegen.argument.enginedefine -enginedefine option no 1 - - engine configuration define NAME=VALUE emitted as a macro into EngineConfig.gen.h
helper-cli.codegen.argument.meta -meta option yes 1 - - path to script api metadata (///@ tags)
helper-cli.codegen.argument.commonheader -commonheader option no 1 - - path to common header file
helper-cli.codegen.argument.genoutput -genoutput option yes 1 - - generated code output dir
helper-cli.codegen.argument.verbose -verbose option no 0 - false verbose mode

Exact top-level --help output

usage: codegen.py [-h] -maincfg MAINCFG -buildhash BUILDHASH -devname DEVNAME -nicename NICENAME -embedded EMBEDDED [-enginedefine ENGINEDEFINE] -meta META [-commonheader COMMONHEADER] -genoutput GENOUTPUT [-verbose]

FOnline code generator

options:
  -h, --help            show this help message and exit
  -maincfg MAINCFG      main config file
  -buildhash BUILDHASH  build hash
  -devname DEVNAME      dev game name
  -nicename NICENAME    nice game name
  -embedded EMBEDDED    embedded buffer capacity
  -enginedefine ENGINEDEFINE
                        engine configuration define NAME=VALUE emitted as a macro into EngineConfig.gen.h
  -meta META            path to script api metadata (///@ tags)
  -commonheader COMMONHEADER
                        path to common header file
  -genoutput GENOUTPUT  generated code output dir
  -verbose              verbose mode

Code coverage

Clean, collect, and report engine code coverage for generated test targets.

  • Stable ID: helper-cli.codecoverage
  • Program: codecoverage.py
  • Owner: quality
  • Audience: engine-contributor, ci-maintainer
  • Invocation owner: BuildTools/cmake/stages/Applications.cmake
  • Parser source: BuildTools/codecoverage.py

Top-level arguments

No arguments at this level.

Exact top-level --help output

usage: codecoverage.py [-h] {clean,run,report,full} ...

Run and analyze engine code coverage

positional arguments:
  {clean,run,report,full}
    clean               Remove previously collected coverage data and reports
    run                 Run the instrumented test binary and collect coverage data
    report              Generate text and HTML reports from collected coverage data
    full                Clean, run the instrumented binary, and generate reports

options:
  -h, --help            show this help message and exit

clean

Remove previously collected coverage data and reports

Stable ID: helper-cli.codecoverage.command.clean

usage: codecoverage.py clean [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.codecoverage.command.clean.argument.workspace_root --workspace-root option yes 1 - - embedding-project source directory
helper-cli.codecoverage.command.clean.argument.build_dir --build-dir option yes 1 - - configured CMake build directory
helper-cli.codecoverage.command.clean.argument.binary --binary option yes 1 - - instrumented test executable
helper-cli.codecoverage.command.clean.argument.backend --backend option yes 1 gcc, llvm, msvc - coverage compiler/toolchain backend
helper-cli.codecoverage.command.clean.argument.output_dir --output-dir option yes 1 - - coverage data and report output directory
helper-cli.codecoverage.command.clean.argument.objects --object option no 1 - - additional instrumented executable or shared library for LLVM reporting; repeatable
helper-cli.codecoverage.command.clean.argument.binary_args binary_args positional yes ... - - arguments passed to the test binary

Exact --help output

usage: codecoverage.py clean [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...

Remove previously collected coverage data and reports

positional arguments:
  binary_args           arguments passed to the test binary

options:
  -h, --help            show this help message and exit
  --workspace-root WORKSPACE_ROOT
                        embedding-project source directory
  --build-dir BUILD_DIR
                        configured CMake build directory
  --binary BINARY       instrumented test executable
  --backend {gcc,llvm,msvc}
                        coverage compiler/toolchain backend
  --output-dir OUTPUT_DIR
                        coverage data and report output directory
  --object OBJECTS      additional instrumented executable or shared library for LLVM reporting; repeatable

run

Run the instrumented test binary and collect coverage data

Stable ID: helper-cli.codecoverage.command.run

usage: codecoverage.py run [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.codecoverage.command.run.argument.workspace_root --workspace-root option yes 1 - - embedding-project source directory
helper-cli.codecoverage.command.run.argument.build_dir --build-dir option yes 1 - - configured CMake build directory
helper-cli.codecoverage.command.run.argument.binary --binary option yes 1 - - instrumented test executable
helper-cli.codecoverage.command.run.argument.backend --backend option yes 1 gcc, llvm, msvc - coverage compiler/toolchain backend
helper-cli.codecoverage.command.run.argument.output_dir --output-dir option yes 1 - - coverage data and report output directory
helper-cli.codecoverage.command.run.argument.objects --object option no 1 - - additional instrumented executable or shared library for LLVM reporting; repeatable
helper-cli.codecoverage.command.run.argument.binary_args binary_args positional yes ... - - arguments passed to the test binary

Exact --help output

usage: codecoverage.py run [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...

Run the instrumented test binary and collect coverage data

positional arguments:
  binary_args           arguments passed to the test binary

options:
  -h, --help            show this help message and exit
  --workspace-root WORKSPACE_ROOT
                        embedding-project source directory
  --build-dir BUILD_DIR
                        configured CMake build directory
  --binary BINARY       instrumented test executable
  --backend {gcc,llvm,msvc}
                        coverage compiler/toolchain backend
  --output-dir OUTPUT_DIR
                        coverage data and report output directory
  --object OBJECTS      additional instrumented executable or shared library for LLVM reporting; repeatable

report

Generate text and HTML reports from collected coverage data

Stable ID: helper-cli.codecoverage.command.report

usage: codecoverage.py report [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.codecoverage.command.report.argument.workspace_root --workspace-root option yes 1 - - embedding-project source directory
helper-cli.codecoverage.command.report.argument.build_dir --build-dir option yes 1 - - configured CMake build directory
helper-cli.codecoverage.command.report.argument.binary --binary option yes 1 - - instrumented test executable
helper-cli.codecoverage.command.report.argument.backend --backend option yes 1 gcc, llvm, msvc - coverage compiler/toolchain backend
helper-cli.codecoverage.command.report.argument.output_dir --output-dir option yes 1 - - coverage data and report output directory
helper-cli.codecoverage.command.report.argument.objects --object option no 1 - - additional instrumented executable or shared library for LLVM reporting; repeatable
helper-cli.codecoverage.command.report.argument.binary_args binary_args positional yes ... - - arguments passed to the test binary

Exact --help output

usage: codecoverage.py report [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...

Generate text and HTML reports from collected coverage data

positional arguments:
  binary_args           arguments passed to the test binary

options:
  -h, --help            show this help message and exit
  --workspace-root WORKSPACE_ROOT
                        embedding-project source directory
  --build-dir BUILD_DIR
                        configured CMake build directory
  --binary BINARY       instrumented test executable
  --backend {gcc,llvm,msvc}
                        coverage compiler/toolchain backend
  --output-dir OUTPUT_DIR
                        coverage data and report output directory
  --object OBJECTS      additional instrumented executable or shared library for LLVM reporting; repeatable

full

Clean, run the instrumented binary, and generate reports

Stable ID: helper-cli.codecoverage.command.full

usage: codecoverage.py full [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.codecoverage.command.full.argument.workspace_root --workspace-root option yes 1 - - embedding-project source directory
helper-cli.codecoverage.command.full.argument.build_dir --build-dir option yes 1 - - configured CMake build directory
helper-cli.codecoverage.command.full.argument.binary --binary option yes 1 - - instrumented test executable
helper-cli.codecoverage.command.full.argument.backend --backend option yes 1 gcc, llvm, msvc - coverage compiler/toolchain backend
helper-cli.codecoverage.command.full.argument.output_dir --output-dir option yes 1 - - coverage data and report output directory
helper-cli.codecoverage.command.full.argument.objects --object option no 1 - - additional instrumented executable or shared library for LLVM reporting; repeatable
helper-cli.codecoverage.command.full.argument.binary_args binary_args positional yes ... - - arguments passed to the test binary

Exact --help output

usage: codecoverage.py full [-h] --workspace-root WORKSPACE_ROOT --build-dir BUILD_DIR --binary BINARY --backend {gcc,llvm,msvc} --output-dir OUTPUT_DIR [--object OBJECTS] ...

Clean, run the instrumented binary, and generate reports

positional arguments:
  binary_args           arguments passed to the test binary

options:
  -h, --help            show this help message and exit
  --workspace-root WORKSPACE_ROOT
                        embedding-project source directory
  --build-dir BUILD_DIR
                        configured CMake build directory
  --binary BINARY       instrumented test executable
  --backend {gcc,llvm,msvc}
                        coverage compiler/toolchain backend
  --output-dir OUTPUT_DIR
                        coverage data and report output directory
  --object OBJECTS      additional instrumented executable or shared library for LLVM reporting; repeatable

Gameplay test runner

Run ordered multi-process gameplay smoke scenarios with readiness, marker, deadline, cleanup, and JSON-report contracts.

  • Stable ID: helper-cli.gameplay-test-runner
  • Program: gameplay_test_runner.py
  • Owner: quality
  • Audience: game-developer, engine-contributor, embedding-project-build-system, ci-maintainer
  • Invocation owner: embedding-project CMake targets and CI gameplay smoke jobs
  • Parser source: BuildTools/gameplay_test_runner.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.gameplay-test-runner.argument.manifest --manifest option yes 1 - - scenario manifest path
helper-cli.gameplay-test-runner.argument.value --value option no 1 - - placeholder value; repeat as needed
helper-cli.gameplay-test-runner.argument.report --report option no 1 - - optional JSON result path

Exact top-level --help output

usage: gameplay_test_runner.py [-h] --manifest MANIFEST [--value KEY=VALUE] [--report REPORT]

Run project-neutral multi-process gameplay smoke scenarios from a checked JSON manifest.

options:
  -h, --help           show this help message and exit
  --manifest MANIFEST  scenario manifest path
  --value KEY=VALUE    placeholder value; repeat as needed
  --report REPORT      optional JSON result path

AiControl protocol client

Call an Engine-compatible project AiControl bridge through the versioned NDJSON/TCP envelope without exposing shared tokens on the command line.

  • Stable ID: helper-cli.ai-control-client
  • Program: ai_control_client.py
  • Owner: tooling
  • Audience: game-developer, engine-contributor, tool-developer, ci-maintainer
  • Invocation owner: embedding-project AI adapters, protocol smoke tests, and direct developer diagnostics
  • Parser source: BuildTools/ai_control_client.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.ai-control-client.argument.host --host option no 1 - 127.0.0.1 Bridge host.
helper-cli.ai-control-client.argument.port --port option no 1 - 43011 Bridge port.
helper-cli.ai-control-client.argument.timeout --timeout option no 1 - 5.0 Socket timeout in seconds.
helper-cli.ai-control-client.argument.token_env --token-env option no 1 - FONLINE_AI_TOKEN Environment variable containing the shared token.
helper-cli.ai-control-client.argument.allow_remote --allow-remote option no 0 - false Permit a non-loopback endpoint; transport remains unencrypted.

Exact top-level --help output

usage: ai_control_client.py [-h] [--host HOST] [--port PORT] [--timeout TIMEOUT] [--token-env TOKEN_ENV] [--allow-remote] {ping,status,observe,events,act} ...

Call an Engine-compatible AiControl bridge over NDJSON/TCP.

positional arguments:
  {ping,status,observe,events,act}
    ping                Check bridge liveness.
    status              Read bridge status and queue limits.
    observe             Read the latest project observation.
    events              Read events after a sequence cursor.
    act                 Enqueue one project-defined command.

options:
  -h, --help            show this help message and exit
  --host HOST           Bridge host.
  --port PORT           Bridge port.
  --timeout TIMEOUT     Socket timeout in seconds.
  --token-env TOKEN_ENV
                        Environment variable containing the shared token.
  --allow-remote        Permit a non-loopback endpoint; transport remains unencrypted.

ping

Check bridge liveness.

Stable ID: helper-cli.ai-control-client.command.ping

usage: ai_control_client.py ping [-h]

No arguments at this level.

Exact --help output

usage: ai_control_client.py ping [-h]

options:
  -h, --help  show this help message and exit

status

Read bridge status and queue limits.

Stable ID: helper-cli.ai-control-client.command.status

usage: ai_control_client.py status [-h]

No arguments at this level.

Exact --help output

usage: ai_control_client.py status [-h]

options:
  -h, --help  show this help message and exit

observe

Read the latest project observation.

Stable ID: helper-cli.ai-control-client.command.observe

usage: ai_control_client.py observe [-h]

No arguments at this level.

Exact --help output

usage: ai_control_client.py observe [-h]

options:
  -h, --help  show this help message and exit

events

Read events after a sequence cursor.

Stable ID: helper-cli.ai-control-client.command.events

usage: ai_control_client.py events [-h] [--after-seq AFTER_SEQ] [--limit LIMIT]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.ai-control-client.command.events.argument.after_seq --after-seq option no 1 - 0 Exclusive event cursor.
helper-cli.ai-control-client.command.events.argument.limit --limit option no 1 - 100 Maximum events to return.

Exact --help output

usage: ai_control_client.py events [-h] [--after-seq AFTER_SEQ] [--limit LIMIT]

options:
  -h, --help            show this help message and exit
  --after-seq AFTER_SEQ
                        Exclusive event cursor.
  --limit LIMIT         Maximum events to return.

act

Enqueue one project-defined command.

Stable ID: helper-cli.ai-control-client.command.act

usage: ai_control_client.py act [-h] --type TYPE [--target-id TARGET_ID] [--item-id ITEM_ID] [--aux-id AUX_ID] [--x X] [--y Y] [--screen-x SCREEN_X] [--screen-y SCREEN_Y] [--int-arg INT_ARG] [--string-arg STRING_ARG] [--append]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.ai-control-client.command.act.argument.type --type option yes 1 - - Project-defined command type.
helper-cli.ai-control-client.command.act.argument.target_id --target-id option no 1 - - Optional target entity identifier.
helper-cli.ai-control-client.command.act.argument.item_id --item-id option no 1 - - Optional item entity identifier.
helper-cli.ai-control-client.command.act.argument.aux_id --aux-id option no 1 - - Optional auxiliary entity identifier.
helper-cli.ai-control-client.command.act.argument.x --x option no 1 - - Optional project world X coordinate.
helper-cli.ai-control-client.command.act.argument.y --y option no 1 - - Optional project world Y coordinate.
helper-cli.ai-control-client.command.act.argument.screen_x --screen-x option no 1 - - Optional screen X coordinate.
helper-cli.ai-control-client.command.act.argument.screen_y --screen-y option no 1 - - Optional screen Y coordinate.
helper-cli.ai-control-client.command.act.argument.int_arg --int-arg option no 1 - - Optional integer payload.
helper-cli.ai-control-client.command.act.argument.string_arg --string-arg option no 1 - - Optional string payload.
helper-cli.ai-control-client.command.act.argument.append --append option no 0 - false Request project queue append semantics.

Exact --help output

usage: ai_control_client.py act [-h] --type TYPE [--target-id TARGET_ID] [--item-id ITEM_ID] [--aux-id AUX_ID] [--x X] [--y Y] [--screen-x SCREEN_X] [--screen-y SCREEN_Y] [--int-arg INT_ARG] [--string-arg STRING_ARG] [--append]

options:
  -h, --help            show this help message and exit
  --type TYPE           Project-defined command type.
  --target-id TARGET_ID
                        Optional target entity identifier.
  --item-id ITEM_ID     Optional item entity identifier.
  --aux-id AUX_ID       Optional auxiliary entity identifier.
  --x X                 Optional project world X coordinate.
  --y Y                 Optional project world Y coordinate.
  --screen-x SCREEN_X   Optional screen X coordinate.
  --screen-y SCREEN_Y   Optional screen Y coordinate.
  --int-arg INT_ARG     Optional integer payload.
  --string-arg STRING_ARG
                        Optional string payload.
  --append              Request project queue append semantics.

Content formatter

Format .fomain, prototype and optional AngelScript files in the Engine layout and refuse any rewrite that would change what the Engine reads.

  • Stable ID: helper-cli.format-content
  • Program: format_content.py
  • Owner: tooling
  • Audience: game-developer, embedding-project-build-system, ci-maintainer
  • Invocation owner: BuildTools/buildtools.py format-content, embedding-project format tasks and CI drift checks
  • Parser source: BuildTools/format_content.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.format-content.argument.check --check option no 0 - false report files that need formatting and exit with 1 without writing
helper-cli.format-content.argument.project_root --project-root option no 1 - - project root for relative paths and the .fomain lookup (default: FO_PROJECT_ROOT, then the current directory)
helper-cli.format-content.argument.fomain --fomain option no 1 - - main config path (default: the only *.fomain file in the project root)
helper-cli.format-content.argument.skip_fomain --skip-fomain option no 0 - false do not format the main config
helper-cli.format-content.argument.skip_protos --skip-protos option no 0 - false do not format prototype files
helper-cli.format-content.argument.proto_path --proto-path option no 1 - - format only these prototype files or directories instead of the Proto resource packs (repeatable)
helper-cli.format-content.argument.metadata --metadata option no 1 - - read property and setting order from these files, in this order, instead of the Metadata resource packs (repeatable)
helper-cli.format-content.argument.fos --fos option no 1 - - also format AngelScript files matching this glob relative to the project root with clang-format 20 (repeatable)

Exact top-level --help output

usage: format_content.py [-h] [--check] [--project-root PROJECT_ROOT] [--fomain FOMAIN] [--skip-fomain] [--skip-protos] [--proto-path PATH] [--metadata PATH] [--fos PATTERN]

Format .fomain, prototype and optional AngelScript files without changing what the Engine reads from them.

options:
  -h, --help            show this help message and exit
  --check               report files that need formatting and exit with 1 without writing
  --project-root PROJECT_ROOT
                        project root for relative paths and the .fomain lookup (default: FO_PROJECT_ROOT, then the current directory)
  --fomain FOMAIN       main config path (default: the only *.fomain file in the project root)
  --skip-fomain         do not format the main config
  --skip-protos         do not format prototype files
  --proto-path PATH     format only these prototype files or directories instead of the Proto resource packs (repeatable)
  --metadata PATH       read property and setting order from these files, in this order, instead of the Metadata resource packs (repeatable)
  --fos PATTERN         also format AngelScript files matching this glob relative to the project root with clang-format 20 (repeatable)

Engine content format reader

Print effective configuration, resource-pack inputs, inherited prototype values and text-pack entries as the Engine parsers read them.

  • Stable ID: helper-cli.fo-formats
  • Program: fo_formats.py
  • Owner: tooling
  • Audience: game-developer, tool-developer, ci-maintainer
  • Invocation owner: embedding-project content tools and direct developer diagnostics
  • Parser source: BuildTools/fo_formats.py

Top-level arguments

No arguments at this level.

Exact top-level --help output

usage: fo_formats.py [-h] {config,protos,text} ...

Print Engine content formats as the Engine reads them, as JSON.

positional arguments:
  {config,protos,text}
    config              Effective settings, resource packs and sub-configs of a main config.
    protos              Effective prototype values of every Proto baker pack.
    text                Entries of one .fotxt text pack file.

options:
  -h, --help            show this help message and exit

config

Effective settings, resource packs and sub-configs of a main config.

Stable ID: helper-cli.fo-formats.command.config

usage: fo_formats.py config [-h] [--sub-config SUB_CONFIG] [--files] main_config
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.fo-formats.command.config.argument.main_config main_config positional yes 1 - - Main configuration file (.fomain).
helper-cli.fo-formats.command.config.argument.sub_config --sub-config option no 1 - - Apply this [SubConfig] section after the main settings.
helper-cli.fo-formats.command.config.argument.files --files option no 0 - false Also list the input files of every resource pack.

Exact --help output

usage: fo_formats.py config [-h] [--sub-config SUB_CONFIG] [--files] main_config

positional arguments:
  main_config           Main configuration file (.fomain).

options:
  -h, --help            show this help message and exit
  --sub-config SUB_CONFIG
                        Apply this [SubConfig] section after the main settings.
  --files               Also list the input files of every resource pack.

protos

Effective prototype values of every Proto baker pack.

Stable ID: helper-cli.fo-formats.command.protos

usage: fo_formats.py protos [-h] [--sub-config SUB_CONFIG] [--type TYPE_NAME] [--name NAME] main_config
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.fo-formats.command.protos.argument.main_config main_config positional yes 1 - - Main configuration file (.fomain).
helper-cli.fo-formats.command.protos.argument.sub_config --sub-config option no 1 - - Apply this [SubConfig] section after the main settings.
helper-cli.fo-formats.command.protos.argument.type_name --type option no 1 - - Print only prototypes of this type.
helper-cli.fo-formats.command.protos.argument.name --name option no 1 - - Print only the prototype with this migrated name.

Exact --help output

usage: fo_formats.py protos [-h] [--sub-config SUB_CONFIG] [--type TYPE_NAME] [--name NAME] main_config

positional arguments:
  main_config           Main configuration file (.fomain).

options:
  -h, --help            show this help message and exit
  --sub-config SUB_CONFIG
                        Apply this [SubConfig] section after the main settings.
  --type TYPE_NAME      Print only prototypes of this type.
  --name NAME           Print only the prototype with this migrated name.

text

Entries of one .fotxt text pack file.

Stable ID: helper-cli.fo-formats.command.text

usage: fo_formats.py text [-h] path
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.fo-formats.command.text.argument.path path positional yes 1 - - Text pack file named <TextPack>.<Language>.fotxt.

Exact --help output

usage: fo_formats.py text [-h] path

positional arguments:
  path        Text pack file named <TextPack>.<Language>.fotxt.

options:
  -h, --help  show this help message and exit

Identity migration guard

Require a MigrationRule for every removed or renamed prototype, property and enum value and refuse reuse of retired identifiers against a committed manifest.

  • Stable ID: helper-cli.migration-guard
  • Program: migration_guard.py
  • Owner: quality
  • Audience: game-developer, embedding-project-build-system, ci-maintainer
  • Invocation owner: embedding-project local validation tasks and CI content gates
  • Parser source: BuildTools/migration_guard.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.migration-guard.argument.check --check option no 0 - false Compare the tree with the manifest; exit 1 on any violation.
helper-cli.migration-guard.argument.update_manifest --update-manifest option no 0 - false Rewrite the manifest from the tree; refuses while a rule is missing or an identifier is reused.
helper-cli.migration-guard.argument.root --root option no 1 - . Project root; relative paths resolve against it (default: current directory).
helper-cli.migration-guard.argument.config --config option no 1 - - JSON guard configuration, relative to the root.
helper-cli.migration-guard.argument.main_config --main-config option no 1 - - Main configuration file (.fomain) whose packs define the scope.
helper-cli.migration-guard.argument.sub_config --sub-config option no 1 - - Apply this [SubConfig] of the main config before reading resource packs.
helper-cli.migration-guard.argument.manifest --manifest option no 1 - - Manifest file to check or rewrite.
helper-cli.migration-guard.argument.content_dir --content-dir option no 1 - - Prototype directory; replaces the Proto packs of the main config.
helper-cli.migration-guard.argument.proto_extension --proto-extension option no 1 - - Prototype file extension used with –content-dir (default: Baking.ProtoFileExtensions).
helper-cli.migration-guard.argument.script_dir --script-dir option no 1 - - Script source directory; replaces the Metadata packs of the main config.
helper-cli.migration-guard.argument.native_source --native-source option no 1 - - Root-relative glob of native sources with property and enum declarations.

Exact top-level --help output

usage: migration_guard.py [-h] (--check | --update-manifest) [--root ROOT] [--config CONFIG] [--main-config MAIN_CONFIG] [--sub-config SUB_CONFIG] [--manifest MANIFEST] [--content-dir CONTENT_DIR] [--proto-extension PROTO_EXTENSION]
                          [--script-dir SCRIPT_DIR] [--native-source NATIVE_SOURCE]

Require a MigrationRule for every removed or renamed prototype, property and enum value, and refuse reuse of a retired identifier, against a committed manifest.

options:
  -h, --help            show this help message and exit
  --check               Compare the tree with the manifest; exit 1 on any violation.
  --update-manifest     Rewrite the manifest from the tree; refuses while a rule is missing or an identifier is reused.
  --root ROOT           Project root; relative paths resolve against it (default: current directory).
  --config CONFIG       JSON guard configuration, relative to the root.
  --main-config MAIN_CONFIG
                        Main configuration file (.fomain) whose packs define the scope.
  --sub-config SUB_CONFIG
                        Apply this [SubConfig] of the main config before reading resource packs.
  --manifest MANIFEST   Manifest file to check or rewrite.
  --content-dir CONTENT_DIR
                        Prototype directory; replaces the Proto packs of the main config.
  --proto-extension PROTO_EXTENSION
                        Prototype file extension used with --content-dir (default: Baking.ProtoFileExtensions).
  --script-dir SCRIPT_DIR
                        Script source directory; replaces the Metadata packs of the main config.
  --native-source NATIVE_SOURCE
                        Root-relative glob of native sources with property and enum declarations.

AiControl MCP adapter

Serve an AiControl bridge to an MCP client over stdio with generic protocol, endpoint, readiness, and owned-process tools plus project-registered tools; a development tool, never shipped.

  • Stable ID: helper-cli.ai-control-mcp
  • Program: ai_control_mcp
  • Owner: tooling
  • Audience: game-developer, tool-developer, ci-maintainer
  • Invocation owner: embedding-project MCP client configurations, project tool modules, and AI playtest runners
  • Parser source: BuildTools/ai_control_mcp/cli.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.ai-control-mcp.argument.host --host option no 1 - 127.0.0.1 Default bridge host.
helper-cli.ai-control-mcp.argument.port --port option no 1 - 43011 Default bridge port and base port for launches.
helper-cli.ai-control-mcp.argument.timeout --timeout option no 1 - 5.0 Bridge socket timeout in seconds.
helper-cli.ai-control-mcp.argument.token_env --token-env option no 1 - FONLINE_AI_TOKEN Environment variable containing the shared bridge token.
helper-cli.ai-control-mcp.argument.allow_remote --allow-remote option no 0 - false Permit non-loopback bridges; they also require a token.
helper-cli.ai-control-mcp.argument.project_root --project-root option no 1 - . Root for launch paths, binaries and logs.
helper-cli.ai-control-mcp.argument.project_module --project-module option no 1 - - Dotted module name or .py file whose register(registry) adds project tools; repeatable.
helper-cli.ai-control-mcp.argument.module_path --module-path option no 1 - - Directory added to the import path for dotted project modules.
helper-cli.ai-control-mcp.argument.launch_profile --launch-profile option no 1 - - JSON launch profile; overrides a profile set by a project module.
helper-cli.ai-control-mcp.argument.tool_prefix --tool-prefix option no 1 - fo_ Prefix of the core tool names.
helper-cli.ai-control-mcp.argument.server_name --server-name option no 1 - fonline-ai-control MCP serverInfo name.
helper-cli.ai-control-mcp.argument.keep_processes_on_exit --keep-processes-on-exit option no 0 - false Leave launched processes running after the adapter exits; their trees must then be stopped manually.
helper-cli.ai-control-mcp.argument.max_message_bytes --max-message-bytes option no 1 - 4194304 Largest accepted MCP message line.
helper-cli.ai-control-mcp.argument.list_tools --list-tools option no 0 - false Print the registered tool names and descriptions as JSON, then exit.

Exact top-level --help output

usage: ai_control_mcp [-h] [--host HOST] [--port PORT] [--timeout TIMEOUT] [--token-env TOKEN_ENV] [--allow-remote] [--project-root PROJECT_ROOT] [--project-module PROJECT_MODULE] [--module-path MODULE_PATH]
                      [--launch-profile LAUNCH_PROFILE] [--tool-prefix TOOL_PREFIX] [--server-name SERVER_NAME] [--keep-processes-on-exit] [--max-message-bytes MAX_MESSAGE_BYTES] [--list-tools]

Serve an AiControl bridge to an MCP client over stdio; a development tool, never shipped.

options:
  -h, --help            show this help message and exit
  --host HOST           Default bridge host.
  --port PORT           Default bridge port and base port for launches.
  --timeout TIMEOUT     Bridge socket timeout in seconds.
  --token-env TOKEN_ENV
                        Environment variable containing the shared bridge token.
  --allow-remote        Permit non-loopback bridges; they also require a token.
  --project-root PROJECT_ROOT
                        Root for launch paths, binaries and logs.
  --project-module PROJECT_MODULE
                        Dotted module name or .py file whose register(registry) adds project tools; repeatable.
  --module-path MODULE_PATH
                        Directory added to the import path for dotted project modules.
  --launch-profile LAUNCH_PROFILE
                        JSON launch profile; overrides a profile set by a project module.
  --tool-prefix TOOL_PREFIX
                        Prefix of the core tool names.
  --server-name SERVER_NAME
                        MCP serverInfo name.
  --keep-processes-on-exit
                        Leave launched processes running after the adapter exits; their trees must then be stopped manually.
  --max-message-bytes MAX_MESSAGE_BYTES
                        Largest accepted MCP message line.
  --list-tools          Print the registered tool names and descriptions as JSON, then exit.

Windows 7 import validation

Inspect linked PE files for Windows 7 import compatibility and optionally require the large-address flag on executables.

  • Stable ID: helper-cli.windows7-import-check
  • Program: check_windows7_imports.py
  • Owner: quality
  • Audience: engine-contributor, embedding-project-build-system, release-operator
  • Invocation owner: embedding-project Windows 7 CI and release validation
  • Parser source: BuildTools/check_windows7_imports.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.windows7-import-check.argument.require_large_address_aware --require-large-address-aware option no 0 - false Require the large-address flag on checked executables
helper-cli.windows7-import-check.argument.binaries binaries positional yes + - - linked PE executable or DLL to inspect

Exact top-level --help output

usage: check_windows7_imports.py [-h] [--require-large-address-aware] binaries [binaries ...]

Reject imports Windows 7 SP1 cannot resolve from Windows 7-compatible PE binaries

positional arguments:
  binaries              linked PE executable or DLL to inspect

options:
  -h, --help            show this help message and exit
  --require-large-address-aware
                        Require the large-address flag on checked executables

Check local Markdown links, GitHub-style heading anchors, UTF-8, fenced-code balance, and optional single-H1 structure under one repository root.

  • Stable ID: helper-cli.markdown-links
  • Program: markdown_links.py
  • Owner: quality
  • Audience: game-developer, engine-contributor, embedding-project-build-system, ci-maintainer
  • Invocation owner: embedding-project documentation wrappers, local tasks, and CI documentation jobs
  • Parser source: BuildTools/markdown_links.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.markdown-links.argument.root --root option no 1 - . repository root that bounds link targets (default: current directory)
helper-cli.markdown-links.argument.include --include option no 1 - - root-relative document glob; repeatable (default: */.md and */.markdown)
helper-cli.markdown-links.argument.exclude --exclude option no 1 - - root-relative file or directory glob removed from the document set; repeatable
helper-cli.markdown-links.argument.target_root --target-root option no 1 - - extra directory, relative to –root, that links may point into without its documents being checked; repeatable
helper-cli.markdown-links.argument.skip_target --skip-target option no 1 - - root-relative glob of link targets that are not verified, such as a submodule that is not checked out; repeatable
helper-cli.markdown-links.argument.allow_line_fragments --allow-line-fragments option no 0 - false accept #L10 and #L10-L20 line fragments on Markdown targets
helper-cli.markdown-links.argument.require_reference_definitions --require-reference-definitions option no 0 - false report [text][label] links whose label has no definition in the same document
helper-cli.markdown-links.argument.require_single_h1 --require-single-h1 option no 0 - false report documents that do not contain exactly one H1 heading
helper-cli.markdown-links.argument.require_yaml_front_matter --require-yaml-front-matter option no 0 - false report front matter values that hold ‘: ‘ outside quotes, which YAML reads as a second mapping
helper-cli.markdown-links.argument.h1_exempt --h1-exempt option no 1 - - root-relative glob of documents exempt from –require-single-h1; repeatable
helper-cli.markdown-links.argument.list --list option no 0 - false print the selected documents instead of checking them

Exact top-level --help output

usage: markdown_links.py [-h] [--root ROOT] [--include GLOB] [--exclude GLOB] [--target-root DIR] [--skip-target GLOB] [--allow-line-fragments] [--require-reference-definitions] [--require-single-h1] [--require-yaml-front-matter]
                         [--h1-exempt GLOB] [--list]

Check local Markdown links, heading anchors, UTF-8 and fenced-code balance under one root

options:
  -h, --help            show this help message and exit
  --root ROOT           repository root that bounds link targets (default: current directory)
  --include GLOB        root-relative document glob; repeatable (default: **/*.md and **/*.markdown)
  --exclude GLOB        root-relative file or directory glob removed from the document set; repeatable
  --target-root DIR     extra directory, relative to --root, that links may point into without its documents being checked; repeatable
  --skip-target GLOB    root-relative glob of link targets that are not verified, such as a submodule that is not checked out; repeatable
  --allow-line-fragments
                        accept #L10 and #L10-L20 line fragments on Markdown targets
  --require-reference-definitions
                        report [text][label] links whose label has no definition in the same document
  --require-single-h1   report documents that do not contain exactly one H1 heading
  --require-yaml-front-matter
                        report front matter values that hold ': ' outside quotes, which YAML reads as a second mapping
  --h1-exempt GLOB      root-relative glob of documents exempt from --require-single-h1; repeatable
  --list                print the selected documents instead of checking them

Native source audits

Audit native C++ scopes for allocator, smart-pointer and local-variable contract violations with Engine-owned and project baselines.

  • Stable ID: helper-cli.native-source-audit
  • Program: native_source_audit.py
  • Owner: quality
  • Audience: engine-contributor, embedding-project-build-system, ci-maintainer
  • Invocation owner: Engine validation CI, embedding-project native audit wrappers and direct developer use
  • Parser source: BuildTools/native_source_audit.py

Top-level arguments

No arguments at this level.

Exact top-level --help output

usage: native_source_audit.py [-h] AUDIT ...

Audit native C++ sources against the Engine coding contracts. Each audit scans --scope paths below --root (default: the Engine Source directory), applies the Engine-owned baseline plus project baselines, and fails on remaining findings or
on stale baseline rows. Exit codes: 0 passed or skipped, 1 findings or stale baseline rows, 2 invalid invocation, configuration, baseline or tool failure.

positional arguments:
  AUDIT
    allocator           Report standard containers, allocating std:: helpers and C allocation outside the memory system.
    smart-pointer       Check the ptr/nptr/unique/refcount smart-pointer vocabulary and raw-pointer boundaries.
    smart-pointer-ast   Find raw pointer declarations on lines added since a git revision with clang-query.
    local-variables     Find redundant top-level const locals (clang-query) and use-after-move (clang-tidy).
    explicit-local-types
                        Find auto locals whose deduced type is a simple explicit type (clang-query).

options:
  -h, --help            show this help message and exit

allocator

Report standard containers, allocating std:: helpers and C allocation outside the memory system.

Stable ID: helper-cli.native-source-audit.command.allocator

usage: native_source_audit.py allocator [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE] [--max-printed MAX_PRINTED]
                                        [--engine-root ENGINE_ROOT] [--fail-on {error,warning,none}]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.native-source-audit.command.allocator.argument.root --root option no 1 - - Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
helper-cli.native-source-audit.command.allocator.argument.scope --scope option no 1 - - File or directory to audit, relative to –root; repeatable (default: config scopes, else the Engine Source directory).
helper-cli.native-source-audit.command.allocator.argument.exclude --exclude option no 1 - - fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
helper-cli.native-source-audit.command.allocator.argument.config --config option no 1 - - JSON configuration with scopes, exclude patterns, baselines and audit options; relative to –root.
helper-cli.native-source-audit.command.allocator.argument.baseline --baseline option no 1 - - Additional project baseline TSV with root-relative paths; repeatable.
helper-cli.native-source-audit.command.allocator.argument.no_engine_baseline --no-engine-baseline option no 0 - false Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
helper-cli.native-source-audit.command.allocator.argument.report --report option no 1 - - Write remaining findings and stale baseline rows as TSV.
helper-cli.native-source-audit.command.allocator.argument.emit_baseline --emit-baseline option no 1 - - Write candidate baseline rows (empty reason column) for the remaining findings.
helper-cli.native-source-audit.command.allocator.argument.max_printed --max-printed option no 1 - 50 Maximum findings printed to stdout; 0 prints all (default: 50).
helper-cli.native-source-audit.command.allocator.argument.engine_root --engine-root option no 1 - - Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
helper-cli.native-source-audit.command.allocator.argument.fail_on --fail-on option no 1 error, warning, none error Minimum severity that fails the command (default: error).

Exact --help output

usage: native_source_audit.py allocator [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE] [--max-printed MAX_PRINTED]
                                        [--engine-root ENGINE_ROOT] [--fail-on {error,warning,none}]

Report standard containers, allocating std:: helpers and bare C allocation calls that bypass the Engine memory system.

options:
  -h, --help            show this help message and exit
  --root ROOT           Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
  --scope SCOPE         File or directory to audit, relative to --root; repeatable (default: config scopes, else the Engine Source directory).
  --exclude EXCLUDE     fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
  --config CONFIG       JSON configuration with scopes, exclude patterns, baselines and audit options; relative to --root.
  --baseline BASELINE   Additional project baseline TSV with root-relative paths; repeatable.
  --no-engine-baseline  Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
  --report REPORT       Write remaining findings and stale baseline rows as TSV.
  --emit-baseline EMIT_BASELINE
                        Write candidate baseline rows (empty reason column) for the remaining findings.
  --max-printed MAX_PRINTED
                        Maximum findings printed to stdout; 0 prints all (default: 50).
  --engine-root ENGINE_ROOT
                        Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
  --fail-on {error,warning,none}
                        Minimum severity that fails the command (default: error).

smart-pointer

Check the ptr/nptr/unique/refcount smart-pointer vocabulary and raw-pointer boundaries.

Stable ID: helper-cli.native-source-audit.command.smart-pointer

usage: native_source_audit.py smart-pointer [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                            [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--fail-on {error,warning,none}] [--inventory] [--inventory-output INVENTORY_OUTPUT] [--inventory-details-output INVENTORY_DETAILS_OUTPUT]
                                            [--summary-output SUMMARY_OUTPUT] [--jobs JOBS]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.native-source-audit.command.smart-pointer.argument.root --root option no 1 - - Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
helper-cli.native-source-audit.command.smart-pointer.argument.scope --scope option no 1 - - File or directory to audit, relative to –root; repeatable (default: config scopes, else the Engine Source directory).
helper-cli.native-source-audit.command.smart-pointer.argument.exclude --exclude option no 1 - - fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
helper-cli.native-source-audit.command.smart-pointer.argument.config --config option no 1 - - JSON configuration with scopes, exclude patterns, baselines and audit options; relative to –root.
helper-cli.native-source-audit.command.smart-pointer.argument.baseline --baseline option no 1 - - Additional project baseline TSV with root-relative paths; repeatable.
helper-cli.native-source-audit.command.smart-pointer.argument.no_engine_baseline --no-engine-baseline option no 0 - false Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
helper-cli.native-source-audit.command.smart-pointer.argument.report --report option no 1 - - Write remaining findings and stale baseline rows as TSV.
helper-cli.native-source-audit.command.smart-pointer.argument.emit_baseline --emit-baseline option no 1 - - Write candidate baseline rows (empty reason column) for the remaining findings.
helper-cli.native-source-audit.command.smart-pointer.argument.max_printed --max-printed option no 1 - 50 Maximum findings printed to stdout; 0 prints all (default: 50).
helper-cli.native-source-audit.command.smart-pointer.argument.engine_root --engine-root option no 1 - - Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
helper-cli.native-source-audit.command.smart-pointer.argument.fail_on --fail-on option no 1 error, warning, none error Minimum severity that fails the command (default: error).
helper-cli.native-source-audit.command.smart-pointer.argument.inventory --inventory option no 0 - false Print non-failing inventory counters for pointer vocabulary and raw-pointer markers.
helper-cli.native-source-audit.command.smart-pointer.argument.inventory_output --inventory-output option no 1 - - Write per-file inventory counters as TSV.
helper-cli.native-source-audit.command.smart-pointer.argument.inventory_details_output --inventory-details-output option no 1 - - Write line-level inventory markers as TSV.
helper-cli.native-source-audit.command.smart-pointer.argument.summary_output --summary-output option no 1 - - Write a JSON summary of findings and inventory counters.
helper-cli.native-source-audit.command.smart-pointer.argument.jobs --jobs option no 1 - 0 Worker processes; 0 uses the CPU count; output order does not depend on it (default: 0).

Exact --help output

usage: native_source_audit.py smart-pointer [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                            [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--fail-on {error,warning,none}] [--inventory] [--inventory-output INVENTORY_OUTPUT] [--inventory-details-output INVENTORY_DETAILS_OUTPUT]
                                            [--summary-output SUMMARY_OUTPUT] [--jobs JOBS]

Check the smart-pointer vocabulary, nullable checks and raw-pointer boundary shapes with text rules.

options:
  -h, --help            show this help message and exit
  --root ROOT           Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
  --scope SCOPE         File or directory to audit, relative to --root; repeatable (default: config scopes, else the Engine Source directory).
  --exclude EXCLUDE     fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
  --config CONFIG       JSON configuration with scopes, exclude patterns, baselines and audit options; relative to --root.
  --baseline BASELINE   Additional project baseline TSV with root-relative paths; repeatable.
  --no-engine-baseline  Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
  --report REPORT       Write remaining findings and stale baseline rows as TSV.
  --emit-baseline EMIT_BASELINE
                        Write candidate baseline rows (empty reason column) for the remaining findings.
  --max-printed MAX_PRINTED
                        Maximum findings printed to stdout; 0 prints all (default: 50).
  --engine-root ENGINE_ROOT
                        Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
  --fail-on {error,warning,none}
                        Minimum severity that fails the command (default: error).
  --inventory           Print non-failing inventory counters for pointer vocabulary and raw-pointer markers.
  --inventory-output INVENTORY_OUTPUT
                        Write per-file inventory counters as TSV.
  --inventory-details-output INVENTORY_DETAILS_OUTPUT
                        Write line-level inventory markers as TSV.
  --summary-output SUMMARY_OUTPUT
                        Write a JSON summary of findings and inventory counters.
  --jobs JOBS           Worker processes; 0 uses the CPU count; output order does not depend on it (default: 0).

smart-pointer-ast

Find raw pointer declarations on lines added since a git revision with clang-query.

Stable ID: helper-cli.native-source-audit.command.smart-pointer-ast

usage: native_source_audit.py smart-pointer-ast [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                                [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--compilation-database COMPILATION_DATABASE] [--clang-query CLANG_QUERY] [--clang-tidy CLANG_TIDY] [--require-tooling]
                                                [--source-pattern SOURCE_PATTERN] [--unit-pattern UNIT_PATTERN] [--jobs JOBS] [--batch-size BATCH_SIZE] [--timeout TIMEOUT] [--diff-base DIFF_BASE] [--all]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.native-source-audit.command.smart-pointer-ast.argument.root --root option no 1 - - Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.scope --scope option no 1 - - File or directory to audit, relative to –root; repeatable (default: config scopes, else the Engine Source directory).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.exclude --exclude option no 1 - - fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.config --config option no 1 - - JSON configuration with scopes, exclude patterns, baselines and audit options; relative to –root.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.baseline --baseline option no 1 - - Additional project baseline TSV with root-relative paths; repeatable.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.no_engine_baseline --no-engine-baseline option no 0 - false Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.report --report option no 1 - - Write remaining findings and stale baseline rows as TSV.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.emit_baseline --emit-baseline option no 1 - - Write candidate baseline rows (empty reason column) for the remaining findings.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.max_printed --max-printed option no 1 - 50 Maximum findings printed to stdout; 0 prints all (default: 50).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.engine_root --engine-root option no 1 - - Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.compilation_database --compilation-database option no 1 - - Directory containing compile_commands.json (default: config compilation_database).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.clang_query --clang-query option no 1 - - clang-query executable (default: FO_CLANG_QUERY, then PATH).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.clang_tidy --clang-tidy option no 1 - - clang-tidy executable for use-after-move (default: FO_CLANG_TIDY, then PATH).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.require_tooling --require-tooling option no 0 - false Fail with exit code 2 instead of skipping when clang tools or the compilation database are missing.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.source_pattern --source-pattern option no 1 - - clang-query isExpansionInFileMatching regex (default: derived from the scopes).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.unit_pattern --unit-pattern option no 1 - - Only analyze compilation units whose display path matches this regex.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.jobs --jobs option no 1 - 4 Parallel clang processes (default: 4).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.batch_size --batch-size option no 1 - 2 Translation units per clang process (default: 2).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.timeout --timeout option no 1 - 900 Seconds allowed per clang process (default: 900).
helper-cli.native-source-audit.command.smart-pointer-ast.argument.diff_base --diff-base option no 1 - - Report only matches on lines added since this git revision.
helper-cli.native-source-audit.command.smart-pointer-ast.argument.all --all option no 0 - false Report every match in the scopes instead of added lines only.

Exact --help output

usage: native_source_audit.py smart-pointer-ast [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                                [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--compilation-database COMPILATION_DATABASE] [--clang-query CLANG_QUERY] [--clang-tidy CLANG_TIDY] [--require-tooling]
                                                [--source-pattern SOURCE_PATTERN] [--unit-pattern UNIT_PATTERN] [--jobs JOBS] [--batch-size BATCH_SIZE] [--timeout TIMEOUT] [--diff-base DIFF_BASE] [--all]

Run clang-query over a compilation database and report raw pointer declarations, fields, parameters and returns.

options:
  -h, --help            show this help message and exit
  --root ROOT           Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
  --scope SCOPE         File or directory to audit, relative to --root; repeatable (default: config scopes, else the Engine Source directory).
  --exclude EXCLUDE     fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
  --config CONFIG       JSON configuration with scopes, exclude patterns, baselines and audit options; relative to --root.
  --baseline BASELINE   Additional project baseline TSV with root-relative paths; repeatable.
  --no-engine-baseline  Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
  --report REPORT       Write remaining findings and stale baseline rows as TSV.
  --emit-baseline EMIT_BASELINE
                        Write candidate baseline rows (empty reason column) for the remaining findings.
  --max-printed MAX_PRINTED
                        Maximum findings printed to stdout; 0 prints all (default: 50).
  --engine-root ENGINE_ROOT
                        Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
  --compilation-database COMPILATION_DATABASE
                        Directory containing compile_commands.json (default: config compilation_database).
  --clang-query CLANG_QUERY
                        clang-query executable (default: FO_CLANG_QUERY, then PATH).
  --clang-tidy CLANG_TIDY
                        clang-tidy executable for use-after-move (default: FO_CLANG_TIDY, then PATH).
  --require-tooling     Fail with exit code 2 instead of skipping when clang tools or the compilation database are missing.
  --source-pattern SOURCE_PATTERN
                        clang-query isExpansionInFileMatching regex (default: derived from the scopes).
  --unit-pattern UNIT_PATTERN
                        Only analyze compilation units whose display path matches this regex.
  --jobs JOBS           Parallel clang processes (default: 4).
  --batch-size BATCH_SIZE
                        Translation units per clang process (default: 2).
  --timeout TIMEOUT     Seconds allowed per clang process (default: 900).
  --diff-base DIFF_BASE
                        Report only matches on lines added since this git revision.
  --all                 Report every match in the scopes instead of added lines only.

local-variables

Find redundant top-level const locals (clang-query) and use-after-move (clang-tidy).

Stable ID: helper-cli.native-source-audit.command.local-variables

usage: native_source_audit.py local-variables [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                              [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--compilation-database COMPILATION_DATABASE] [--clang-query CLANG_QUERY] [--clang-tidy CLANG_TIDY] [--require-tooling]
                                              [--source-pattern SOURCE_PATTERN] [--unit-pattern UNIT_PATTERN] [--jobs JOBS] [--batch-size BATCH_SIZE] [--timeout TIMEOUT] [--checks {all,redundant-local-const,use-after-move}]
                                              [--mode {check,report,apply}]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.native-source-audit.command.local-variables.argument.root --root option no 1 - - Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
helper-cli.native-source-audit.command.local-variables.argument.scope --scope option no 1 - - File or directory to audit, relative to –root; repeatable (default: config scopes, else the Engine Source directory).
helper-cli.native-source-audit.command.local-variables.argument.exclude --exclude option no 1 - - fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
helper-cli.native-source-audit.command.local-variables.argument.config --config option no 1 - - JSON configuration with scopes, exclude patterns, baselines and audit options; relative to –root.
helper-cli.native-source-audit.command.local-variables.argument.baseline --baseline option no 1 - - Additional project baseline TSV with root-relative paths; repeatable.
helper-cli.native-source-audit.command.local-variables.argument.no_engine_baseline --no-engine-baseline option no 0 - false Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
helper-cli.native-source-audit.command.local-variables.argument.report --report option no 1 - - Write remaining findings and stale baseline rows as TSV.
helper-cli.native-source-audit.command.local-variables.argument.emit_baseline --emit-baseline option no 1 - - Write candidate baseline rows (empty reason column) for the remaining findings.
helper-cli.native-source-audit.command.local-variables.argument.max_printed --max-printed option no 1 - 50 Maximum findings printed to stdout; 0 prints all (default: 50).
helper-cli.native-source-audit.command.local-variables.argument.engine_root --engine-root option no 1 - - Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
helper-cli.native-source-audit.command.local-variables.argument.compilation_database --compilation-database option no 1 - - Directory containing compile_commands.json (default: config compilation_database).
helper-cli.native-source-audit.command.local-variables.argument.clang_query --clang-query option no 1 - - clang-query executable (default: FO_CLANG_QUERY, then PATH).
helper-cli.native-source-audit.command.local-variables.argument.clang_tidy --clang-tidy option no 1 - - clang-tidy executable for use-after-move (default: FO_CLANG_TIDY, then PATH).
helper-cli.native-source-audit.command.local-variables.argument.require_tooling --require-tooling option no 0 - false Fail with exit code 2 instead of skipping when clang tools or the compilation database are missing.
helper-cli.native-source-audit.command.local-variables.argument.source_pattern --source-pattern option no 1 - - clang-query isExpansionInFileMatching regex (default: derived from the scopes).
helper-cli.native-source-audit.command.local-variables.argument.unit_pattern --unit-pattern option no 1 - - Only analyze compilation units whose display path matches this regex.
helper-cli.native-source-audit.command.local-variables.argument.jobs --jobs option no 1 - 4 Parallel clang processes (default: 4).
helper-cli.native-source-audit.command.local-variables.argument.batch_size --batch-size option no 1 - 2 Translation units per clang process (default: 2).
helper-cli.native-source-audit.command.local-variables.argument.timeout --timeout option no 1 - 900 Seconds allowed per clang process (default: 900).
helper-cli.native-source-audit.command.local-variables.argument.checks --checks option no 1 all, redundant-local-const, use-after-move all Checks to run (default: all).
helper-cli.native-source-audit.command.local-variables.argument.mode --mode option no 1 check, report, apply check check fails on active findings; report never fails; apply removes redundant const (requires –checks redundant-local-const).

Exact --help output

usage: native_source_audit.py local-variables [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                              [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--compilation-database COMPILATION_DATABASE] [--clang-query CLANG_QUERY] [--clang-tidy CLANG_TIDY] [--require-tooling]
                                              [--source-pattern SOURCE_PATTERN] [--unit-pattern UNIT_PATTERN] [--jobs JOBS] [--batch-size BATCH_SIZE] [--timeout TIMEOUT] [--checks {all,redundant-local-const,use-after-move}]
                                              [--mode {check,report,apply}]

Run clang-query and clang-tidy over a compilation database to find redundant top-level local const and use-after-move.

options:
  -h, --help            show this help message and exit
  --root ROOT           Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
  --scope SCOPE         File or directory to audit, relative to --root; repeatable (default: config scopes, else the Engine Source directory).
  --exclude EXCLUDE     fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
  --config CONFIG       JSON configuration with scopes, exclude patterns, baselines and audit options; relative to --root.
  --baseline BASELINE   Additional project baseline TSV with root-relative paths; repeatable.
  --no-engine-baseline  Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
  --report REPORT       Write remaining findings and stale baseline rows as TSV.
  --emit-baseline EMIT_BASELINE
                        Write candidate baseline rows (empty reason column) for the remaining findings.
  --max-printed MAX_PRINTED
                        Maximum findings printed to stdout; 0 prints all (default: 50).
  --engine-root ENGINE_ROOT
                        Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
  --compilation-database COMPILATION_DATABASE
                        Directory containing compile_commands.json (default: config compilation_database).
  --clang-query CLANG_QUERY
                        clang-query executable (default: FO_CLANG_QUERY, then PATH).
  --clang-tidy CLANG_TIDY
                        clang-tidy executable for use-after-move (default: FO_CLANG_TIDY, then PATH).
  --require-tooling     Fail with exit code 2 instead of skipping when clang tools or the compilation database are missing.
  --source-pattern SOURCE_PATTERN
                        clang-query isExpansionInFileMatching regex (default: derived from the scopes).
  --unit-pattern UNIT_PATTERN
                        Only analyze compilation units whose display path matches this regex.
  --jobs JOBS           Parallel clang processes (default: 4).
  --batch-size BATCH_SIZE
                        Translation units per clang process (default: 2).
  --timeout TIMEOUT     Seconds allowed per clang process (default: 900).
  --checks {all,redundant-local-const,use-after-move}
                        Checks to run (default: all).
  --mode {check,report,apply}
                        check fails on active findings; report never fails; apply removes redundant const (requires --checks redundant-local-const).

explicit-local-types

Find auto locals whose deduced type is a simple explicit type (clang-query).

Stable ID: helper-cli.native-source-audit.command.explicit-local-types

usage: native_source_audit.py explicit-local-types [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                                   [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--compilation-database COMPILATION_DATABASE] [--clang-query CLANG_QUERY] [--clang-tidy CLANG_TIDY] [--require-tooling]
                                                   [--source-pattern SOURCE_PATTERN] [--unit-pattern UNIT_PATTERN] [--jobs JOBS] [--batch-size BATCH_SIZE] [--timeout TIMEOUT] [--mode {check,report,apply}] [--also-redundant-local-const]
                                                   [--json JSON] [--apply-report APPLY_REPORT]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.native-source-audit.command.explicit-local-types.argument.root --root option no 1 - - Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
helper-cli.native-source-audit.command.explicit-local-types.argument.scope --scope option no 1 - - File or directory to audit, relative to –root; repeatable (default: config scopes, else the Engine Source directory).
helper-cli.native-source-audit.command.explicit-local-types.argument.exclude --exclude option no 1 - - fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
helper-cli.native-source-audit.command.explicit-local-types.argument.config --config option no 1 - - JSON configuration with scopes, exclude patterns, baselines and audit options; relative to –root.
helper-cli.native-source-audit.command.explicit-local-types.argument.baseline --baseline option no 1 - - Additional project baseline TSV with root-relative paths; repeatable.
helper-cli.native-source-audit.command.explicit-local-types.argument.no_engine_baseline --no-engine-baseline option no 0 - false Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
helper-cli.native-source-audit.command.explicit-local-types.argument.report --report option no 1 - - Write remaining findings and stale baseline rows as TSV.
helper-cli.native-source-audit.command.explicit-local-types.argument.emit_baseline --emit-baseline option no 1 - - Write candidate baseline rows (empty reason column) for the remaining findings.
helper-cli.native-source-audit.command.explicit-local-types.argument.max_printed --max-printed option no 1 - 50 Maximum findings printed to stdout; 0 prints all (default: 50).
helper-cli.native-source-audit.command.explicit-local-types.argument.engine_root --engine-root option no 1 - - Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
helper-cli.native-source-audit.command.explicit-local-types.argument.compilation_database --compilation-database option no 1 - - Directory containing compile_commands.json (default: config compilation_database).
helper-cli.native-source-audit.command.explicit-local-types.argument.clang_query --clang-query option no 1 - - clang-query executable (default: FO_CLANG_QUERY, then PATH).
helper-cli.native-source-audit.command.explicit-local-types.argument.clang_tidy --clang-tidy option no 1 - - clang-tidy executable for use-after-move (default: FO_CLANG_TIDY, then PATH).
helper-cli.native-source-audit.command.explicit-local-types.argument.require_tooling --require-tooling option no 0 - false Fail with exit code 2 instead of skipping when clang tools or the compilation database are missing.
helper-cli.native-source-audit.command.explicit-local-types.argument.source_pattern --source-pattern option no 1 - - clang-query isExpansionInFileMatching regex (default: derived from the scopes).
helper-cli.native-source-audit.command.explicit-local-types.argument.unit_pattern --unit-pattern option no 1 - - Only analyze compilation units whose display path matches this regex.
helper-cli.native-source-audit.command.explicit-local-types.argument.jobs --jobs option no 1 - 4 Parallel clang processes (default: 4).
helper-cli.native-source-audit.command.explicit-local-types.argument.batch_size --batch-size option no 1 - 2 Translation units per clang process (default: 2).
helper-cli.native-source-audit.command.explicit-local-types.argument.timeout --timeout option no 1 - 900 Seconds allowed per clang process (default: 900).
helper-cli.native-source-audit.command.explicit-local-types.argument.mode --mode option no 1 check, report, apply check check fails on candidates; report never fails; apply rewrites the eligible auto tokens.
helper-cli.native-source-audit.command.explicit-local-types.argument.also_redundant_local_const --also-redundant-local-const option no 0 - false Run the redundant-local-const matcher in the same AST pass.
helper-cli.native-source-audit.command.explicit-local-types.argument.json --json option no 1 - - Write the full candidate report as JSON.
helper-cli.native-source-audit.command.explicit-local-types.argument.apply_report --apply-report option no 1 - - Apply a previously reviewed JSON report without running clang-query (requires –mode apply).

Exact --help output

usage: native_source_audit.py explicit-local-types [-h] [--root ROOT] [--scope SCOPE] [--exclude EXCLUDE] [--config CONFIG] [--baseline BASELINE] [--no-engine-baseline] [--report REPORT] [--emit-baseline EMIT_BASELINE]
                                                   [--max-printed MAX_PRINTED] [--engine-root ENGINE_ROOT] [--compilation-database COMPILATION_DATABASE] [--clang-query CLANG_QUERY] [--clang-tidy CLANG_TIDY] [--require-tooling]
                                                   [--source-pattern SOURCE_PATTERN] [--unit-pattern UNIT_PATTERN] [--jobs JOBS] [--batch-size BATCH_SIZE] [--timeout TIMEOUT] [--mode {check,report,apply}] [--also-redundant-local-const]
                                                   [--json JSON] [--apply-report APPLY_REPORT]

Run clang-query over a compilation database and report auto locals that must spell their simple type explicitly.

options:
  -h, --help            show this help message and exit
  --root ROOT           Root that scopes, excludes, reports and project baselines are relative to (default: current directory).
  --scope SCOPE         File or directory to audit, relative to --root; repeatable (default: config scopes, else the Engine Source directory).
  --exclude EXCLUDE     fnmatch pattern of root-relative paths to skip; a pattern ending in / skips a subtree; repeatable.
  --config CONFIG       JSON configuration with scopes, exclude patterns, baselines and audit options; relative to --root.
  --baseline BASELINE   Additional project baseline TSV with root-relative paths; repeatable.
  --no-engine-baseline  Do not apply BuildTools/audit_baselines/<audit>.tsv from the Engine.
  --report REPORT       Write remaining findings and stale baseline rows as TSV.
  --emit-baseline EMIT_BASELINE
                        Write candidate baseline rows (empty reason column) for the remaining findings.
  --max-printed MAX_PRINTED
                        Maximum findings printed to stdout; 0 prints all (default: 50).
  --engine-root ENGINE_ROOT
                        Engine checkout whose Source rules and BuildTools/audit_baselines apply (default: the Engine containing this tool).
  --compilation-database COMPILATION_DATABASE
                        Directory containing compile_commands.json (default: config compilation_database).
  --clang-query CLANG_QUERY
                        clang-query executable (default: FO_CLANG_QUERY, then PATH).
  --clang-tidy CLANG_TIDY
                        clang-tidy executable for use-after-move (default: FO_CLANG_TIDY, then PATH).
  --require-tooling     Fail with exit code 2 instead of skipping when clang tools or the compilation database are missing.
  --source-pattern SOURCE_PATTERN
                        clang-query isExpansionInFileMatching regex (default: derived from the scopes).
  --unit-pattern UNIT_PATTERN
                        Only analyze compilation units whose display path matches this regex.
  --jobs JOBS           Parallel clang processes (default: 4).
  --batch-size BATCH_SIZE
                        Translation units per clang process (default: 2).
  --timeout TIMEOUT     Seconds allowed per clang process (default: 900).
  --mode {check,report,apply}
                        check fails on candidates; report never fails; apply rewrites the eligible auto tokens.
  --also-redundant-local-const
                        Run the redundant-local-const matcher in the same AST pass.
  --json JSON           Write the full candidate report as JSON.
  --apply-report APPLY_REPORT
                        Apply a previously reviewed JSON report without running clang-query (requires --mode apply).

Native safety audits

Reject native code that changes entity cover behind server script exports and gate per-function exception-safety classifications of Engine and project sources against committed baselines, including markerless throw-capable functions that have no row.

  • Stable ID: helper-cli.native-safety-audit
  • Program: native_safety_audit.py
  • Owner: quality
  • Audience: engine-contributor, game-developer, embedding-project-build-system, ci-maintainer
  • Invocation owner: Engine validate workflow, embedding-project native validation tasks and CI
  • Parser source: BuildTools/native_safety_audit.py

Top-level arguments

No arguments at this level.

Exact top-level --help output

usage: native_safety_audit.py [-h] command ...

Audit Engine and project native sources against the entity-cover and exception-safety contracts.

positional arguments:
  command
    sync-scope      reject native code that obtains, replaces or releases entity cover for script exports
    exception-safety
                    check per-function exception-safety classifications against the baselines

options:
  -h, --help        show this help message and exit

sync-scope

reject native code that obtains, replaces or releases entity cover for script exports

Stable ID: helper-cli.native-safety-audit.command.sync-scope

usage: native_safety_audit.py sync-scope [-h] [--root ROOT] [--engine-root ENGINE_ROOT] [--scope DIR] [--config FILE] [--baseline FILE] [--json]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.native-safety-audit.command.sync-scope.argument.root --root option no 1 - - repository root for –scope, –config and –baseline paths (default: current directory)
helper-cli.native-safety-audit.command.sync-scope.argument.engine_root --engine-root option no 1 - - Engine checkout to audit (default: the checkout that contains this script)
helper-cli.native-safety-audit.command.sync-scope.argument.scope --scope option no 1 - - root-relative project native directory audited with the Engine rules (repeatable)
helper-cli.native-safety-audit.command.sync-scope.argument.config --config option no 1 - - project JSON configuration with vendored exclusions and reviewed project rules
helper-cli.native-safety-audit.command.sync-scope.argument.baseline --baseline option no 1 - - project baseline TSV for findings in the –scope directories
helper-cli.native-safety-audit.command.sync-scope.argument.json --json option no 0 - false print the summary and diagnostics as JSON

Exact --help output

usage: native_safety_audit.py sync-scope [-h] [--root ROOT] [--engine-root ENGINE_ROOT] [--scope DIR] [--config FILE] [--baseline FILE] [--json]

options:
  -h, --help            show this help message and exit
  --root ROOT           repository root for --scope, --config and --baseline paths (default: current directory)
  --engine-root ENGINE_ROOT
                        Engine checkout to audit (default: the checkout that contains this script)
  --scope DIR           root-relative project native directory audited with the Engine rules (repeatable)
  --config FILE         project JSON configuration with vendored exclusions and reviewed project rules
  --baseline FILE       project baseline TSV for findings in the --scope directories
  --json                print the summary and diagnostics as JSON

exception-safety

check per-function exception-safety classifications against the baselines

Stable ID: helper-cli.native-safety-audit.command.exception-safety

usage: native_safety_audit.py exception-safety [-h] [--root ROOT] [--engine-root ENGINE_ROOT] [--scope DIR] [--config FILE] [--baseline FILE] [--fail-on {error,warning}] [--require-classified]
                                               [--level {NoThrow,Strong,Basic,None,Unclassified}] [--area AREA] [--file FILE_FILTER] [--function FUNCTION_FILTER] [--add-new] [--add-markerless] [--prune-removed] [--migrate-signatures]
                                               [--accept FILE::FUNCTION] [--accept-all-changed]
                                               [{audit,report,update}]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.native-safety-audit.command.exception-safety.argument.root --root option no 1 - - repository root for –scope, –config and –baseline paths (default: current directory)
helper-cli.native-safety-audit.command.exception-safety.argument.engine_root --engine-root option no 1 - - Engine checkout to audit (default: the checkout that contains this script)
helper-cli.native-safety-audit.command.exception-safety.argument.scope --scope option no 1 - - root-relative project native directory audited with the Engine rules (repeatable)
helper-cli.native-safety-audit.command.exception-safety.argument.config --config option no 1 - - project JSON configuration with vendored exclusions and reviewed project rules
helper-cli.native-safety-audit.command.exception-safety.argument.baseline --baseline option no 1 - - project baseline TSV for findings in the –scope directories
helper-cli.native-safety-audit.command.exception-safety.argument.action action positional no ? audit, report, update audit audit (default) fails on drift; report summarizes the baselines; update maintains them
helper-cli.native-safety-audit.command.exception-safety.argument.fail_on --fail-on option no 1 error, warning - audit: also fail on warnings (pending None adjudication, review notes)
helper-cli.native-safety-audit.command.exception-safety.argument.require_classified --require-classified option no 0 - false audit: fail on markerless functions without a row that contain throw points or call classified functions, and on rows with a level whose status is still unclassified
helper-cli.native-safety-audit.command.exception-safety.argument.level --level option no 1 NoThrow, Strong, Basic, None, Unclassified - report: list rows with this level
helper-cli.native-safety-audit.command.exception-safety.argument.area --area option no 1 - - report: list rows of this source area (second path component)
helper-cli.native-safety-audit.command.exception-safety.argument.file_filter --file option no 1 - - report: list rows whose file contains this text
helper-cli.native-safety-audit.command.exception-safety.argument.function_filter --function option no 1 - - report: list rows whose function contains this text
helper-cli.native-safety-audit.command.exception-safety.argument.add_new --add-new option no 0 - false update: add unclassified rows for new functions
helper-cli.native-safety-audit.command.exception-safety.argument.add_markerless --add-markerless option no 0 - false update: add unclassified rows for the markerless functions the audit reports
helper-cli.native-safety-audit.command.exception-safety.argument.prune_removed --prune-removed option no 0 - false update: remove rows whose function vanished
helper-cli.native-safety-audit.command.exception-safety.argument.migrate_signatures --migrate-signatures option no 0 - false update: carry classifications across signature-only changes with identical body hashes
helper-cli.native-safety-audit.command.exception-safety.argument.accept --accept option no 1 - - update: refresh the body hash of a re-derived function (repeatable)
helper-cli.native-safety-audit.command.exception-safety.argument.accept_all_changed --accept-all-changed option no 0 - false update: refresh every changed body hash

Exact --help output

usage: native_safety_audit.py exception-safety [-h] [--root ROOT] [--engine-root ENGINE_ROOT] [--scope DIR] [--config FILE] [--baseline FILE] [--fail-on {error,warning}] [--require-classified]
                                               [--level {NoThrow,Strong,Basic,None,Unclassified}] [--area AREA] [--file FILE_FILTER] [--function FUNCTION_FILTER] [--add-new] [--add-markerless] [--prune-removed] [--migrate-signatures]
                                               [--accept FILE::FUNCTION] [--accept-all-changed]
                                               [{audit,report,update}]

positional arguments:
  {audit,report,update}
                        audit (default) fails on drift; report summarizes the baselines; update maintains them

options:
  -h, --help            show this help message and exit
  --root ROOT           repository root for --scope, --config and --baseline paths (default: current directory)
  --engine-root ENGINE_ROOT
                        Engine checkout to audit (default: the checkout that contains this script)
  --scope DIR           root-relative project native directory audited with the Engine rules (repeatable)
  --config FILE         project JSON configuration with vendored exclusions and reviewed project rules
  --baseline FILE       project baseline TSV for findings in the --scope directories
  --fail-on {error,warning}
                        audit: also fail on warnings (pending None adjudication, review notes)
  --require-classified  audit: fail on markerless functions without a row that contain throw points or call classified functions, and on rows with a level whose status is still unclassified
  --level {NoThrow,Strong,Basic,None,Unclassified}
                        report: list rows with this level
  --area AREA           report: list rows of this source area (second path component)
  --file FILE_FILTER    report: list rows whose file contains this text
  --function FUNCTION_FILTER
                        report: list rows whose function contains this text
  --add-new             update: add unclassified rows for new functions
  --add-markerless      update: add unclassified rows for the markerless functions the audit reports
  --prune-removed       update: remove rows whose function vanished
  --migrate-signatures  update: carry classifications across signature-only changes with identical body hashes
  --accept FILE::FUNCTION
                        update: refresh the body hash of a re-derived function (repeatable)
  --accept-all-changed  update: refresh every changed body hash

Android device control

Discover, connect, install, launch, stop, and inspect Android Wi-Fi devices through adb.

  • Stable ID: helper-cli.android-device
  • Program: android_device.py
  • Owner: platform
  • Audience: game-developer, engine-contributor
  • Invocation owner: embedding-project Android tasks and direct developer use
  • Parser source: BuildTools/android_device.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.android-device.argument.workspace_root --workspace-root option no 1 - - Workspace directory path containing android-sdk and android-debug

Exact top-level --help output

usage: android_device.py [-h] [--workspace-root WORKSPACE_ROOT] {discover,connect,install,launch,launch-game,stop,logcat} ...

Android Wi-Fi device helper for BuildTools tasks

positional arguments:
  {discover,connect,install,launch,launch-game,stop,logcat}
    discover            List Android Wi-Fi devices discovered through adb mdns
    connect             Connect to an Android Wi-Fi device and cache the endpoint
    install             Install an APK on the selected Android Wi-Fi device
    launch              Launch an Android activity on the selected device
    launch-game         Launch the Android game activity and pass RemoteSceneLaunch server host override
    stop                Force-stop an Android package on the selected device
    logcat              Stream logcat from the selected device

options:
  -h, --help            show this help message and exit
  --workspace-root WORKSPACE_ROOT
                        Workspace directory path containing android-sdk and android-debug

discover

List Android Wi-Fi devices discovered through adb mdns

Stable ID: helper-cli.android-device.command.discover

usage: android_device.py discover [-h]

No arguments at this level.

Exact --help output

usage: android_device.py discover [-h]

options:
  -h, --help  show this help message and exit

connect

Connect to an Android Wi-Fi device and cache the endpoint

Stable ID: helper-cli.android-device.command.connect

usage: android_device.py connect [-h] [--device DEVICE]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.android-device.command.connect.argument.device --device option no 1 - - Device IP[:port]; if omitted, auto-discovery and interactive selection are used

Exact --help output

usage: android_device.py connect [-h] [--device DEVICE]

options:
  -h, --help       show this help message and exit
  --device DEVICE  Device IP[:port]; if omitted, auto-discovery and interactive selection are used

install

Install an APK on the selected Android Wi-Fi device

Stable ID: helper-cli.android-device.command.install

usage: android_device.py install [-h] --apk APK [--device DEVICE]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.android-device.command.install.argument.apk --apk option yes 1 - - APK path
helper-cli.android-device.command.install.argument.device --device option no 1 - - Device IP[:port]; if omitted, cached endpoint or discovery is used

Exact --help output

usage: android_device.py install [-h] --apk APK [--device DEVICE]

options:
  -h, --help       show this help message and exit
  --apk APK        APK path
  --device DEVICE  Device IP[:port]; if omitted, cached endpoint or discovery is used

launch

Launch an Android activity on the selected device

Stable ID: helper-cli.android-device.command.launch

usage: android_device.py launch [-h] --activity ACTIVITY [--device DEVICE]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.android-device.command.launch.argument.activity --activity option yes 1 - - Fully qualified activity component, e.g. com.example.game/.FOnlineActivity
helper-cli.android-device.command.launch.argument.device --device option no 1 - - Device IP[:port]; if omitted, cached endpoint or discovery is used

Exact --help output

usage: android_device.py launch [-h] --activity ACTIVITY [--device DEVICE]

options:
  -h, --help           show this help message and exit
  --activity ACTIVITY  Fully qualified activity component, e.g. com.example.game/.FOnlineActivity
  --device DEVICE      Device IP[:port]; if omitted, cached endpoint or discovery is used

launch-game

Launch the Android game activity and pass RemoteSceneLaunch server host override

Stable ID: helper-cli.android-device.command.launch-game

usage: android_device.py launch-game [-h] --activity ACTIVITY [--device DEVICE] [--server-host SERVER_HOST]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.android-device.command.launch-game.argument.activity --activity option yes 1 - - Fully qualified activity component, e.g. com.example.game/.FOnlineActivity
helper-cli.android-device.command.launch-game.argument.device --device option no 1 - - Device IP[:port]; if omitted, cached endpoint or discovery is used
helper-cli.android-device.command.launch-game.argument.server_host --server-host option no 1 - - Host IP or name for ClientNetwork.ServerHost; if omitted, auto-detected from the route to the selected device

Exact --help output

usage: android_device.py launch-game [-h] --activity ACTIVITY [--device DEVICE] [--server-host SERVER_HOST]

options:
  -h, --help            show this help message and exit
  --activity ACTIVITY   Fully qualified activity component, e.g. com.example.game/.FOnlineActivity
  --device DEVICE       Device IP[:port]; if omitted, cached endpoint or discovery is used
  --server-host SERVER_HOST
                        Host IP or name for ClientNetwork.ServerHost; if omitted, auto-detected from the route to the selected device

stop

Force-stop an Android package on the selected device

Stable ID: helper-cli.android-device.command.stop

usage: android_device.py stop [-h] --package PACKAGE_NAME [--device DEVICE]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.android-device.command.stop.argument.package_name --package option yes 1 - - Android package name
helper-cli.android-device.command.stop.argument.device --device option no 1 - - Device IP[:port]; if omitted, cached endpoint or discovery is used

Exact --help output

usage: android_device.py stop [-h] --package PACKAGE_NAME [--device DEVICE]

options:
  -h, --help            show this help message and exit
  --package PACKAGE_NAME
                        Android package name
  --device DEVICE       Device IP[:port]; if omitted, cached endpoint or discovery is used

logcat

Stream logcat from the selected device

Stable ID: helper-cli.android-device.command.logcat

usage: android_device.py logcat [-h] [--device DEVICE]
Stable ID Argument Kind Required Values Choices Default Description
helper-cli.android-device.command.logcat.argument.device --device option no 1 - - Device IP[:port]; if omitted, cached endpoint or discovery is used

Exact --help output

usage: android_device.py logcat [-h] [--device DEVICE]

options:
  -h, --help       show this help message and exit
  --device DEVICE  Device IP[:port]; if omitted, cached endpoint or discovery is used

Local web server

Serve a packaged web client from a no-cache local HTTP server.

  • Stable ID: helper-cli.simple-web-server
  • Program: simple-web-server.py
  • Owner: platform
  • Audience: game-developer, release-operator
  • Invocation owner: BuildTools/package.py WebServer payload
  • Parser source: BuildTools/web/simple-web-server.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.simple-web-server.argument.port --port option no 1 - 7000 web server port
helper-cli.simple-web-server.argument.fork --fork option no 0 - false fork process

Exact top-level --help output

usage: simple-web-server.py [-h] [--port PORT] [--fork]

Simple HTTP server

options:
  -h, --help   show this help message and exit
  --port PORT  web server port
  --fork       fork process

Artifact checksums

Write or verify SHA-256 sidecars and an optional manifest for finished release packages.

  • Stable ID: helper-cli.artifact-checksums
  • Program: artifact_checksums.py
  • Owner: build-release
  • Audience: release-operator, ci-maintainer, embedding-project-build-system
  • Invocation owner: embedding-project release jobs after the last package writer stops
  • Parser source: BuildTools/artifact_checksums.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.artifact-checksums.argument.directory directory positional yes 1 - - finished package directory, before publication
helper-cli.artifact-checksums.argument.artifact --artifact option no 1 - - select this file, relative to the directory, instead of scanning the directory root; repeatable
helper-cli.artifact-checksums.argument.suffix --suffix option no 1 - - case-insensitive file-name suffix to select; repeatable; replaces the default .zip, .tar, .tar.gz, .msi and .apk
helper-cli.artifact-checksums.argument.manifest --manifest option no 1 - - also write (or verify) one manifest of every selected file at the directory root, for example SHA256SUMS
helper-cli.artifact-checksums.argument.no_sidecars --no-sidecars option no 0 - false write or verify only the manifest; requires –manifest
helper-cli.artifact-checksums.argument.verify --verify option no 0 - false compare existing sidecars and manifest with the current file bytes instead of writing them

Exact top-level --help output

usage: artifact_checksums.py [-h] [--artifact RELATIVE_PATH] [--suffix SUFFIX] [--manifest FILENAME] [--no-sidecars] [--verify] directory

Write or verify SHA-256 sidecars and an optional manifest for finished release packages.

positional arguments:
  directory             finished package directory, before publication

options:
  -h, --help            show this help message and exit
  --artifact RELATIVE_PATH
                        select this file, relative to the directory, instead of scanning the directory root; repeatable
  --suffix SUFFIX       case-insensitive file-name suffix to select; repeatable; replaces the default .zip, .tar, .tar.gz, .msi and .apk
  --manifest FILENAME   also write (or verify) one manifest of every selected file at the directory root, for example SHA256SUMS
  --no-sidecars         write or verify only the manifest; requires --manifest
  --verify              compare existing sidecars and manifest with the current file bytes instead of writing them

Project version generator

Generate or check a machine-written monotonic project VERSION file with a built-in or project-owned version scheme.

  • Stable ID: helper-cli.project-version
  • Program: project_version.py
  • Owner: build-release
  • Audience: game-developer, ci-maintainer, embedding-project-build-system
  • Invocation owner: embedding-project version tasks, hooks and CI checks
  • Parser source: BuildTools/project_version.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.project-version.argument.root --root option no 1 - . directory inside the project work tree (default: current directory)
helper-cli.project-version.argument.config --config option no 1 - - JSON file with any of file, base_ref, scheme, limits, since_commit; options given on the command line win
helper-cli.project-version.argument.file --file option no 1 - - version file relative to –root (default: VERSION)
helper-cli.project-version.argument.base_ref --base-ref option no 1 - - Git ref whose version the next value must exceed, for example origin/main; required to generate
helper-cli.project-version.argument.scheme --scheme option no 1 - - built-in patch-per-commit (default) or counter, or <file.py or module>:<factory> of a project scheme
helper-cli.project-version.argument.limit --limit option no 1 - - exclusive upper bound of one scheme component, for example patch=10000; a full component carries into the previous one; repeatable
helper-cli.project-version.argument.since_commit --since-commit option no 1 - - ignore values committed before this commit, for example where the encoding changed; it must be an ancestor of every compared ref
helper-cli.project-version.argument.check --check option no 0 - false validate the working-tree file without writing it

Exact top-level --help output

usage: project_version.py [-h] [--root ROOT] [--config CONFIG] [--file FILE] [--base-ref BASE_REF] [--scheme SCHEME] [--limit COMPONENT=N] [--since-commit SINCE_COMMIT] [--check]

Generate or check a machine-written monotonic project VERSION file against Git history.

options:
  -h, --help            show this help message and exit
  --root ROOT           directory inside the project work tree (default: current directory)
  --config CONFIG       JSON file with any of file, base_ref, scheme, limits, since_commit; options given on the command line win
  --file FILE           version file relative to --root (default: VERSION)
  --base-ref BASE_REF   Git ref whose version the next value must exceed, for example origin/main; required to generate
  --scheme SCHEME       built-in patch-per-commit (default) or counter, or <file.py or module>:<factory> of a project scheme
  --limit COMPONENT=N   exclusive upper bound of one scheme component, for example patch=10000; a full component carries into the previous one; repeatable
  --since-commit SINCE_COMMIT
                        ignore values committed before this commit, for example where the encoding changed; it must be an ancestor of every compared ref
  --check               validate the working-tree file without writing it

Release preflight

Validate a project release version, tag and assets, choose publish or dry-run, split oversized assets and write a checksum manifest.

  • Stable ID: helper-cli.release-preflight
  • Program: release_preflight.py
  • Owner: build-release
  • Audience: release-operator, ci-maintainer
  • Invocation owner: embedding-project manual release jobs before tagging and publication
  • Parser source: BuildTools/release_preflight.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.release-preflight.argument.root --root option no 1 - . directory inside the project work tree (default: current directory)
helper-cli.release-preflight.argument.config --config option no 1 - - project_version.py JSON config; its file, scheme and limits apply here
helper-cli.release-preflight.argument.file --file option no 1 - - version file relative to –root (default: VERSION)
helper-cli.release-preflight.argument.scheme --scheme option no 1 - - version scheme, as for project_version.py (default: patch-per-commit)
helper-cli.release-preflight.argument.limit --limit option no 1 - - scheme component limit, as for project_version.py; repeatable
helper-cli.release-preflight.argument.tag_prefix --tag-prefix option no 1 - v release tag prefix before the version (default: v)
helper-cli.release-preflight.argument.remote --remote option no 1 - - also look for the tag on this Git remote, for example origin
helper-cli.release-preflight.argument.ref --ref option no 1 - - ref being released, for example refs/heads/main (default: the branch checked out at HEAD)
helper-cli.release-preflight.argument.release_ref --release-ref option no 1 - - only this ref publishes; every other ref is a dry run, and without it every run is a dry run
helper-cli.release-preflight.argument.dry_run --dry-run option no 0 - false force dry-run mode even on the release ref
helper-cli.release-preflight.argument.engine --engine option no 1 - - also require the committed gitlink of this Engine submodule to be reachable from a remote-tracking branch of the submodule
helper-cli.release-preflight.argument.assets_dir --assets-dir option no 1 - - directory whose root-level files are the release assets
helper-cli.release-preflight.argument.asset_pattern --asset-pattern option no 1 - - file-name pattern of the assets in –assets-dir; repeatable (default: every file)
helper-cli.release-preflight.argument.max_asset_bytes --max-asset-bytes option no 1 - - split each larger asset into <name>.partNN pieces of at most SIZE bytes; K, M and G suffixes are powers of 1024
helper-cli.release-preflight.argument.manifest --manifest option no 1 - - write a SHA-256 manifest of the final assets into –assets-dir
helper-cli.release-preflight.argument.outputs_file --outputs-file option no 1 - - append version, tag, previous_tag, publish and assets as key=value lines, for example to $GITHUB_OUTPUT
helper-cli.release-preflight.argument.summary_file --summary-file option no 1 - - append a Markdown summary, for example to $GITHUB_STEP_SUMMARY

Exact top-level --help output

usage: release_preflight.py [-h] [--root ROOT] [--config CONFIG] [--file FILE] [--scheme SCHEME] [--limit COMPONENT=N] [--tag-prefix TAG_PREFIX] [--remote REMOTE] [--ref REF] [--release-ref RELEASE_REF] [--dry-run] [--engine PATH]
                            [--assets-dir ASSETS_DIR] [--asset-pattern GLOB] [--max-asset-bytes SIZE] [--manifest FILENAME] [--outputs-file OUTPUTS_FILE] [--summary-file SUMMARY_FILE]

Validate the version, tag and assets of a project release and decide between publish and dry-run.

options:
  -h, --help            show this help message and exit
  --root ROOT           directory inside the project work tree (default: current directory)
  --config CONFIG       project_version.py JSON config; its file, scheme and limits apply here
  --file FILE           version file relative to --root (default: VERSION)
  --scheme SCHEME       version scheme, as for project_version.py (default: patch-per-commit)
  --limit COMPONENT=N   scheme component limit, as for project_version.py; repeatable
  --tag-prefix TAG_PREFIX
                        release tag prefix before the version (default: v)
  --remote REMOTE       also look for the tag on this Git remote, for example origin
  --ref REF             ref being released, for example refs/heads/main (default: the branch checked out at HEAD)
  --release-ref RELEASE_REF
                        only this ref publishes; every other ref is a dry run, and without it every run is a dry run
  --dry-run             force dry-run mode even on the release ref
  --engine PATH         also require the committed gitlink of this Engine submodule to be reachable from a remote-tracking branch of the submodule
  --assets-dir ASSETS_DIR
                        directory whose root-level files are the release assets
  --asset-pattern GLOB  file-name pattern of the assets in --assets-dir; repeatable (default: every file)
  --max-asset-bytes SIZE
                        split each larger asset into <name>.partNN pieces of at most SIZE bytes; K, M and G suffixes are powers of 1024
  --manifest FILENAME   write a SHA-256 manifest of the final assets into --assets-dir
  --outputs-file OUTPUTS_FILE
                        append version, tag, previous_tag, publish and assets as key=value lines, for example to $GITHUB_OUTPUT
  --summary-file SUMMARY_FILE
                        append a Markdown summary, for example to $GITHUB_STEP_SUMMARY

Engine upgrade report

Write a Markdown Engine update record with the Engine identities, the incoming range, changelog migrations and a project name search.

  • Stable ID: helper-cli.engine-upgrade-report
  • Program: engine_upgrade_report.py
  • Owner: documentation
  • Audience: game-developer, engine-contributor
  • Invocation owner: embedding-project Engine update work, run from the project root
  • Parser source: BuildTools/engine_upgrade_report.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.engine-upgrade-report.argument.project --project option no 1 - . embedding project work tree (default: current directory)
helper-cli.engine-upgrade-report.argument.engine --engine option no 1 - Engine Engine checkout relative to –project (default: Engine)
helper-cli.engine-upgrade-report.argument.old --old option no 1 - - baseline Engine revision (default: the parent gitlink at HEAD)
helper-cli.engine-upgrade-report.argument.new --new option no 1 - - target Engine revision, for example a commit or a v<version> tag (default: the Engine checkout HEAD)
helper-cli.engine-upgrade-report.argument.changelog --changelog option no 1 - Docs/en/reference/changelog.md changelog path inside the Engine repository, read at the target revision (default: Docs/en/reference/changelog.md)
helper-cli.engine-upgrade-report.argument.names --names option no 1 - - text file with one literal name per line to search in the project sources; blank lines are ignored
helper-cli.engine-upgrade-report.argument.search_path --search-path option no 1 - - project pathspec to search for the names; repeatable (default: the whole project except the Engine checkout)
helper-cli.engine-upgrade-report.argument.max_locations --max-locations option no 1 - 20 locations listed per name in the record; the match count is always complete (default: 20)
helper-cli.engine-upgrade-report.argument.output --output option no 1 - - write the record to this file instead of standard output
helper-cli.engine-upgrade-report.argument.force --force option no 0 - false replace an existing –output file

Exact top-level --help output

usage: engine_upgrade_report.py [-h] [--project PROJECT] [--engine ENGINE] [--old OLD] [--new NEW] [--changelog CHANGELOG] [--names NAMES] [--search-path PATHSPEC] [--max-locations MAX_LOCATIONS] [--output OUTPUT] [--force]

Write a Markdown Engine update record for an embedding project from read-only Git queries.

options:
  -h, --help            show this help message and exit
  --project PROJECT     embedding project work tree (default: current directory)
  --engine ENGINE       Engine checkout relative to --project (default: Engine)
  --old OLD             baseline Engine revision (default: the parent gitlink at HEAD)
  --new NEW             target Engine revision, for example a commit or a v<version> tag (default: the Engine checkout HEAD)
  --changelog CHANGELOG
                        changelog path inside the Engine repository, read at the target revision (default: Docs/en/reference/changelog.md)
  --names NAMES         text file with one literal name per line to search in the project sources; blank lines are ignored
  --search-path PATHSPEC
                        project pathspec to search for the names; repeatable (default: the whole project except the Engine checkout)
  --max-locations MAX_LOCATIONS
                        locations listed per name in the record; the match count is always complete (default: 20)
  --output OUTPUT       write the record to this file instead of standard output
  --force               replace an existing --output file

Script binding check

Reject raw pointers in script-facing native signatures and compare AngelScript handler nullability with event and remote-call declarations.

  • Stable ID: helper-cli.script-binding-check
  • Program: check_script_bindings.py
  • Owner: quality
  • Audience: game-developer, engine-contributor, ci-maintainer
  • Invocation owner: Engine CI and embedding-project quality gates
  • Parser source: BuildTools/check_script_bindings.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.script-binding-check.argument.root --root option no 1 - - repository root that scopes and reported paths are relative to (default: the Engine root that contains this script)
helper-cli.script-binding-check.argument.scope --scope option no 1 - - root-relative native source directory; repeatable (default: Source)
helper-cli.script-binding-check.argument.scripts --scripts option no 1 - - root-relative AngelScript directory whose handlers are compared; repeatable
helper-cli.script-binding-check.argument.exclude --exclude option no 1 - - fnmatch pattern for root-relative POSIX paths to skip; repeatable
helper-cli.script-binding-check.argument.baseline --baseline option no 1 - - accepted findings (rule, path, count, reason TSV); repeatable
helper-cli.script-binding-check.argument.write_baseline --write-baseline option no 1 - - write current finding counts with empty reasons instead of gating
helper-cli.script-binding-check.argument.list_rules --list-rules option no 0 - false print rule identifiers and exit

Exact top-level --help output

usage: check_script_bindings.py [-h] [--root ROOT] [--scope DIR] [--scripts DIR] [--exclude GLOB] [--baseline TSV] [--write-baseline TSV] [--list-rules]

Check script-facing native signatures for ptr/nptr spelling and compare AngelScript handlers with event and remote-call declarations

options:
  -h, --help            show this help message and exit
  --root ROOT           repository root that scopes and reported paths are relative to (default: the Engine root that contains this script)
  --scope DIR           root-relative native source directory; repeatable (default: Source)
  --scripts DIR         root-relative AngelScript directory whose handlers are compared; repeatable
  --exclude GLOB        fnmatch pattern for root-relative POSIX paths to skip; repeatable
  --baseline TSV        accepted findings (rule, path, count, reason TSV); repeatable
  --write-baseline TSV  write current finding counts with empty reasons instead of gating
  --list-rules          print rule identifiers and exit

AngelScript hygiene check

Check authored AngelScript modules for namespace, include, side-macro, sort-directive and file-ending conventions with a count-ratchet baseline.

  • Stable ID: helper-cli.angelscript-hygiene-check
  • Program: check_angelscript_hygiene.py
  • Owner: quality
  • Audience: game-developer, engine-contributor, ci-maintainer
  • Invocation owner: Engine CI and embedding-project quality gates
  • Parser source: BuildTools/check_angelscript_hygiene.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.angelscript-hygiene-check.argument.root --root option no 1 - - repository root that script directories and reported paths are relative to (default: the Engine root that contains this script)
helper-cli.angelscript-hygiene-check.argument.scripts --scripts option no 1 - - root-relative directory searched recursively for .fos files; repeatable (default: Examples)
helper-cli.angelscript-hygiene-check.argument.config --config option no 1 - - rule switches, rule options and excludes (schema_version 1)
helper-cli.angelscript-hygiene-check.argument.exclude --exclude option no 1 - - fnmatch pattern for root-relative POSIX paths to skip; repeatable
helper-cli.angelscript-hygiene-check.argument.baseline --baseline option no 1 - - accepted findings (rule, path, count, reason TSV); repeatable
helper-cli.angelscript-hygiene-check.argument.write_baseline --write-baseline option no 1 - - write current finding counts with empty reasons instead of gating
helper-cli.angelscript-hygiene-check.argument.list_rules --list-rules option no 0 - false print rule identifiers, defaults and exit

Exact top-level --help output

usage: check_angelscript_hygiene.py [-h] [--root ROOT] [--scripts DIR] [--config JSON] [--exclude GLOB] [--baseline TSV] [--write-baseline TSV] [--list-rules]

Check authored AngelScript modules for namespace, include, side-macro, sort-directive and file-ending conventions with an optional count-ratchet baseline

options:
  -h, --help            show this help message and exit
  --root ROOT           repository root that script directories and reported paths are relative to (default: the Engine root that contains this script)
  --scripts DIR         root-relative directory searched recursively for .fos files; repeatable (default: Examples)
  --config JSON         rule switches, rule options and excludes (schema_version 1)
  --exclude GLOB        fnmatch pattern for root-relative POSIX paths to skip; repeatable
  --baseline TSV        accepted findings (rule, path, count, reason TSV); repeatable
  --write-baseline TSV  write current finding counts with empty reasons instead of gating
  --list-rules          print rule identifiers, defaults and exit

MSI creation

Build an MSI installer from a package-generated WiX definition.

  • Stable ID: helper-cli.createmsi
  • Program: createmsi.py
  • Owner: build-release
  • Audience: release-operator, engine-contributor
  • Invocation owner: BuildTools/package.py Wix pack
  • Parser source: BuildTools/msicreator/createmsi.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.createmsi.argument.wix_dir --wix-dir option no 1 - - directory containing WiX tools; omit to find them on PATH
helper-cli.createmsi.argument.jsonfile definition.json positional yes 1 - - bare WiX package definition filename in the working directory

Exact top-level --help output

usage: createmsi.py [-h] [--wix-dir directory] definition.json

Build an MSI package from a WiX definition

positional arguments:
  definition.json      bare WiX package definition filename in the working directory

options:
  -h, --help           show this help message and exit
  --wix-dir directory  directory containing WiX tools; omit to find them on PATH

Movement synchronization trace analysis

Merge Network.MoveSyncTrace MOVESYNC log lines into per-scenario divergence, lag and correction reports.

  • Stable ID: helper-cli.move-sync-analysis
  • Program: move_sync_analysis.py
  • Owner: networking
  • Audience: game-developer, engine-contributor, ci-maintainer
  • Invocation owner: embedding-project movement playtests and direct developer diagnostics
  • Parser source: BuildTools/move_sync_analysis.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.move-sync-analysis.argument.logs logs positional yes + - - log files holding MOVESYNC lines (server and clients)
helper-cli.move-sync-analysis.argument.geometry --geometry option yes 1 hexagonal, square - world grid geometry of the project (FO_GEOMETRY)
helper-cli.move-sync-analysis.argument.clock --clock option no 1 t, st t t: shared monotonic clock (one machine); st: synchronized time (several machines)
helper-cli.move-sync-analysis.argument.actor --actor option no 1 - - analyse the whole trace as one scenario of this critter id instead of mark-delimited scenarios
helper-cli.move-sync-analysis.argument.settle_ms --settle-ms option no 1 - 0 extend each scenario window by this many milliseconds after its end mark
helper-cli.move-sync-analysis.argument.extra_side --extra-side option no 1 - - also read MOVESYNC lines of this project-written side into timelines (repeatable)
helper-cli.move-sync-analysis.argument.timeline --timeline option no 1 - - print the merged timeline of a scenario label (repeatable, or ‘all’)
helper-cli.move-sync-analysis.argument.json --json option no 1 - - write the full report as JSON
helper-cli.move-sync-analysis.argument.markdown --markdown option no 1 - - write the Markdown summary table
helper-cli.move-sync-analysis.argument.require_converged --require-converged option no 0 - false exit 1 when any scenario ends with the views disagreeing

Exact top-level --help output

usage: move_sync_analysis.py [-h] --geometry {hexagonal,square} [--clock {t,st}] [--actor ACTOR] [--settle-ms SETTLE_MS] [--extra-side EXTRA_SIDE] [--timeline TIMELINE] [--json JSON] [--markdown MARKDOWN] [--require-converged]
                             logs [logs ...]

Analyse MOVESYNC movement synchronization traces written with Network.MoveSyncTrace.

positional arguments:
  logs                  log files holding MOVESYNC lines (server and clients)

options:
  -h, --help            show this help message and exit
  --geometry {hexagonal,square}
                        world grid geometry of the project (FO_GEOMETRY)
  --clock {t,st}        t: shared monotonic clock (one machine); st: synchronized time (several machines)
  --actor ACTOR         analyse the whole trace as one scenario of this critter id instead of mark-delimited scenarios
  --settle-ms SETTLE_MS
                        extend each scenario window by this many milliseconds after its end mark
  --extra-side EXTRA_SIDE
                        also read MOVESYNC lines of this project-written side into timelines (repeatable)
  --timeline TIMELINE   print the merged timeline of a scenario label (repeatable, or 'all')
  --json JSON           write the full report as JSON
  --markdown MARKDOWN   write the Markdown summary table
  --require-converged   exit 1 when any scenario ends with the views disagreeing

Text pack lint

Check raw .fotxt packs for parse errors, duplicate variants, wrong-script text and language key parity before baking.

  • Stable ID: helper-cli.check-text-packs
  • Program: check_text_packs.py
  • Owner: localization
  • Audience: game-developer, embedding-project-build-system, ci-maintainer
  • Invocation owner: embedding-project localization tasks and CI content gates
  • Parser source: BuildTools/check_text_packs.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.check-text-packs.argument.roots roots positional yes + - - text directories to scan recursively; each root is checked as one resource-pack input
helper-cli.check-text-packs.argument.languages --languages option no 1 - - ordered Baking.BakeLanguages declarations, such as ‘engl russ’
helper-cli.check-text-packs.argument.config --config option no 1 - - main .fomain config whose Baking.BakeLanguages is read
helper-cli.check-text-packs.argument.sub_config --sub-config option no 1 - - sub-config applied over the main config section (with –config)
helper-cli.check-text-packs.argument.script --script option no 1 - - letter scripts a language allows, such as engl=latin (repeatable)
helper-cli.check-text-packs.argument.ignore_pattern --ignore-pattern option no 1 - - text removed before the script check, such as project placeholders (repeatable)
helper-cli.check-text-packs.argument.sparse --sparse option no 1 - - language that intentionally inherits missing packs and keys from its fallback (repeatable)
helper-cli.check-text-packs.argument.strict_variant_counts --strict-variant-counts option no 0 - false also report keys whose variant count differs from the fallback language
helper-cli.check-text-packs.argument.baseline --baseline option no 1 - - JSON exemption file with a reason per known finding (repeatable)
helper-cli.check-text-packs.argument.base_dir --base-dir option no 1 - - directory that finding and exemption paths are relative to (default: current directory)
helper-cli.check-text-packs.argument.json --json option no 1 - - also write the remaining findings as JSON

Exact top-level --help output

usage: check_text_packs.py [-h] (--languages LANGUAGES | --config CONFIG) [--sub-config SUB_CONFIG] [--script LANGUAGE=SCRIPTS] [--ignore-pattern REGEX] [--sparse LANGUAGE] [--strict-variant-counts] [--baseline BASELINE]
                           [--base-dir BASE_DIR] [--json JSON]
                           roots [roots ...]

Lint raw .fotxt text packs against the Engine grammar and language normalization.

positional arguments:
  roots                 text directories to scan recursively; each root is checked as one resource-pack input

options:
  -h, --help            show this help message and exit
  --languages LANGUAGES
                        ordered Baking.BakeLanguages declarations, such as 'engl russ'
  --config CONFIG       main .fomain config whose Baking.BakeLanguages is read
  --sub-config SUB_CONFIG
                        sub-config applied over the main config section (with --config)
  --script LANGUAGE=SCRIPTS
                        letter scripts a language allows, such as engl=latin (repeatable)
  --ignore-pattern REGEX
                        text removed before the script check, such as project placeholders (repeatable)
  --sparse LANGUAGE     language that intentionally inherits missing packs and keys from its fallback (repeatable)
  --strict-variant-counts
                        also report keys whose variant count differs from the fallback language
  --baseline BASELINE   JSON exemption file with a reason per known finding (repeatable)
  --base-dir BASE_DIR   directory that finding and exemption paths are relative to (default: current directory)
  --json JSON           also write the remaining findings as JSON

Mechanics recipe gate

Check mechanics recipe pages, their Russian mirrors and the section index against the recipe manifest, the example files they quote and the generated API model.

  • Stable ID: helper-cli.mechanics-recipes
  • Program: mechanics_recipes.py
  • Owner: documentation
  • Audience: engine-contributor, game-developer, ci-maintainer
  • Invocation owner: Engine documentation tests, recipe authors and CI documentation checks
  • Parser source: BuildTools/mechanics_recipes.py

Top-level arguments

Stable ID Argument Kind Required Values Choices Default Description
helper-cli.mechanics-recipes.argument.check --check option no 0 - false validate the manifest, pages, Russian mirrors, section index and example files
helper-cli.mechanics-recipes.argument.list --list option no 0 - false print the recipes and cross-cutting pages from the manifest without validating them
helper-cli.mechanics-recipes.argument.root --root option no 1 - - Engine checkout to check (default: the checkout that contains this script)
helper-cli.mechanics-recipes.argument.manifest --manifest option no 1 - - recipe manifest (default: Examples/MechanicsSandbox/recipes.json under –root)
helper-cli.mechanics-recipes.argument.api_model --api-model option no 1 - - generated API model (default: Docs/generated/api.json under –root)

Exact top-level --help output

usage: mechanics_recipes.py [-h] (--check | --list) [--root ROOT] [--manifest MANIFEST] [--api-model API_MODEL]

Check mechanics recipe pages against their recipe manifest, example files and the generated API model

options:
  -h, --help            show this help message and exit
  --check               validate the manifest, pages, Russian mirrors, section index and example files
  --list                print the recipes and cross-cutting pages from the manifest without validating them
  --root ROOT           Engine checkout to check (default: the checkout that contains this script)
  --manifest MANIFEST   recipe manifest (default: Examples/MechanicsSandbox/recipes.json under --root)
  --api-model API_MODEL
                        generated API model (default: Docs/generated/api.json under --root)
Start typing to search.