Skip to content

Cities

Display a list of predefined city labels that can be used for location-based server selection.

Usage

speedtest-go cities

Global options

Every command accepts these flags. See Configuration for how they combine with environment variables and the settings file.

FlagShortDefaultTypeDescription
--base-url""stringSet the speedtest API base URL (default https://www.speedtest.net).
--city""stringChange the location with a predefined city label.
--config""stringsettings file (default speedtest-go/config.yaml in the user config directory)
--debugfalseboolEnable debug mode.
--dns-bind-sourcefalseboolDNS request binding source (experimental).
--dscp0intMark connections with a DSCP code point from 0 to 63 (Linux, macOS and BSD).
--filter-cc[]stringSliceOnly use servers in these countries (two-letter codes, or auto for your own).
--location""stringChange the location with a precise coordinate (format: lat,lon).
--mask-ispfalseboolMask your IP address, ISP, coordinates, and distances to servers in all output.
--proxy""stringSet a proxy(http[s] or socks) for the speedtest.
--search""stringFuzzy search servers by a keyword.
--source""stringSend from a source IP address or network interface name.
--ua""stringSet the user-agent header for the speedtest.