EYG: Host of CLI improvements, new guides and new effects

Lobsters Hottest Tools

Summary

EYG CLI receives new commands (eval, check, script, shell), flags, pretty printing via the glam library, improved error output, easier installation, and new effects like DeleteFile, Env, Hash, Now, Random, Sleep. New guides are also published.

<p><a href="https://lobste.rs/s/qv4wl7/eyg_host_cli_improvements_new_guides_new">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 05/25/26, 07:05 AM

# EYG news: A host of CLI improvements, new guides and new effects Source: [https://eyg.run/news/editions/9](https://eyg.run/news/editions/9) Over the last few weeks I've focused on making the CLI ergonomic to use\. This includes new commands and new flags, better output and easier installation\. ## New CLI commands and flags The[CLI](https://github.com/CrowdHailer/eyg-lang/tree/main/packages/gleam_cli)has gained the commands`eval`,`check``script`and`shell`\. - With`eval`you can evaluate source code without running any effects and print the resulting value\. - Type check any expression using the`check`command\. - The`shell`command replaces`repl`and accepts an optional source file as shell config\. - Run an EYG script using the`script`command\. All of the new and existing commands get two new flags\. The`\-\-code`or`\-c`flag accepts inline code\. Use`\-\-stdin`or`\-`to pipe source from STDIN\. ## Better output The[glam library](https://github.com/giacomocavalieri/glam)has been a great discovery\. Glam enables you to define your own pretty printer for any type\. The printed value neatly wraps on to multiple lines with correct indentation depending on it's size\. Pretty printing and the eval command is a brilliant way to explore values\. For example to see all the functions in the string module from the standard library run ``` eyg eval -c '@standard.string' ``` Errors are also improved with the full stacktrace being printed and the file path of the error also presented\. ## Easier installation Building cross platform binaries is now done in CI\. Installing the correct binary for your machine is now a single line command\. ``` curl -fsSL https://raw.githubusercontent.com/CrowdHailer/eyg-lang/main/install.sh | bash ``` There are even more improvements in the CLI\. - The CLI now returns non\-zero exit codes on failure, ensuring your CI/CD pipelines and shell scripts can react correctly to errors\. - The shell now has commands`/help`,`/scope`\(list all variables in scope\) and`/type`\(type check an expression in the repl\) The best way to see all the improvements is to try that installer and have a play\. Any difficulties please do let me know\. ## New guides The[guides](https://eyg.run/guides)are now available on the website\. New guides written include: I'm particularly pleased with the effect access policy guides\. I'll be talking more about that soon\. ## New effects\. The CLI now supports the effects`DeleteFile`,`Env`,`Hash`,`Now`,`Random`and`Sleep`\. A much more complete set to write useful scripts with\. See the[full reference](https://eyg.run/guides/cli-effects-reference) The authenticated effects now work in the web environment\. You can check out a`perform`DNSimple\(operation\)`example on the \[homepage\]\(https://eyg\.run\)` ## Other news To end, a few extra improvements that don't fit above include: - A new builtin`binary\_compare`to sort binary values - Inline pinning of releases, see the[syntax guide](https://eyg.run/guides/eyg-syntax-guide)for details - EYG packages for encoding JSON, for working with DAG JSON \(the reason for the new builtin\), encoding/decoding base32 and base64 values and finally a[module](https://github.com/CrowdHailer/eyg-lang/blob/main/eyg_packages/eyg/ast.eyg)to parse and serialize the EYG intermediate representation\.

Similar Articles

An unusually practical update for EYG

Lobsters Hottest

EYG programming language receives practical updates including documented text syntax, new filesystem effects in the CLI, and improved parser errors to facilitate shell scripting.

Gleam v1.17.0

Hacker News Top

Gleam v1.17.0 introduces the `gleam export escript` command for creating single-file BEAM programs, highlight references in the language server, and constant `todo` expressions. The first Gleam Gathering conference videos are also released.

May I recommend eww for Emacs’s innovative UI?

Lobsters Hottest

The article recommends using Emacs' eww web browser, highlighting how its lack of JavaScript improves many websites and how Emacs offers unique UI innovations like per-image resizing and keyboard navigation.