Getting started
Once UI CLI
Create a Stack app from the surfaces you pick, without cloning the repo.@once-ui-system/cli creates a Stack app from the surfaces you pick and adds
Once UI blocks to an existing project. It needs Node 20 or newer, and you
don't need a copy of this repository.
Last updated October 18, 2026- --surfaces: surface ids, separated by commas. If you leave it out, the CLI lists the surfaces your plan includes and asks which ones you want.
- --slices: extra slices to include beyond the ones your surfaces require. Use it for billing, which no surface requires.
- --name: the package name. Defaults to the directory name.
- --url: the site's canonical URL.
- list: shows the surfaces and slices in the current Stack release, marks the ones you own, and shows which slices each one needs.
- login: saves an access token from once-ui.com/account/tokens. You can pass it with --token oui_…, pipe it in, or paste it when prompted. The token is checked before it is saved. ONCE_UI_TOKEN overrides the saved token.
- logout: removes the saved token. It still exists on the server, so revoke it on the tokens page.
- add <block…>: writes the blocks you name and every block they import into your project, then installs any missing npm packages. Existing files are skipped unless you pass --overwrite. Pass --no-install to skip the install.
Edit this page on GitHub