Skip to content

CLI reference ​

This page is generated from the command tree exported by the CLI. The commands and options below therefore match the published module version.

bash
bunx nuxt-feathers-zod --help
bunx nuxt-feathers-zod capabilities --section all --json

Usage principles ​

  • Run doctor after generation or a significant nuxt.config.ts change.
  • Use --dry when available to inspect a patch before writing files.
  • Use --force only when replacing an existing artifact is intentional.
  • For business services, prefer add service or add custom-service over manually creating folders.
  • The schema --add-field field format is name:type! for a required field, for example title:string!.

Command catalogue ​

CommandPurposeArguments and options
add custom-serviceExplicit alias for a custom service without a standard adapter.<name>
`--schema <none
add file-serviceGenerate a local upload and download service.<name>
--path <value>
--storageDir <value>
--auth
--docs
--servicesDir <value>
--force
--dry
add middlewareGenerate middleware or another targeted server artifact.<name>
`--target <nitro
add mongodb-composeGenerate a development MongoDB Compose file.--out <value>
--service <value>
--port <value>
--database <value>
--rootUser <value>
--rootPassword <value>
--volume <value>
--force
--dry
add remote-serviceDeclare a remote Feathers service in the client configuration.<name>
--path <value>
--methods <value>
--dry
add server-moduleGenerate a Feathers/Nitro server module from a preset.<name>
`--preset <helmet
add serviceGenerate a portable Feathers service by database engine/named connection, with memory, MongoDB, and Knex adapter compatibility.<name>
--custom
`--type <adapter
auth serviceEnable or disable JWT hooks on an existing service.<name>
--servicesDir <value>
--enabled
--dry
capabilitiesExpose the capability matrix implemented by the installed package version.`--section <summary
doctorInspect the current project and report configuration or service inconsistencies.—
init embeddedConfigure Nuxt with a Feathers server embedded in Nitro.`--framework <express
init remoteConfigure the Nuxt client for a remote Feathers API.--url <value> *
`--transport <auto
init starterCopy the Nuxt 4 + Quasar 2 + UnoCSS + Pinia starter shipped with the package.--preset <value>
--dir <value>
--force
--dry
init templatesInstall customizable module templates.--dir <value>
--force
--diff
--dry
middlewares addGenerate middleware from the preset registry.<name>
`--target <nitro
middlewares listList middleware and targeted artifacts.`--target <all
modules addGenerate a server module.<name>
`--preset <helmet
modules listList detected server modules.—
mongo managementConfigure MongoDB management services exposed by the module.--url <value>
--enabled
--auth
--basePath <value>
--exposeDatabasesService
--exposeCollectionsService
--exposeUsersService
--exposeCollectionCrud
--whitelistDatabases <value>
--blacklistDatabases <value>
--whitelistCollections <value>
--blacklistCollections <value>
--showSystemDatabases
--allowCreateDatabase
--allowDropDatabase
--allowCreateCollection
--allowDropCollection
--allowInsertDocuments
--allowPatchDocuments
--allowReplaceDocuments
--allowRemoveDocuments
--dry
plugins addGenerate a Feathers server plugin.<name>
--force
--dry
plugins listList detected server plugins.—
remote auth keycloakConfigure Keycloak client mode for a remote backend.--ssoUrl, --url <value> *
--realm <value> *
--clientId <value> *
--dry
schemaInspect, validate, and modify a service schema manifest.<name>
--show
--get
--json
--export
`--set-mode <none
templates initInstall templates into the project.--dir <value>
--force
--diff
--dry
templates listList available templates.—

Embedded Feathers backend ​

bash
bunx nuxt-feathers-zod init embedded --auth --framework express
bunx nuxt-feathers-zod add service users --database mongodb --schema zod --auth
bunx nuxt-feathers-zod add service articles --database mongodb --schema zod
bunx nuxt-feathers-zod schema articles --add-field title:string!
bunx nuxt-feathers-zod doctor

Custom service ​

bash
bunx nuxt-feathers-zod add custom-service reports --methods find --customMethods run --schema zod

Remote client ​

bash
bunx nuxt-feathers-zod init remote --url https://api.example.test --transport socketio --auth
bunx nuxt-feathers-zod add remote-service users --path users --methods find,get,create,patch,remove
bunx nuxt-feathers-zod doctor

Source of truth ​

The capabilities --json command exposes implemented modes, transports, database engines, NFZ services, composables, and authentication events. The repository coherence gate compares this matrix with the runtime, playground, and documentation.

nuxt-feathers-zod user documentation