Forge.Console
Forge.Console — forge bastion.console
Starts an interactive March REPL with the application fully loaded. Analogous to iex -S mix (Elixir) or rails console (Rails).
Usage: forge bastion.console # start REPL, no HTTP server forge bastion.console --server # start REPL + HTTP server together
The REPL session has access to all compiled app modules, running Vault tables, and (with --server) live Depot connection pools.
Auto-imports defined in forge.toml [console] section:
[console]
imports = [
"MyApp.Accounts",
"MyApp.Repo",
"Bastion.Vault",
]Example session:
iex(my_app)> MyApp.Accounts.list_users()
[{id: 1, email: "[email protected]"}, ...]
iex(my_app)> Vault.all(:response_cache) |> List.length()
42
iex(my_app)> :quit
Goodbye.Types
Functions
fnmainmain(_cap_console : Cap(IO.Console), _cap_process : Cap(IO.Process), _cap_fileread : Cap(IO.FileRead))#