Edit on GitHub
Jump to docs navigation

Console command / Web Server / server:run

Note: You are currently reading the documentation for Bolt 4.0. Looking for the documentation for Bolt 5.2 instead?

Nut's server:run command runs PHP's built-in web server for your site testing and basic development.

Note: Do not use this to run production web sites, it is for development and testing only.


    php ./bin/console server:run [options] [--] [<address>]


Argument Description
address Address:port [default: ""]


Option Description
-p, --port=PORT Address port number [default: "8000"]



$ php ./bin/console server:run

 [OK] Server running on

 // Quit the server with CONTROL-C.

Specifying host name and port

$ php ./bin/console server:run example.com --port=8888

 [OK] Server running on http://example.com:8888

 // Quit the server with CONTROL-C.

Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.