|
| 1 | +# Global Options |
| 2 | +Global options can be used before and for every sub-command but may not be processed by every [control environment](../control_env/index.md). |
| 3 | + |
| 4 | +??? example |
| 5 | + ````shell |
| 6 | + cetk [global option] [sub-command] ... |
| 7 | + ```` |
| 8 | + |
| 9 | +## Options |
| 10 | + |
| 11 | +### `--help` / `-h` |
| 12 | +Show help/usage details and exit. |
| 13 | + |
| 14 | +- Default: None |
| 15 | +- Supported control environment(s): All |
| 16 | +- Environment variable(s): None |
| 17 | + |
| 18 | +### `--version` |
| 19 | +Show `cetk-cli`'s version and exit. |
| 20 | + |
| 21 | +- Default: None |
| 22 | +- Supported control environment(s): All |
| 23 | +- Environment variable(s): None |
| 24 | + |
| 25 | +--- |
| 26 | + |
| 27 | +### `--project-name` (str) |
| 28 | +Set a project name used for Docker compose environment and its network. |
| 29 | + |
| 30 | +- Default: `cetk` |
| 31 | +- Supported control environment(s): Native, Docker |
| 32 | +- Environment variable(s): `CETK_PROJECT_NAME` |
| 33 | + |
| 34 | +### `--source-home` / `-s` (path) |
| 35 | +Set the common [`Source Home`](../home_folder/source_home.md) path for all [supported executables](../control_env/index.md#supported-executables). |
| 36 | + |
| 37 | +- Default: Current working directory |
| 38 | +- Supported control environment(s): All |
| 39 | +- Environment variable(s): None |
| 40 | + |
| 41 | +??? note |
| 42 | + The [control environment](../control_env/index.md#environment-variables) will set `CETK_SOURCE_HOME` during run-time, |
| 43 | + even though [`Source Home`](../home_folder/source_home.md) cannot be [configured](config.md) by environment variable (or TOML file). |
| 44 | + |
| 45 | +### `--output-home` / `-o` (path) |
| 46 | +Set the common [`Output Home`](../home_folder/output_home.md) path for all [supported executables](../control_env/index.md#supported-executables). |
| 47 | + |
| 48 | +- Default: `<Source Home>/artifacts` |
| 49 | +- Supported control environment(s): All |
| 50 | +- Environment variable(s): `CETK_OUTPUT_HOME` |
| 51 | + |
| 52 | +??? note |
| 53 | + The [control environment](../control_env/index.md#environment-variables) will set `CETK_OUPUT_HOME` during run-time, |
| 54 | + regardless from which [configuration entity](config.md) `OUTPUT HOME` has been configured. |
| 55 | + |
| 56 | +### `--environment` (choice) |
| 57 | +Define the control environment to be used. |
| 58 | + |
| 59 | +- Choices: `native`, `docker`, `cloud` |
| 60 | +- Default: `native` |
| 61 | +- Supported control environment(s): All |
| 62 | +- Environment variable(s): `CETK_ENVIRONMENT` |
| 63 | + |
| 64 | +??? note |
| 65 | + The [control environment](../control_env/index.md#environment-variables) will set `CETK_ENVIRONMENT` during run-time, |
| 66 | + regardless from which [configuration entity](config.md) `environment` has been configured. |
| 67 | + |
| 68 | +--- |
| 69 | + |
| 70 | +### `--verbose` / `-v` |
| 71 | +Show log messages in the terminal (stderr). |
| 72 | + |
| 73 | +- Default: disabled |
| 74 | +- Supported control environment(s): All |
| 75 | +- Environment variable(s): `CETK_VERBOSE`, `CETK_ENABLE_VERBOSE`[^1] |
| 76 | + |
| 77 | +### `--enable-file-logging` |
| 78 | +Enable logging into a file (for default file location, see `--log-file`) |
| 79 | + |
| 80 | +- Default: enabled (by TOML configuration file) |
| 81 | +- Supported control environment(s): All |
| 82 | +- Environment variable(s): `CETK_FILE_LOGGING`, `CETK_ENABLE_FILE_LOGGING`[^1] |
| 83 | + |
| 84 | +### `--log-file` (file path) |
| 85 | +Specify different path/file name for the log file (if enabled). |
| 86 | + |
| 87 | +- Default: `<Output Home>/cetk.log` |
| 88 | +- Supported control environment(s): All |
| 89 | +- Environment variable(s): `CETK_LOG_FILE` |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +### `--compose-file` (file path) |
| 94 | +Docker compose file to be used for Docker compose environment. |
| 95 | +Option can be used several times. |
| 96 | + |
| 97 | +- Default: None |
| 98 | +- Supported control environment(s): native, docker |
| 99 | +- Environment variable(s): `CETK_COMPOSE_FILES` |
| 100 | + |
| 101 | +### `--compose-dotenv-file` (file path) |
| 102 | +Dotenv (`.env`) file passed to Docker compose environment. |
| 103 | + |
| 104 | +- Default: None |
| 105 | +- Supported control environment(s): native, docker |
| 106 | +- Environment variable(s): `CETK_COMPOSE_DOTENV_FILE` |
| 107 | + |
| 108 | +### `--compose-executable-name` (str) |
| 109 | +Name of the executable to be used to control `compose`. |
| 110 | + |
| 111 | +- Default: `docker` |
| 112 | +- Supported control environment(s): native, docker |
| 113 | +- Environment variable(s): `CETK_COMPOSE_EXECUTABLE_NAME` |
| 114 | + |
| 115 | +### `--compose-executable-path` (path) |
| 116 | +Alternative search path for executable that controls `compose`. |
| 117 | + |
| 118 | +- Default: System/User `PATH` |
| 119 | +- Supported control environment(s): native, docker |
| 120 | +- Environment variable(s): `CETK_COMPOSE_EXECUTABLE_PATH` |
| 121 | + |
| 122 | +### `--compose-verbose` |
| 123 | +Enable verbose mode for compose executable |
| 124 | + |
| 125 | +- Default: disabled |
| 126 | +- Supported control environment(s): native, docker |
| 127 | +- Environment variable(s): `CETK_COMPOSE_VERBOSE`, `CETK_COMPOSE_ENABLE_VERBOSE`[^1] |
| 128 | + |
| 129 | +--- |
| 130 | + |
| 131 | +### `--docker-image` (str) |
| 132 | +The name/tag of the control environment Docker image. |
| 133 | + |
| 134 | +- Default: None |
| 135 | +- Supported control environment(s): docker |
| 136 | +- Environment variable(s): `CETK_DOCKER_IMAGE` |
| 137 | + |
| 138 | +??? note |
| 139 | + The [docker control environment](../control_env/docker.md#environment-variables) will set `CETK_DOCKER_IMAGE` during run-time, |
| 140 | + regardless from which [configuration entity](config.md) `docker image` has been configured. |
| 141 | + |
| 142 | +--- |
| 143 | + |
| 144 | +### `--cloud-api-key` (str) |
| 145 | +API key to authorize against cETK cloud service. This key can be |
| 146 | +obtained from the cloud service "developer" portal as a self-service. |
| 147 | + |
| 148 | +- Default: None |
| 149 | +- Supported control environment(s): cloud |
| 150 | +- Environment variable(s): `CETK_CLOUD_API_KEY` |
| 151 | + |
| 152 | +### `--cloud-customer-id` (str) |
| 153 | +Customer ID to access customer-specific cETK cloud service API. This ID is |
| 154 | +given by comlet upon valid/active subscription. |
| 155 | + |
| 156 | +- Default: None |
| 157 | +- Supported control environment(s): cloud |
| 158 | +- Environment variable(s): `CETK_CLOUD_CUSTOMER_ID` |
| 159 | + |
| 160 | +### `--cloud-add-upload-path` (path) |
| 161 | +Additional [`Output Home`](../home_folder/output_home.md) or [`Temp Home`](../home_folder/temp_home.md) path from which files are uploaded to |
| 162 | +cETK cloud service as sources (not filtered and non-recursive). Option can be given multiple times. |
| 163 | + |
| 164 | +- Default: None |
| 165 | +- Supported control environment(s): cloud |
| 166 | +- Environment variable(s): `CETK_CLOUD_ADD_UPLOAD_PATHS` |
| 167 | + |
| 168 | +### `--cloud-force-upload` |
| 169 | +Forces upload of sources to cETK cloud service — even if they exist. |
| 170 | + |
| 171 | +- Default: disabled |
| 172 | +- Supported control environment(s): cloud |
| 173 | +- Environment variable(s): `CETK_CLOUD_FORCE_UPLOAD`, `CETK_CLOUD_ENABLE_FORCE_UPLOAD`[^1] |
| 174 | + |
| 175 | +[^1]: The `ENABLE` environment variable just needs to be defined, its value does not matter to enable the option. |
| 176 | + Whereas the "normal" variable needs to have a truth-y or false-y value |
0 commit comments