mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 11:42:28 +00:00
42 lines
770 B
Plaintext
42 lines
770 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# gleam
|
|
|
|
> The compiler, build tool, package manager and code formatter for Gleam, "a friendly language for building type-safe systems that scale!".
|
|
> More information: <https://gleam.run/writing-gleam/command-line-reference/>.
|
|
|
|
- Create a new gleam project:
|
|
|
|
`gleam new {{project_name}}`
|
|
|
|
- Build and run a gleam project:
|
|
|
|
`gleam run`
|
|
|
|
- Build the project:
|
|
|
|
`gleam build`
|
|
|
|
- Run a project for a particular platform and runtime:
|
|
|
|
`gleam run --target {{platform}} --runtime {{runtime}}`
|
|
|
|
- Add a hex dependency to your project:
|
|
|
|
`gleam add {{dependency_name}}`
|
|
|
|
- Run project tests:
|
|
|
|
`gleam test`
|
|
|
|
- Format source code:
|
|
|
|
`gleam format`
|
|
|
|
- Type check the project:
|
|
|
|
`gleam check`
|