swiftjs-cli
v0.8.0
Published
CLI tools for SwiftJS - A fast, modern, and type-safe web framework
Maintainers
Readme
swiftjs-cli
The official command-line interface for SwiftJS.
Installation
npm install -g swiftjs-cliOr use via npx:
npx swiftjs-cli <command>Commands
Development
Start the development server with hot-reloading:
swiftjs devProduction
Build the application for production:
swiftjs buildStart the production server:
swiftjs startUtilities
Initialize a new project (alias for create-swiftjs-app):
swiftjs initList all registered routes:
swiftjs routesInspect project information:
swiftjs infoClean build artifacts (dist, node_modules/.cache):
swiftjs cleanUsage in Scripts
Add these to your package.json for easy access:
{
"scripts": {
"dev": "swiftjs dev",
"build": "swiftjs build",
"start": "swiftjs start",
"routes": "swiftjs routes"
}
}Requirements
- Node.js >= 18.0.0
License
MIT © AshAvi
