@merinaa/cli
v0.3.0
Published
CLI scaffolding for Merinaa — init new FiveM projects and generate modules
Maintainers
Readme
@merinaa/cli
Scaffolding CLI for the Merinaa FiveM framework.
Install
You don't install this package directly — use it via npm init or npx:
npm init merinaa my-server # preferred
# or
npx @merinaa/cli init my-serverCommands
merinaaa init <project-name>
Creates a new FiveM server project with the full Merinaa stack:
package.jsonwith@merinaa/*deps pre-wiredtsconfig.json(decorators + reflection + DOM lib)fxmanifest.lua(insideresource/)framework.config.yaml(YAML with ENV substitution)vitest.config.tswith the Discord reporterdocker/docker-compose.yml(MySQL + FiveM + Adminer) +server.cfgscripts/build.js(tspc + esbuild + vite)src/entry.ts+src/client-entry.ts- Working
hellomodule as a cargo-cult template (server + client + UI) - React NUI boilerplate:
ui/index.html,main.tsx, Tailwind + PostCSS
Aborts cleanly if the target folder exists and isn't empty.
merinaaa module <module-name>
Scaffolds a new module under src/modules/<module-name>/:
server/— module, controller, service, entities folderclient/— index + controllerui/— page registration + React componentshared/types.ts— type contract between sides
Placeholders ({{MODULE_NAME}}, {{MODULE_PASCAL}}, {{MODULE_CAMEL}})
are substituted in file contents and filenames. The command prints the
three import statements you need to add afterwards.
License
MIT
