API testing
Run an API request with a known VPN state and include status output when debugging.
Free VPN CLI fits the way developers already work: install from the terminal, connect before API tests, switch regions for geo checks, inspect status as JSON, and run diagnostics without leaving your shell.
Start from the documented downloads path, then keep day-to-day VPN work in your terminal.
Install the CLI, verify the binary, check status, then connect before running network-sensitive work.
status --json before tests that depend on egress location.regions --json before choosing a geo test region.doctor --json when an API test fails and network state is unclear.A command-line VPN is most useful when VPN state is part of a repeatable development task.
Run an API request with a known VPN state and include status output when debugging.
Switch regions and verify location behavior before filing or closing a bug.
Use the CLI over SSH where a desktop VPN window is not practical.
Capture doctor output alongside logs when reproducing customer network issues.
Three verbs cover most day-to-day VPN work. set-region and doctor cover region selection and troubleshooting.
The useful loop is explicit: connect, check status, run the test, switch regions if needed, and collect diagnostics when behavior changes.
| Command | Why it matters |
|---|---|
freevpn up | Connect before running a network-sensitive local test. |
freevpn status --json | Record current VPN state in test logs or issue notes. |
freevpn regions --json | Find a region slug or label before geo testing. |
freevpn set-region <slug|label> | Persist a region for repeated local checks. |
freevpn doctor --json | Collect structured diagnostics when a test fails unexpectedly. |
Keep the VPN controlled by commands, parseable output, and diagnostics that fit normal engineering work.
Use freevpn commands directly from the shell instead of relying on screenshots or app windows.
Use --json for status, regions, and diagnostics when another tool needs to parse VPN state.
Run freevpn doctor --json when DNS, route, controller, license, or egress checks need evidence.
List regions, set a default, connect to a selected exit, and verify the result from the command line.
Useful for terminals, remote shells, containers where allowed, and support workflows.
Wrap commands in npm scripts, Makefiles, shell aliases, or internal test helpers.
Avoid making VPN state implicit in tests. Check it, log it, and diagnose it clearly.
--json is available.doctor --json before blaming an API service for network failures.freevpn up, then freevpn status --json before running API checks that depend on location or egress.freevpn regions --json, choose a region, run freevpn set-region, then verify status.--json for anything automated.freevpn doctor --json and keep the output with the failure details.Use Free VPN CLI for local tests, geo checks, status output, and diagnostics from your normal development shell.