Introduction
Web2py is written in Python and programmable in Python. Web2py is a free, open-source web framework for the agile development of secure database-driven online applications. As a full-stack framework, web2py has every element required to create entirely working web applications.

Command Options of web2py
Hi Ninja🥷! As you already have a brief idea about web2py here we will look into a brief overview of GUI and how can we skip it by command options.
Through the use of menus, icons, and other visual cues or representations, a user interacts with electronic devices like computers and smartphones using a graphical user interface (GUI) (graphics). Unlike text-based interfaces, where commands and data are strictly in text, GUIs graphically display information and related user controls. A pointing device, such as a trackball, mouse, stylus, or a finger on a touch screen, is used to manipulate GUI representations.
It is possible to skip the Graphical User Interface(GUI) and start command options of web2py by typing something like:
python web2py.py -a 'your password' -i 127.0.0.1 -p 8000
The command options of web2py stores the hashed password in a file called "parameters 8000.py" when it first launches. Web2py asks you for the password if you use " " as the password.
You can launch web2py with the command:
python web2py.py -a '<recycle>' -i 127.0.0.1 -p 8000
Command options of web2py makes use of the previously saved hashed password in this instance. The web-based admin interface is disabled if no password is entered or the "parameters 8000.py" file is removed.
If the password on some Unix/Linux systems is
<pam_user:some_user>
Unless the PAM configuration forbids it, web2py uses the PAM password of the Operating System account of some user to authenticate the administrator.
Web2py can also run with PyPy and Jython, but it typically runs with CPython (Guido van Rossum's C implementation of the Python interpreter). The second option enables the use of web2py within a Java EE infrastructure. Simply substitute "jython web2py.py..." for "python web2py.py..." to use Jython.
The "web2py.py" script can take many command options of web2py arguments specifying the maximum number of threads, enabling SSL, etc. For a complete list type:
>>> python web2py.py -h
Usage: python web2py.py
web2py Web Framework startup script. ATTENTION: unless a password
is specified (-a 'passwd'), web2py will attempt to run a GUI.
In this case, command options of web2py are ignored.
The following table will show some of the command options of web2py.
| Command Options of Web2py | Values |
| --version |
Show program's version number and exit
|
| -p PORT, --port=PORT | port of server (8000) |
| -h, --help |
show this help message and exit
|
| -a PASSWORD, --password=PASSWORD |
password to be used for the administration (use -a "<recycle>" to reuse the last password)) |
| -i IP, --ip=IP | IP address of the server (such as 127.0.0.1 or::1); Note: When using the 'interfaces' option, this value is ignored. |
| -k SSL_PRIVATE_KEY, --ssl_private_key=SSL_PRIVATE_KEY |
file that contains ssl private key
|
| -c SSL_CERTIFICATE, --ssl_certificate=SSL_CERTIFICATE |
the file that contains an ssl certificate
|
| --ca-cert=SSL_CA_CERTIFICATE | To verify client X509 certificates, use this file that contains the CA certificate. |
| -l LOG_FILENAME, --log_filename=LOG_FILENAME |
file to log connections
|
| -d PID_FILENAME, --pid_filename=PID_FILENAME |
file to keep the server's PID
|
| -n NUMTHREADS, --numthreads=NUMTHREADS | number of threads (deprecated) |
| --maxthreads=MAXTHREADS | maximum number of server threads |
| --minthreads=MINTHREADS | minimum number of server threads |
| -q REQUEST_QUEUE_SIZE, --request_queue_size=REQUEST_QUEUE_SIZE |
maximum number of requests in the queue when the server is down
|
| -s SERVER_NAME, --server_name=SERVER_NAME |
the server name for the web server
|
| -o TIMEOUT, --timeout=TIMEOUT | timeout for the individual request (10 seconds) |
Also see, How to Check Python Version in CMD





