CLI reference
Commands that take a site use the site for the current folder when you leave it out.
devkit sites
Section titled “devkit sites”List sites and what serves them
devkit sites [OPTIONS]| Argument | Meaning |
|---|---|
--json |
Print JSON |
devkit status
Section titled “devkit status”Show DevKit’s status
devkit statusdevkit park
Section titled “devkit park”Serve every folder inside PATH (default: current folder) as name.test
devkit park [PATH]| Argument | Meaning |
|---|---|
PATH |
Folder (default: the current folder) |
devkit forget
Section titled “devkit forget”Stop parking PATH (default: current folder)
devkit forget [PATH]| Argument | Meaning |
|---|---|
PATH |
Folder (default: the current folder) |
devkit link
Section titled “devkit link”Serve the current folder as NAME.test (default: the folder’s name)
devkit link [NAME]| Argument | Meaning |
|---|---|
NAME |
Site name (default: the folder’s name) |
devkit unlink
Section titled “devkit unlink”Remove a link
devkit unlink [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit secure
Section titled “devkit secure”Serve a site over HTTPS
devkit secure [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit unsecure
Section titled “devkit unsecure”Serve a site over plain HTTP
devkit unsecure [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit use
Section titled “devkit use”Set the default PHP version
devkit use <VERSION>devkit isolate
Section titled “devkit isolate”Pin a site to a PHP or Python version
devkit isolate [OPTIONS] <VERSION>| Argument | Meaning |
|---|---|
--site |
Site (default: the site for the current folder) |
devkit unisolate
Section titled “devkit unisolate”Go back to the default version
devkit unisolate [OPTIONS]| Argument | Meaning |
|---|---|
--site |
Site (default: the site for the current folder) |
devkit run
Section titled “devkit run”Set the command that starts a site’s dev server (“$PORT” is substituted)
devkit run <SITE> <COMMAND>| Argument | Meaning |
|---|---|
SITE |
Site name |
COMMAND |
Command, e.g. npm run dev -- --port $PORT |
devkit start
Section titled “devkit start”Start a site
devkit start [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit stop
Section titled “devkit stop”Stop a site
devkit stop [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit share
Section titled “devkit share”Share a site on a public https address through Cloudflare
devkit share [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit unshare
Section titled “devkit unshare”Stop sharing a site
devkit unshare [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit open
Section titled “devkit open”Open a site in the browser
devkit open [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
devkit requests
Section titled “devkit requests”Show recent requests (add –follow to watch)
devkit requests [OPTIONS] [SITE]| Argument | Meaning |
|---|---|
SITE |
Site (default: the site for the current folder) |
-f, --follow |
Keep watching for new lines |
devkit logs
Section titled “devkit logs”Show a process’s log, e.g. site:shop, php:8.4 (add –follow to watch)
devkit logs [OPTIONS] [SOURCE]| Argument | Meaning |
|---|---|
SOURCE |
Log source (default: the site for the current folder) |
-f, --follow |
Keep watching for new lines |
devkit ca
Section titled “devkit ca”Print the DevKit CA certificate (for tools that need it)
devkit cadevkit php
Section titled “devkit php”Run PHP for the current folder: the site’s version, with DevKit’s settings, e.g. devkit php artisan inspire
devkit php [ARGS]...| Argument | Meaning |
|---|---|
ARGS |
Arguments passed to PHP |
devkit composer
Section titled “devkit composer”Run Composer with the current folder’s PHP, e.g. devkit composer install
devkit composer [ARGS]...| Argument | Meaning |
|---|---|
ARGS |
Arguments passed to Composer |
devkit mcp
Section titled “devkit mcp”Serve the Model Context Protocol on stdio, for AI coding tools
devkit mcpdevkit process
Section titled “devkit process”Manage a site’s background processes (queue workers, schedulers…)
Subcommands: list, add, start, stop, restart, remove.
devkit process list
Section titled “devkit process list”List the current site’s processes and suggestions
devkit process list [OPTIONS]| Argument | Meaning |
|---|---|
--site |
Site (default: the site for the current folder) |
devkit process add
Section titled “devkit process add”Add a process and start it, e.g. devkit process add "php artisan queue:work"
devkit process add [OPTIONS] <COMMAND>| Argument | Meaning |
|---|---|
COMMAND |
Command to run in the site’s folder |
--name |
Display name (default: the command) |
--once |
Don’t start it with DevKit or restart it when it exits |
--site |
Site (default: the site for the current folder) |
devkit process start
Section titled “devkit process start”Start a process
devkit process start [OPTIONS] <ID>| Argument | Meaning |
|---|---|
ID |
Process ID, from devkit process list |
--site |
Site (default: the site for the current folder) |
devkit process stop
Section titled “devkit process stop”Stop a process
devkit process stop [OPTIONS] <ID>| Argument | Meaning |
|---|---|
ID |
Process ID, from devkit process list |
--site |
Site (default: the site for the current folder) |
devkit process restart
Section titled “devkit process restart”Restart a process
devkit process restart [OPTIONS] <ID>| Argument | Meaning |
|---|---|
ID |
Process ID, from devkit process list |
--site |
Site (default: the site for the current folder) |
devkit process remove
Section titled “devkit process remove”Stop and remove a process
devkit process remove [OPTIONS] <ID>| Argument | Meaning |
|---|---|
ID |
Process ID, from devkit process list |
--site |
Site (default: the site for the current folder) |