Skip to content

Running a site

Commands

Every nibble command and script in one place, grouped by what you are doing, with the options each takes.

Every command explains its own options:

bin/rails nibble:content:import --help

This page collects them by what you are doing.

1. Every day

bin/dev                          # the site on :3100, the Control Plane at /cp
bin/rails nibble:check           # schema, theme, roles, settings, migrations, routes, ejected files
bin/rails nibble:build           # site/content and the schema, with no database; regenerates types
bin/rails nibble:version         # the release this site runs
bin/rails nibble                 # every command, under the release and what it runs on

nibble:check is the one to run when something is not behaving and you do not know why. It takes --allow-data-loss, to report stranded content as warnings rather than failures, and --support, which prints a summary of your install to paste into an issue.

2. Schema

bin/rails nibble:generate:collection customers
bin/rails nibble:generate:taxonomy industries
bin/rails nibble:generate:blueprint customers/video
bin/rails nibble:generate:fieldset cta
bin/rails nibble:generate:global company
bin/rails nibble:generate:navigation help
bin/rails nibble:generate:form demo
bin/rails nibble:generate:plugin acme            # refuses: there is no extension API yet
bin/rails nibble:schema:show                  # the schema after all three layers
bin/rails nibble:schema:types                 # regenerate site/types.d.ts
bin/rails nibble:schema:types --without-site --output tmp/theme.d.ts  # the theme's types as it ships, without site/schema
bin/rails nibble:schema:snapshot              # record field types as the baseline for nibble:check

3. Themes

bin/rails nibble:generate:theme tidewater
bin/rails nibble:generate:view customers/show --collection=customers
npm run lint           # ESLint over your themes and the screens you ejected
npm run format         # Prettier rewrites them in Nibble's style
npm run format:check   # or only reports the files it would change

4. Content

bin/rails nibble:content:export site/packages/default    # --collections= --taxonomies= --locales= --status=
bin/rails nibble:content:validate site/packages/default  # check a package, asset files included; write nothing
bin/rails nibble:content:import site/packages/default    # --mode=create|update --dry-run --webhooks; uploads assets/ files
bin/rails nibble:content:migrate                                         # pending site/schema/migrations/*.yml; --dry-run
bin/rails nibble:reindex                                          # every search index, including files
bin/rails nibble:cleanup:assets                                     # lists unused uploads; --confirm deletes, --older-than-days=

Warning

nibble:cleanup:assets --confirm deletes files for good. Read Backups before running it after a restore.

5. People

bin/rails nibble:admin:create                                 # asks for a role, name, email and password
bin/kamal app exec -i 'bin/rails nibble:admin:create'         # the same, on the server

It asks, in order: the role (only when the site has more than one; it lists them by number), your name, your email address and a password. A password needs at least 12 characters with a lowercase letter, an uppercase letter, a number and a symbol. On a terminal it asks for the password twice and does not echo it. To script it, pipe the answers one per line, in that order; piped, the password is asked once:

printf '%s\n' 'Ada Lovelace' '[email protected]' 'Correct-horse-9battery' | bin/rails nibble:admin:create

With more than one role, put the role’s number first.

6. Installing, upgrading and deploying

curl -fsSL nibble.ink/install.sh | bash   # a new site, getting the nibble command first
nibble new my-site                        # a new site, with the nibble command already here
bin/rails nibble:install                  # --defaults, --force, --only=deploy
bin/rails nibble:eject <path>             # take one of Nibble's Control Plane screens on
bin/rails nibble:upgrade [version]        # on your own machine, never a server; --force
bin/rails nibble:prepare                  # migrations and checks — runs before every boot
bin/kamal setup                           # the first deploy
bin/kamal deploy                          # every deploy after

7. Development only

bin/rails nibble:dev:seed                 # realistic demo posts, authors and topics
bin/rails nibble:dev:setup                # set up the AI tools you choose (Claude Code, Codex, Cursor) in this folder
bin/rails nibble:dev:setup --remove       # undo it (add --tools claude,codex,cursor to limit)
bin/rails nibble:dev:mcp                  # the developer tools over MCP, for an agent
bin/rails nibble:dev:tool render '{"path":"/"}'  # one developer tool, as JSON
RAILS_ENV=test bin/rails nibble:bench     # render and listing budgets; --posts=, --requests=
bin/ssr-smoke                             # every page through a fresh server-rendering build

The developer tools are described in Building with an agent.

8. The nibble command

nibble runs every task above without bin/rails nibble: — nibble check, nibble upgrade — and works on the content of sites you sign in to. See The nibble command.

The playground, at /cp/nibble/playground in development, renders every blueprint — plus one using every fieldtype — backed by records in memory. It is the fastest way to see what a field looks like without making content.

9. Nibble’s own releases

bin/nibble-release 0.16.0

Only for working on Nibble itself. See Releases.

Was this page helpful?