LinuxCommandLibrary

gleam

type-safe functional language build tool

TLDR

Create new project

$ gleam new [project_name]
copy
Build project
$ gleam build
copy
Run project
$ gleam run
copy
Run tests
$ gleam test
copy
Add dependency
$ gleam add [package_name]
copy

SYNOPSIS

gleam command [options]

DESCRIPTION

gleam is the build tool and compiler for the Gleam programming language, a type-safe functional language that compiles to Erlang and JavaScript.
The tool manages projects, dependencies, compilation, and testing. It integrates with the Hex package manager for the Erlang/Elixir ecosystem.

PARAMETERS

new NAME

Create new project.
build
Compile the project.
run
Build and run.
test
Run tests.
add PACKAGE
Add dependency.
format
Format source code.
docs
Generate documentation.
--help
Display help information.

CONFIGURATION

gleam.toml

Project configuration file defining name, version, target, and dependencies.

CAVEATS

Requires Erlang/OTP for BEAM target. JavaScript target needs Node.js. Young language ecosystem.

HISTORY

Gleam and its tooling were created by Louis Pilfold to bring type safety to the BEAM virtual machine ecosystem.

SEE ALSO

erlang(1), elixir(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community