Skip to main content
Upload, list, and remove custom binaries on Lagerboxes for use in Python scripts.

Syntax

Commands


Command Reference

add

Upload a binary file to the Lager Box.
Arguments:
  • BINARY_PATH - Local path to the binary file
Options:
  • --box BOX - Lagerbox name or IP address
  • --name NAME - Name for the binary on Lager Box (defaults to filename)
  • --yes - Skip confirmation prompt
Examples:

list

List all custom binaries on a Lager Box.
Output:

remove

Remove a binary from the Lager Box.
Arguments:
  • BINARY_NAME - Name of the binary to remove
Options:
  • --box BOX - Lagerbox name or IP address
  • --yes - Skip confirmation prompt
Examples:

Storage Locations

Binaries are stored in:

Using Binaries in Python Scripts

Once uploaded, binaries can be called from Python scripts running on the Lager Box:

Adding to PATH (Optional)

To call binaries without the full path, modify the Lager Box Dockerfile:
Then rebuild the container:
Now you can call binaries directly:

Examples


Use Cases

Device Communication Tools

Upload vendor-specific tools for device interaction:

Firmware Tools

Upload custom firmware manipulation tools:

Test Utilities

Upload test-specific utilities:

Notes

  • Binaries must be Linux x86_64 compatible
  • Files are automatically made executable
  • Container restart is not required (volume mount)
  • File sizes are displayed in human-readable format
  • Use --yes to skip confirmation in scripts