Forjnot CLI
Forjnot includes a built-in CLI to help you generate modules and manage core tasks faster. This tool provides an interactive prompt and wraps common scripts into a handy developer menu.
π¦ Launch the CLI
To view available CLI commands, run the following:
pnpm cli:help
When you run this command, youβll see something like the following interactive menu:
ββββββββ βββββββ βββββββ βββββββ βββ βββββββ βββββββββ | / /
βββββββββββββββββββββββββ ββββββββ βββββββββββββββββββββ |/ /
ββββββ βββ βββββββββββ βββββββββ ββββββ βββ βββ | /
ββββββ βββ βββββββββββββ ββββββββββββββββ βββ βββ |/
βββ ββββββββββββ ββββββββββββββ βββββββββββββββ βββ |
βββ βββββββ βββ βββ ββββββ βββ βββββ βββββββ βββ |
Available Commands:
1. Build the project: pnpm run build:all
2. Start the client: pnpm run client
3. Start the server: pnpm run server
4. Lint the code: pnpm run lint
5. Format the code: pnpm run format
6. Generate a new module: pnpm run generate:module
? Select an action: (Use arrow keys)
β― Build the project
Start the client
Start the server
Lint the code
Format the code
Generate a new module
Use the up/down arrow keys to navigate and press Enter to run the selected script. This makes it easier to avoid memorizing long script names during development.
π§Ή Don't need the CLI?
If you donβt plan to use the CLI, feel free to delete the .scripts/
folder from the project root.
Itβs fully optional and wonβt affect the core functionality of Forjnot.