Back to Appium

appium server

packages/appium/docs/en/reference/cli/server.md

7.9.05.8 KB
Original Source

Launches an Appium server.

appium server

You can also omit the server subcommand:

appium

Options

!!! note

All of these options can also be set via a [Configuration File](../../guides/config.md). Options
set on the command line will override any options found in a configuration file.
<div style="width:15em">Argument</div>DescriptionType<div style="width:7em">Default</div>
--address, -aIPv4/IPv6 address to listen onstring0.0.0.0
--allow-corsAllow web browser connections from any hostbooleanfalse
--allow-insecureList 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<string>[]
--base-path, -paBase path to use as the prefix for all webdriver routes running on the serverstring""
--callback-address, -caCallback IP addressstring0.0.0.0
--callback-port, -cpCallback portinteger4723
--configPath to an Appium configuration JSON filestring
--debug-log-spacingAdd exaggerated spacing in logs to help with visual inspectionbooleanfalse
--default-capabilities, -dcCapabilities that will be used for each session, unless overridden by received capabilitiesobject
--deny-insecureList 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<string>[]
--driverDriver-specific configuration. Keys should correspond to driver package namesobject
--drivers-import-chunk-sizeMaximum number of drivers that can be imported in parallel on server startupnumber3
--keep-alive-timeout, -kaTimeout (in seconds) to use as both the keep-alive timeout and the connection timeout for all client requests. Disabled if set to 0.integer600
--request-timeoutTimeout (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.integer3600
--local-timezoneUse local timezone for log timestampsbooleanfalse
--log, -gPath to a file where the server logs should be output. This does not affect output on the console.string
--log-filtersList of log filtering rules. See the log filtering guide for details.array
--log-levelThe 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.stringdebug
--log-formatThe log format of the server logs. Supported values are text, json, or pretty_json. Setting the value to json disables colors.stringtext
--log-no-colorsDisable colors in the server logbooleanfalse
--log-timestampShow timestamps in the server logbooleanfalse
--long-stacktraceAdd long stack traces to log entries. Recommended for debugging only.booleanfalse
--no-perms-checkSkip various permission checks on the server startupbooleanfalse
--nodeconfigJSON configuration for registering Appium as a node with Selenium Grid 3object
--pluginPlugin-specific configuration. Keys should correspond to plugin package namesobject
--plugins-import-chunk-sizeMaximum number of plugins that can be imported in parallel on server startupnumber7
--port, -pPort to listen oninteger4723
--relaxed-securityAllow 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.booleanfalse
--session-overrideEnable session override (clobbering)booleanfalse
--shutdown-timeoutTimeout (in milliseconds) for waiting on all active connections to close, when shutting down the servernumber5000
--ssl-cert-pathAbsolute 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-pathAbsolute 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-capsPrevent creation of new client sessions that use unsupported capabilitiesbooleanfalse
--tmpAbsolute path to the directory used for temporary filesstringos.tmpdir()
--use-driversList of drivers to activate. By default, all installed drivers are activated.array<string>[]
--use-pluginsList of plugins to activate. By default, no plugins are activated. Set to ["all"] to activate all installed plugins.array<string>[]
--webhook, -GURL 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.

<div style="width:10em">Argument</div>Description
--show-build-infoPrint detailed information on the Appium server version
--show-configPrint the current Appium server configuration details
--show-debug-infoPrint information on the current environment: details about the operating system, Node.js, and Appium itself
--version, -vPrint the Appium server version