Handoff · CLI
You composed it in FormStudio. One command writes the Zod schema, the React form, and the spec into your app — then tells you what to install. No zip. No browser.
formstudio-cli
$npx formstudio-cli add contact-sales
One add. Three files you can commit, review, and ship.
1
schema.ts, form.tsx and spec.json land in components/forms/<form-id>. Change the folder with --dir.
2
The CLI writes the same source the canvas export panel downloads. No second pipeline.
3
Peer packages and shadcn components are listed. The CLI does not install them for you.
your-app
components
forms
contact-salesNew
schema.tsNew
form.tsxNew
spec.jsonNew
After npx formstudio-cli add contact-sales
From your app root to files in the repo.
01
The eight gallery ids resolve on your machine. No registry call.
$npx formstudio-cli add contact-sales
02
Any other id is GET /r/:id. Pin a version with @. Private forms need --key.
$npx formstudio-cli add intake@3
03
If you already exported spec.json, rewrite the three files from it.
$npx formstudio-cli add --spec ./spec.json
04
Copy the peer packages from the output. Then add the listed shadcn components.
$npm install react-hook-form @hookform/resolvers zod lucide-react
Options
Start from a gallery id, or export a spec from the builder and regenerate.