Skip to main content

Full Method CLI

Node.js 22+ is required. The SDK download contains MIT source and its pinned public runtime dependency. The package is distributed through the Method download service; do not assume it is on the npm registry. init creates an incomplete draft. Add at least one step and a valid result before validation. Current checks use structured exact, script, or agent objects:
The check example assumes a step named copy, a local input named message, and an output named copied. Use method schema check for the accepted forms. Plain-text checks belong to older formats; current agent checks put criteria in prompt. Current runs exit 0 on completion, 1 on failure, and 2 when human input is needed. Read the returned status and saved evidence.

Command ownership

The public SDK owns method. Runtime 0.5.0 no longer installs method3. SDK 0.7.0 removes the workflow, sdk, method-run, and workflow-bridge aliases. Python keeps withmethod; method-python and workflow-corp are removed. method-bridge is an internal Python transport. Runtime contributors can use node src/cli.js inside method-spec to test its validator and executor. This is a development harness, not a second installed product CLI.