Interactive REPL

Evaluate code interactively with elide repl

Start the REPL explicitly:

elide repl

Running elide with no arguments also starts it when attached to a terminal. Use /help inside the session to see the languages enabled in that binary and the current command list.

Commands

CommandPurpose
/helpShow commands and enabled languages.
/exitLeave the REPL.
/clearClear the screen.
/lang NAMESwitch language.
/js, /ts, /pySwitch language, or evaluate the following expression once.
/export NAMEPublish a binding to the polyglot scope.
/import NAMEImport a shared binding.
/history [N]Show recent entries.
/resetRemove durable history.

The set of language shortcuts can be larger than the three shown above; /help is authoritative for the installed build. The repl subcommand takes no subcommand-specific flags.