is the "single command" sanity scaffold for real?
hi all, saw a claim that you can scaffold a fully pre-configured Sanity project with croct in a single command. sounds a bit too good honestly, most "one command" setups I tried still needed an hour of config afterwards.
what is the actual command, and what does the scaffold include? asking because I have a small sanity site I want to experiment with this week and dont want to lose an afternoon to setup
1 answer
It is real, the command is the universal quick start:
npx croct@latest initThe CLI walks you through connecting your account and wires up the project configuration for you. It also generates a slots.d.ts file with types for your slots, which is worth committing to the repo so builds do not depend on an API fetch.
For the "did it actually work" check: open the Integration page in the Croct dashboard after you run the site locally and hit a page. It shows a green "Received traffic in the past 24 hours" indicator once events start flowing.
In my case the command itself took a couple of minutes. The time you spend after that is deciding which component to map to a slot first, which is product thinking rather than config, so I would say the claim holds up.