Skip to content

Get binary-sizes

get binary-sizes - Get binary file sizes for a module

The get binary-sizes command calculates file sizes for binaries produced by a module build.

It scans the build output directory for the specified module and reports sizes for all binary files found. This is useful for release notes and tracking binary size trends.

Expected Output (--format shell): SIZE_LINUX_AMD64="12.3" SIZE_LINUX_AMD64_UPX="4.5" SIZE_DARWIN_ARM64="13.1" ...

Flags

Flag Description
--module Module to get binary sizes for (required)
--binary-prefix Binary name prefix (e.g., r2r for r2r-linux-amd64)
--format (default: shell) Output format (shell, json, yaml, markdown)

Examples

get binary-sizes --module r2r-cli --binary-prefix r2r
eval $(get binary-sizes --module r2r-cli --binary-prefix r2r --format shell)

See Also


Tutorials | How-to Guides | Explanation | Reference

You are here: Reference — information-oriented technical descriptions of the system.