Servers
Probably the most common use for CommandBox is in starting, stopping, configuring and deploying BoxLang and CFML servers. CommandBox makes it very easy to handle nearly every aspect of server management.
From CommandBox, in a new folder, type
touch index.cfmand press enter. This will create a new file.Open your IDE to that folder. If you are using VSCode type
!code .and it will open right to there. The "!" tells CommandBox not to process that command directly but to pass it through to the underlying system to be run.Add this HTML template to that page
<!doctype html><html><head></head><body><h1>HI!</h1></body></html>Save the file.
Back in CommandBox, type
server start. Wait a few moments and your browser should open with your page showing.Other Commands: server status server stop server restart server log [--follow]
Last updated