Reference / repl

repl

Start an interactive Read-Eval-Print Loop (REPL) for the Ocuroot SDK in the Starlark language.
This allows you to interactively test, explore, and develop with the SDK.

The REPL automatically loads the repo.ocu.star file to provide access to the environment
list and state store. If a .ocu.star file is provided, it will be executed before starting 
the REPL, and its globals will be available in the REPL session.

Examples:
  ocuroot repl
  ocuroot repl package.ocu.star
  ocuroot repl release.ocu.star
  ocuroot repl -c "print('hello')"
  ocuroot repl release.ocu.star -c "host.shell('ls')"
Usage:
  ocuroot repl [file] [flags]

Flags:
  -c, --command string   Execute a single command and exit (non-interactive mode)
      --package string   Path to the working package in the current repository. Can also be specified via a full ref in the first parameter. (default ".")
      --release string   ID or tag of the release. Can also be specified via a full ref in the first parameter.