zeroforge

Discover

Build

Community

Account

Create Profile

> zforge CLI Reference

Complete command reference for the zforge CLI. Build, validate, test, and publish Agent Zero skills to the ZeroForge marketplace.

Install: pip install zforge  ·  Full setup guide →  ·  Auto-upgrades on every launch.

Onboarding

zforge hello ONBOARDING

New to ZeroForge? Start here. Shows what to do next with a guided introduction to the CLI and marketplace.

$ zforge hello

Skill Creation

zforge new CREATE

Scaffold a new Agent Zero skill with the correct folder structure, SKILL.md, skill.json, SkillTest.md, and a starter script.

$ zforge new my-skill-name
ArgumentRequiredDescription
nameYesSkill folder name (use hyphens, e.g. my-skill)
zforge dev CREATE

Run the APOL AI experiment pipeline to auto-generate and iteratively refine your SKILL.md using AI. Produces a high-quality skill description ready for certification.

$ zforge dev ./my-skill

Validation Pipeline

zforge validate PIPELINE

Validate skill metadata, folder structure, and SKILL.md completeness against ZeroForge quality standards. Returns a pass/fail with detailed output.

$ zforge validate ./my-skill
zforge test PIPELINE

Run the full functional test suite: syntax checks, runtime smoke tests on scripts/main.py, and custom tests defined in SkillTest.md. Skills must pass to be certified.

$ zforge test ./my-skill
zforge build PIPELINE

🚀 Full automated pipeline in one command: scaffold → generate GOAL.md → APOL AI refinement → validate → test → publish. The fastest path from idea to live marketplace listing.

$ zforge build my-skill-name
ArgumentRequiredDescription
nameYesName of the skill to scaffold and build
✔ Scaffold ✔ APOL Refined ✔ Validate ✔ Test ✔ APOL Certified (1.0)
→ Published: https://zero-forge.org/listing/?slug=my-skill-name

Authentication

zforge login AUTH

Authenticate with ZeroForge via GitHub OAuth using PKCE (OAuth 2.1) — the same secure flow used by GitHub CLI and VS Code. Your access_token is never exposed in the browser URL or history. Your API key is fetched automatically and saved to ~/.zforge/config.json (permissions: 0o600 — owner-only). One-time setup — all future zforge publish commands use your stored credentials automatically. Use --manual to paste an API key instead.

$ zforge login
Opening browser for GitHub authentication...
Waiting for callback on http://localhost:7391...
[browser opens → click Authorize on GitHub]
✔ Authenticated as @your-handle
✔ API key saved to ~/.zforge/config.json
FlagDescription
--manualPaste API key manually from zero-forge.org/profile/edit/ instead of browser OAuth
zforge login --token <key> AUTH

Authenticate directly without a browser — ideal for headless servers, CI pipelines, and scripts. Saves your API key to ~/.zforge/config.json instantly without any prompts.

$ zforge login --token <your-api-key>

Get your API key at zero-forge.org/profile/edit/

ZFORGE_API_KEY=<key> zforge publish ENV

One-off publish without saving credentials to disk. The env var takes priority over any stored config — useful for automated pipelines and ephemeral environments.

$ ZFORGE_API_KEY=<your-api-key> zforge publish
zforge whoami AUTH

Display the currently authenticated GitHub handle. Reads from ~/.zforge/config.json or the ZFORGE_API_KEY environment variable. Use before publishing to confirm your session is active.

$ zforge whoami
Logged in as @your-handle

Publishing

zforge publish PUBLISH

Validate, APOL-certify, package, and upload a skill to the ZeroForge marketplace. Skills scoring ≥0.80 are auto-certified. Requires a ZeroForge account (GitHub OAuth).

$ zforge publish ./my-skill
✔ Validate ✔ Test ✔ APOL Certified (0.92)
→ Published: https://zero-forge.org/listing/?slug=my-skill

Discovery & Installation

zforge install DISCOVERY

Download and install a skill from the ZeroForge marketplace into your Agent Zero skills folder by skill name or slug.

$ zforge install install-zforge
zforge run DISCOVERY

Install a skill AND immediately run it in one command. No Agent Zero setup required. Installs dependencies, executes the skill, and optionally cleans up after.

$ zforge run install-zforge
OptionRequiredDescription
--argsNoArguments to pass to the skill script
--output-dirNoWhere to install (temp dir by default)
--keepNoKeep installed files after running
zforge list DISCOVERY

Browse all approved skills on the ZeroForge marketplace directly in your terminal.

$ zforge list

Utility

zforge info UTILITY

Show current CLI version, available commands, and system info. Also checks for updates (zforge auto-upgrades on every launch).

$ zforge info