Skip to content

CLI Reference

The human command line tool.

Run an agent.

Terminal window
human run main.hmn
echo "Review this code" | human run main.hmn

Run tests defined in .hmn files.

Terminal window
human test main.hmn
human test main.hmn --verbose
human test *.hmn

Flags:

  • --verbose — show input, output, and expectations for each test
  • --coverage — report which constraints are tested
  • --strict — exit 1 on any failure

Resolve all imports and output the fully merged .hmn file.

Terminal window
human compile main.hmn
human compile main.hmn > resolved.hmn

Useful for debugging import resolution and seeing the final configuration.

Create a new project with an empty human.json.

Terminal window
human init

Generates:

{
"dependencies": {}
}

Fetch dependencies into human_modules/.

Terminal window
human install # fetch all from human.json
human install safety # fetch one dependency
human install github:user/repo # add + fetch new dependency

Refresh dependencies to latest.

Terminal window
human update # update all
human update safety # update one

Ignores human.lock, fetches latest for each ref, rewrites the lockfile.

Validate .hmn files without running them.

Terminal window
human check main.hmn
human check *.hmn

Reports syntax errors, duplicate blocks, circular imports, and constraint conflicts.

CodeMeaning
0Success
1Runtime error or test failure
2Syntax error
Terminal window
human --version
human --help