| 1 |
.. _cyclopts-complex-cli: |
| 2 |
|
| 3 |
complex-cli |
| 4 |
----------- |
| 5 |
|
| 6 |
:: |
| 7 |
|
| 8 |
complex-cli COMMAND [OPTIONS] |
| 9 |
|
| 10 |
Complex CLI application for comprehensive documentation testing. |
| 11 |
|
| 12 |
.. contents:: Table of Contents |
| 13 |
:local: |
| 14 |
:depth: 6 |
| 15 |
|
| 16 |
**Global Options:** |
| 17 |
|
| 18 |
``--verbose, -v`` |
| 19 |
Verbosity level (-v, -vv, -vvv). [Default: ``0``] |
| 20 |
|
| 21 |
``--quiet, -q, --no-quiet`` |
| 22 |
Suppress non-essential output. [Default: ``False``] |
| 23 |
|
| 24 |
``--log-level`` |
| 25 |
Logging level. [Choices: ``debug``, ``info``, ``warning``, ``error``, ``critical``, Default: ``info``] |
| 26 |
|
| 27 |
``--no-color, --no-no-color`` |
| 28 |
Disable colored output [Default: ``False``] |
| 29 |
|
| 30 |
**Subcommands:** |
| 31 |
|
| 32 |
``server`` |
| 33 |
Server management commands. |
| 34 |
|
| 35 |
.. _cyclopts-complex-cli-server: |
| 36 |
|
| 37 |
server |
| 38 |
^^^^^^ |
| 39 |
|
| 40 |
Server management commands. |
| 41 |
|
| 42 |
**Commands:** |
| 43 |
|
| 44 |
``restart`` |
| 45 |
Restart the server. |
| 46 |
|
| 47 |
``start`` |
| 48 |
Start the server with configuration. |
| 49 |
|
| 50 |
``stop`` |
| 51 |
Stop the server. |
| 52 |
|
| 53 |
.. _cyclopts-complex-cli-server-start: |
| 54 |
|
| 55 |
start |
| 56 |
""""" |
| 57 |
|
| 58 |
:: |
| 59 |
|
| 60 |
complex-cli server start [OPTIONS] |
| 61 |
|
| 62 |
Start the server with configuration. |
| 63 |
|
| 64 |
Demonstrates Pydantic model support for CLI parameters. |
| 65 |
|
| 66 |
**Parameters:** |
| 67 |
|
| 68 |
``--server.host`` |
| 69 |
Server bind address. [Default: ``0.0.0.0``] |
| 70 |
|
| 71 |
``--server.port`` |
| 72 |
Server port number. [Default: ``8000``] |
| 73 |
|
| 74 |
``--server.workers`` |
| 75 |
Number of worker processes. [Default: ``4``] |
| 76 |
|
| 77 |
``--server.timeout`` |
| 78 |
Request timeout in seconds. [Default: ``30.0``] |
| 79 |
|
| 80 |
``--server.debug, --server.no-debug`` |
| 81 |
Enable debug mode. [Default: ``False``] |
| 82 |
|
| 83 |
``--auth.provider`` |
| 84 |
Authentication provider type. [Choices: ``oauth2``, ``jwt``, ``basic``, ``none``, Default: ``jwt``] |
| 85 |
|
| 86 |
``--auth.token-expiry`` |
| 87 |
Token expiration time in seconds. [Default: ``3600``] |
| 88 |
|
| 89 |
``--auth.refresh-enabled, --auth.no-refresh-enabled`` |
| 90 |
Enable token refresh. [Default: ``True``] |
| 91 |
|
| 92 |
``--auth.allowed-origins, --auth.empty-allowed-origins`` |
| 93 |
List of allowed CORS origins. |
| 94 |
|
| 95 |
.. _cyclopts-complex-cli-server-stop: |
| 96 |
|
| 97 |
stop |
| 98 |
"""" |
| 99 |
|
| 100 |
:: |
| 101 |
|
| 102 |
complex-cli server stop [OPTIONS] |
| 103 |
|
| 104 |
Stop the server. |
| 105 |
|
| 106 |
**Parameters:** |
| 107 |
|
| 108 |
``--graceful, --no-graceful`` |
| 109 |
Perform graceful shutdown. [Default: ``True``] |
| 110 |
|
| 111 |
``--timeout`` |
| 112 |
Shutdown timeout in seconds. [Default: ``30``] |
| 113 |
|
| 114 |
``--force, -f, --no-force`` |
| 115 |
Force immediate shutdown. [Default: ``False``] |
| 116 |
|
| 117 |
.. _cyclopts-complex-cli-server-restart: |
| 118 |
|
| 119 |
restart |
| 120 |
""""""" |
| 121 |
|
| 122 |
:: |
| 123 |
|
| 124 |
complex-cli server restart [ARGS] |
| 125 |
|
| 126 |
Restart the server. |
| 127 |
|
| 128 |
**Parameters:** |
| 129 |
|
| 130 |
``ROLLING, --rolling, --no-rolling`` |
| 131 |
Perform rolling restart (zero downtime). [Default: ``False``] |
| 132 |
|
| 133 |
``DELAY, --delay`` |
| 134 |
Delay between worker restarts in seconds. [Default: ``5``] |