beamr-cli-0.1.0 is not a library.
beamr-cli
Command-line runner for beamr — load and execute .beam bytecode files compiled from Gleam (or Erlang) source.
Installation
Or build from source:
The binary is named beamr.
Usage
# Run a module's main/0 function
# Run a specific function with arguments
# => 479001600
# Alternative --entry flag syntax
# => 832040
# Load dependency modules from a directory before running
# Multiple dependency directories
# Check what imports a module needs before running
Entry point format
Entry points follow the Erlang convention: module:function/arity.
beamr hello.beam hello:greet/1 -- world
Arguments after -- are passed to the function. Integer literals are parsed as BEAM integers; everything else becomes a binary (string).
Import checking
beamr imports lists any unresolved imports a module needs. If the output is empty, beamr can run the module natively.
Use --dir to load the modules that provide those imports.
Typical Gleam workflow
# Write Gleam code
# Compile with Gleam
# Run with beamr
# => 42
License
Apache-2.0