Command Line Interface¶
Doozer provides the following command line interface.
doozer¶
usage: doozer [-h] [--version] [-a APP] {run} ...
-
-h
,
--help
¶
show this help message and exit
-
--version
¶
show program’s version number and exit
-
-a
,
--app
¶
the path to the application to run
doozer run¶
Import and run an application.
usage: doozer run [-h] [--verbose | --quiet] [-r] [-w WORKERS] [-d]
application-path
-
application-path
¶
the path to the application to run
-
-h
,
--help
¶
show this help message and exit
-
--verbose
,
-v
¶
verbose mode
-
--quiet
,
-q
¶
quiet mode
-
-r
,
--reloader
¶
reload the application on changes
-
-w
<workers>
,
--workers
<workers>
¶ the number of asynchronous tasks to run
-
-d
,
--debug
¶
enable debug mode
Further Details¶
When developing locally, applications often need to be restarted as changes are
made. To make this easier, Doozer provides a --reloader
option to the
run
command. With this option enabled, Doozer will watch an application’s
root directory and restart the application automatically when changes are
detected:
$ python -m doozer run file_printer --reloader
Note
The --reloader
option is not recommended for production use.
It’s also possible to enable Doozer’s Debug Mode through the --debug
option:
$ python -m doozer run file_printer --debug
Note
The --debug
option is not recommended for production use.
This will also enable the reloader.
Extending the Command Line¶
For information about how to extension Doozer’s command line interface, see Extending the Command Line.