Install the CLI
Install the Context as Code CLI globally so you can log in, scaffold a pack, validate it, and publish versions to the marketplace.
npm install -g @zebralabs/context-cliThis path is designed for a new creator. Follow it if you want the shortest route from installing the CLI to seeing your first pack version in the marketplace.
Locally
You have an authoring workspace, a publishable pack source, and validation runs cleanly for that specific pack path.
In the marketplace
Your pack version appears in Creator Studio, and you can manage its visibility and release notes.
Operationally
You know which active account owns the pack and where to go next when you want to publish again.
Follow these steps in order. The goal is first success, not deep theory.
Install the Context as Code CLI globally so you can log in, scaffold a pack, validate it, and publish versions to the marketplace.
npm install -g @zebralabs/context-cliAuthenticate with the marketplace before you publish. Use the account you want the pack to belong to, then confirm the active account inside the marketplace.
ctx login --base-url https://context-as-code-marketplace.zebralabs.io --email you@example.com --password yourpasswordStart with the upstream workspace for raw capture and wiki shaping. Drop your notes and source material into raw/, then point your agent at .sys/schema.md to compile the wiki. Do this before creating the publishable pack source.
ctx pack init my-pack-workspaceCreate the real pack scaffold separately. The first argument is your pack's logical ID (used in the manifest and install flow). The --path argument is where the files land — keep it inside your workspace.
ctx pack create my-pack-id --path .\my-pack-workspace\pack-sourceReview the shaped wiki and promote verified, reusable material into the pack source under content/. Edit pack.yaml, tailor both INSTALLATION.md and USAGE-GUIDES.md, then run validation before you publish. This is the human checkpoint between agent output and distributable product.
ctx pack validate --path .\my-pack-workspace\pack-sourcePush a validated version to the marketplace. Once published, use Creator Studio to manage visibility, release notes, and pack lifecycle.
ctx pack publish --path .\my-pack-workspace\pack-sourceYou are unsure what belongs in the pack
Go to the methodology page first.
You want to understand the CLI and structure properly
Use the build and publish guide.
You hit validation or account issues
Use the troubleshooting sections in the full guide.