Loading...
Loading...
The ossido binary drives everything: scaffolding, development, and production
builds. Install it from npm (@ossido-labs/ossido-cli) or the ossido_cli crate -
see Installation. This page covers
each command.
ossido devStarts the development environment:
In one process, ossido dev:
.ossido/.Type derives into .ts
definitions your pages import.Leave it running while you work; it re-runs the relevant steps as files change.
ossido buildProduces a production build:
By default it uses the output mode from ossido.config.ts. You can override
that mode per build, and control JavaScript emission:
--static (-s) - statically generate the site's HTML (SSG), overriding the
config.--server - build the standalone SSR server binary, overriding the config.--no-js-emit - skip emitting the client JavaScript bundle.The two output modes produce different artifacts:
ossido newScaffolds a new project. This is covered in detail in Installation & project setup; in short:
It supports flags for every wizard option (--template, --tailwind, --mdx,
--output, --alias, --head, --yes) so you can scaffold non-interactively.
From a bare JS toolchain, npm create ossido@latest my-app wraps this same
command (see Installation).
ossido doctorRuns read-only diagnostics on your project and toolchain - Rust and Node/Bun versions, your installed CLI and package versions against the latest published, and common setup problems - then prints a pass / warn / fail report:
It changes nothing and exits non-zero only on a hard failure, so it's useful in CI or when something just won't build.
--offline - skip the network checks (the crates.io / npm latest-version
lookups).ossido upgradeBumps your project's ossido crate and @ossido-labs/* npm packages to a newer
version - keeping the two runtimes aligned - and refreshes the lockfiles. Run it
with no arguments for an interactive version picker:
--version <x.y.z> - upgrade to a specific version (defaults to the latest
published).--dry-run - report the planned change without touching any files.--yes (-y) - skip the confirmation prompt.--no-install - update the manifests but don't run cargo update or the
package-manager install..ossido/ directoryBoth ossido dev and ossido build write to a .ossido/ directory at the
project root. It contains generated code, including:
src/routes/, andYou don't edit anything in .ossido/ - it's regenerated from your source on
every run, and hand edits are overwritten. Treat it as build output (and it's
fine to keep it out of version control).
Back to Mental model & architecture · Installation & project setup