CommandBox>prompt. You can enter as many commands as you wish in order and after each command is finished executing, you will be returned to the CommandBox prompt. If you have multiple commands you want to execute manually, this is the fastest method since CommandBox only loads once. This is also the only way to make use of features like tab complete and command history.
boxtext is calling the CommandBox binary, and the
versionbit is passed along to the CommandBox shell to execute once it loads.
-clidebugflag in the command line. This will give you much more verbose information about the running CommandBox environment. This only one-off commands
|) to pass the output of one command into another command as its first input. Output can be piped between more than one command. Use a right bracket (
>) and double right bracket (
>>) to redirect output to the file system.
tailcommand to only output the few lines of the text/file. Adding the
--followflag when tailing a file will live-stream changes to the file to your console until you press Ctrl-C to stop.
BOX_JAVA_PROPSin this format:
fooand a property called
bradwith the values
woodrespectively. This environment variable works the same on all operating systems.
BOX_JAVA_ARGSin the environment that
boxwill run in.
box.l4j.iniin the same directory as the
box.exefile and place a JVM arg on each line. Escape any backslashes with an additional backslash like a properties file format.
BOX_JAVA_PROPSas shown in the previous section, but actual JVM
-Xsettings must be set as described in this section.
nonInteractiveShellsetting, CommandBox will automatically default it to true if there is an environment variable named
CIpresent, which is standard for many build servers such as Travis-CI.
cdcommand. If you want to change the default working directory or just want to run a one-off command in another folder, you can use the
-cliworkingdirflag to the box binary when you start it.