appium server
Launches an Appium server.
You can also omit the server
subcommand:
Options¶
Note
All of these options can also be set via a Configuration File. Options set on the command line will override any options found in a configuration file.
Argument |
Description | Type | Default |
---|---|---|---|
--address , -a |
IPv4/IPv6 address to listen on | string | 0.0.0.0 |
--allow-cors |
Allow web browser connections from any host | boolean | false |
--allow-insecure |
List of insecure features that should be allowed in this server's sessions. Individual features can be overridden by --deny-insecure . Has no effect in combination with --relaxed-security . |
array |
[] |
--base-path , -pa |
Base path to use as the prefix for all webdriver routes running on the server | string | "" |
--callback-address , -ca |
Callback IP address | string | 0.0.0.0 |
--callback-port , -cp |
Callback port | integer | 4723 |
--config |
Path to an Appium configuration JSON file | string | |
--debug-log-spacing |
Add exaggerated spacing in logs to help with visual inspection | boolean | false |
--default-capabilities , -dc |
Capabilities that will be used for each session, unless overridden by received capabilities | object | |
--deny-insecure |
List of insecure features that should be disabled in this server's sessions. Since all insecure features are disabled by default, this argument has no effect without either --allow-insecure or --relaxed-security , and is applied after both. |
array |
[] |
--driver |
Driver-specific configuration. Keys should correspond to driver package names | object | |
--drivers-import-chunk-size |
Maximum number of drivers that can be imported in parallel on server startup | number | 3 |
--keep-alive-timeout , -ka |
Timeout (in seconds) to use as both the keep-alive timeout and the connection timeout for all client requests. Disabled if set to 0 . |
integer | 600 |
--request-timeout |
Timeout (in seconds) for waiting to receive the entire HTTP request from the client. Disabled if set to 0 . Requests exceeding this timeout will be rejected with the code HTTP 408 . |
integer | 3600 |
--local-timezone |
Use local timezone for log timestamps | boolean | false |
--log , -g |
Path to a file where the server logs should be output. This does not affect output on the console. | string | |
--log-filters |
List of log filtering rules. See the log filtering guide for details. | array | |
--log-level |
The log level for the server logs. Supported values are debug , info , warn , or error . Combining two supported values using a colon (e.g. warn:debug ) allows to set separate log levels for the console and file outputs, respectively. |
string | debug |
--log-format |
The log format of the server logs. Supported values are text , json , or pretty_json . Setting the value to json disables colors. |
string | text |
--log-no-colors |
Disable colors in the server log | boolean | false |
--log-timestamp |
Show timestamps in the server log | boolean | false |
--long-stacktrace |
Add long stack traces to log entries. Recommended for debugging only. | boolean | false |
--no-perms-check |
Skip various permission checks on the server startup | boolean | false |
--nodeconfig |
JSON configuration for registering Appium as a node with Selenium Grid 3 | object | |
--plugin |
Plugin-specific configuration. Keys should correspond to plugin package names | object | |
--plugins-import-chunk-size |
Maximum number of plugins that can be imported in parallel on server startup | number | 7 |
--port , -p |
Port to listen on | integer | 4723 |
--relaxed-security |
Allow all insecure features. Only use this if all clients are in a trusted network and could not potentially break out of the session sandbox. Specific features can be overridden by using --deny-insecure . |
boolean | false |
--session-override |
Enable session override (clobbering) | boolean | false |
--shutdown-timeout |
Timeout (in milliseconds) for waiting on all active connections to close, when shutting down the server | number | 5000 |
--ssl-cert-path |
Absolute path to the .cert file if TLS is used. Must be provided together with --ssl-key-path . See the SSL/TLS/SPDY Support guide for details. |
string | |
--ssl-key-path |
Absolute path to the .key file if TLS is used. Must be provided together with --ssl-cert-path . See the SSL/TLS/SPDY Support guide for details. |
string | |
--strict-caps |
Prevent creation of new client sessions that use unsupported capabilities | boolean | false |
--tmp |
Absolute path to the directory used for temporary files | string | os.tmpdir() |
--use-drivers |
List of drivers to activate. By default, all installed drivers are activated. | array |
[] |
--use-plugins |
List of plugins to activate. By default, no plugins are activated. Set to ["all"] to activate all installed plugins. |
array |
[] |
--webhook , -G |
URL for an HTTP listener where the server logs should be output. This does not affect output on the console. | string |
Info Options¶
The following options are used for reference or debug purposes. They are only supported for the base appium
command (not appium server
), and will not launch the server.
Argument |
Description |
---|---|
--show-build-info |
Print detailed information on the Appium server version |
--show-config |
Print the current Appium server configuration details |
--show-debug-info |
Print information on the current environment: details about the operating system, Node.js, and Appium itself |
--version , -v |
Print the Appium server version |