Skip to content

CLI — Installation

The Shiva CLI is a Node.js tool that scaffolds modules, runs migrations, manages packages, generates documentation, and integrates with AI tools.

Install

bash
npm install -g @shiva-fw/cli

Verify

bash
shiva --version
# shiva-cli v1.0.0

Commands

Scaffolding

CommandDescription
shiva initBootstrap a new Shiva server project
shiva make:moduleScaffold a new module
shiva make:serviceScaffold a service inside a module
shiva make:modelScaffold a model
shiva make:migrationScaffold a migration file
shiva make:seedScaffold a seed file
shiva make:contractScaffold a contract definition
shiva make:testScaffold a test spec file
shiva make:uiScaffold a NUI ui/ directory

Database

CommandDescription
shiva migrateRun pending migrations
shiva migrate:rollbackRoll back the last batch
shiva migrate:statusShow migration run status
shiva seedRun seed files

Modules

CommandDescription
shiva module:listList all installed modules
shiva module:statusShow enabled/disabled status of each module

Packages

CommandDescription
shiva installInstall packages from shiva.manifest
shiva updateUpdate all packages to latest compatible versions
shiva outdatedList packages with available updates
shiva remove <pkg>Remove a package

Quality

CommandDescription
shiva testRun the test suite
shiva config:validateValidate all module config files against their schema
shiva locale:missingReport translation keys missing in any locale

AI & MCP

CommandDescription
shiva ai:contextGenerate a single-file AI context bundle for the whole server
shiva ai:linkGenerate a shareable llms.txt-style link for Cursor/ChatGPT
shiva ai:mcpConfigure an AI tool to use the Shiva MCP server
shiva mcp startStart the Shiva MCP server (used by Cursor/VS Code)

Documentation

CommandDescription
shiva docs:apiGenerate API reference from LuaLS annotations
shiva docs:buildBuild the full documentation site
shiva docs:serveServe documentation locally
shiva docs:deployDeploy documentation to hosting

Global Options

bash
--version   Print version and exit
--help      Show help for a command
--verbose   Enable verbose output
--cwd       Set working directory (default: current directory)

Released under the MIT License.