Skip to content

Commit 9e13b43

Browse files
committed
docs: update README with CLI commands
1 parent 941d4c8 commit 9e13b43

1 file changed

Lines changed: 30 additions & 4 deletions

File tree

README.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,17 @@ php warvil key:generate
232232
## 🖥️ Command Line Interface
233233
WarvilPHP comes with a command-line tool called warvil for scaffolding components:
234234

235-
Available Commands
235+
#### Development
236+
```sh
237+
# Start development server
238+
php warvil serve
239+
# OR with custom host and port
240+
php warvil serve localhost 3000
241+
242+
# Show help
243+
php warvil help
244+
```
245+
#### Generator Commands
236246
```sh
237247
# Create a controller
238248
php warvil make:controller UserController
@@ -261,14 +271,30 @@ php warvil make:layout admin
261271
# Create a database table schema
262272
php warvil make:table Users
263273

264-
# Run a migration
274+
```
275+
#### Database Commands
276+
```sh
265277
php warvil migration:run User:up
278+
```
266279

280+
#### Utility Commands
281+
```sh
267282
# Generate an application key
268283
php warvil key:generate
269284

270-
# Show help
271-
php warvil help
285+
# Release new versions
286+
php warvil release # General release command
287+
php warvil release:patch # Release a patch version (0.1.0 → 0.1.1)
288+
php warvil release:minor # Release a minor version (0.1.0 → 0.2.0)
289+
php warvil release:major # Release a major version (0.1.0 → 1.0.0)
290+
php warvil release:help # Show release command help
291+
```
292+
293+
294+
#### Utility Commands
295+
```sh
296+
# Generate an application key
297+
php warvil key:generate
272298
```
273299

274300
## 🌐 Routing System

0 commit comments

Comments
 (0)