User Guide
The CLI tool that automates setups and installs components.
Installation
Initialize a config for CLI:
npm
pnpm
yarn
bun
npx @hanzo/docs-clipnpm dlx @hanzo/docs-cliyarn dlx @hanzo/docs-clibun x @hanzo/docs-cliYou can change the output paths of components in the config.
Components
Select and install components.
npm
pnpm
yarn
bun
npx @hanzo/docs-cli addpnpm dlx @hanzo/docs-cli addyarn dlx @hanzo/docs-cli addbun x @hanzo/docs-cli addYou can pass component names directly.
npm
pnpm
yarn
bun
npx @hanzo/docs-cli add banner filespnpm dlx @hanzo/docs-cli add banner filesyarn dlx @hanzo/docs-cli add banner filesbun x @hanzo/docs-cli add banner filesHow the magic works?
The CLI fetches the latest version of component from the GitHub repository of Hanzo Docs. When you install a component, it is guaranteed to be up-to-date.
In addition, it also transforms import paths. Make sure to use the latest version of CLI
This is highly inspired by Shadcn UI.
Customize
A simple way to customize Hanzo Docs layouts.
npm
pnpm
yarn
bun
npx @hanzo/docs-cli customizepnpm dlx @hanzo/docs-cli customizeyarn dlx @hanzo/docs-cli customizebun x @hanzo/docs-cli customizeTree
Generate files tree for Hanzo Docs UI Files component, using the tree command from your terminal.
npm
pnpm
yarn
bun
npx @hanzo/docs-cli tree ./my-dir ./output.tsxpnpm dlx @hanzo/docs-cli tree ./my-dir ./output.tsxyarn dlx @hanzo/docs-cli tree ./my-dir ./output.tsxbun x @hanzo/docs-cli tree ./my-dir ./output.tsxYou can output MDX files too:
npm
pnpm
yarn
bun
npx @hanzo/docs-cli tree ./my-dir ./output.mdxpnpm dlx @hanzo/docs-cli tree ./my-dir ./output.mdxyarn dlx @hanzo/docs-cli tree ./my-dir ./output.mdxbun x @hanzo/docs-cli tree ./my-dir ./output.mdxSee help for further details:
npm
pnpm
yarn
bun
npx @hanzo/docs-cli tree -hpnpm dlx @hanzo/docs-cli tree -hyarn dlx @hanzo/docs-cli tree -hbun x @hanzo/docs-cli tree -hExample Output
export default (
<Files>
<Folder name="app">
<File name="layout.tsx" />
<File name="page.tsx" />
<File name="global.css" />
</Folder>
<Folder name="components">
<File name="button.tsx" />
<File name="tabs.tsx" />
<File name="dialog.tsx" />
</Folder>
<File name="package.json" />
</Files>
);In this section
SDKsOfficial Hanzo SDKs for every language — Python, TypeScript, Go, Rust, C++, Swift, Kotlin. Two lines per…ZAP ProtocolZero-Copy App Proto — High-performance Cap'n Proto RPC for AI agent communication. 10-100x faster than MCP…Hanzo Skills ReferenceComprehensive reference documentation for all 49 Hanzo skills — deep-dive guides for AI agents and developers.UsageOne usage plane for every AI account you have — rate limits, credits, and spend across Codex, Claude, Hanzo…OrganizationsMulti-org setup, resource scoping, team management, and white-label login for Hanzo organizations.
Was this page useful?