adk_cli (erlang_adk v0.7.0)

View Source

Integrated command-line tooling for local Erlang ADK development.

The CLI deliberately consumes JSON configuration with a small, checked key set. It never accepts model API keys in files; providers read their normal environment-backed credentials. inspect talks to the authenticated local developer API, while run and evaluate execute in the current VM.

Summary

Functions

Execute a command with an injectable interactive IO adapter. The second form makes the console deterministic in tests and embeddable in an Erlang shell without replacing the caller's group leader.

Functions

command(Args)

-spec command([string()]) -> {ok, term()} | {error, term()}.

command(Args, Io)

-spec command([string()], map()) -> {ok, term()} | {error, term()}.

Execute a command with an injectable interactive IO adapter. The second form makes the console deterministic in tests and embeddable in an Erlang shell without replacing the caller's group leader.

main(Args)

-spec main([string()]) -> no_return() | ok.

usage()

-spec usage() -> binary().