The openenv CLI provides a set of commands for building, validating, and pushing environments to Hugging Face Spaces or a custom Docker registry. For an end-to-end tutorial on building environments with OpenEnv, see the building an environment guide.
[[autodoc]] openenv.cli.commands.init.init
[[autodoc]] openenv.cli.commands.build.build
[[autodoc]] openenv.cli.commands.validate.validate
[[autodoc]] openenv.cli.commands.push.push
Local serving is not implemented in the CLI yet. This command exits non-zero and prints alternative ways to run an environment server.
[[autodoc]] openenv.cli.commands.serve.serve
[[autodoc]] openenv.cli.commands.fork.fork
Installs an openenv-cli skill into your AI assistant's skills directory so
it knows the openenv CLI is available and what each command does. Supports
Claude Code, Cursor, Codex, and OpenCode.
Install for a single assistant (project-local):
openenv skills add --claude # → .claude/skills/openenv-cli/
openenv skills add --cursor # → .cursor/skills/openenv-cli/
openenv skills add --codex # → .codex/skills/openenv-cli/
openenv skills add --opencode # → .opencode/skills/openenv-cli/Multiple flags can be combined — openenv skills add --claude --cursor installs
for both at once. The skill file is written to a central location
(.agents/skills/openenv-cli/) and each agent directory gets a symlink, so
there is only one copy to update.
Install globally (user-level, across all projects):
openenv skills add --claude --global # → ~/.claude/skills/openenv-cli/Overwrite an existing installation (e.g. after upgrading openenv):
openenv skills add --claude --forcePreview the skill content without installing:
openenv skills previewInstall to a custom path (for non-standard agent setups):
openenv skills add --dest /path/to/my-agent/skills/[[autodoc]] openenv.cli.commands.skills.skills_add
[[autodoc]] openenv.cli.commands.skills.skills_preview
[[autodoc]] openenv.cli.main.main
[[autodoc]] openenv.cli._cli_utils.validate_env_structure
[[autodoc]] openenv.cli._validation.validate_running_environment
[[autodoc]] openenv.cli._validation.validate_multi_mode_deployment
[[autodoc]] openenv.cli._validation.get_deployment_modes
[[autodoc]] openenv.cli._validation.format_validation_report
[[autodoc]] openenv.cli._validation.build_local_validation_json_report