CLI

Generate

Generate useful files for your project.

Generate helper files from your current project context.

terminal
shelve generate
shelve generate --type env-example
shelve generate --type eslint
shelve --json generate --type env-example

Interactive mode

Without --type, the CLI prompts you to choose:

  • .env.example — keys from your local .env with placeholder values
  • ESLint config — fetches a starter eslint.config.js

Non-interactive mode

Pass --type (required when --non-interactive, CI, or agent shell is active):

--typeOutput
env-example{envFileName}.example (default .env.example)
eslinteslint.config.js

JSON success: { "type", "path" }.

Env example

Generates an example file from your local env file keys — safe to commit, no real secret values:

terminal
shelve generate --type env-example

ESLint config

Fetches a starter config from the Shelve templates repository. Optionally installs eslint and @hrcd/eslint-config when run interactively or when --yes auto-confirms; non-interactive runs skip the installs.

terminal
shelve generate --type eslint