Files
nym/documentation/docs/pages/developers/nymvpncli.mdx
mfahampshire f648349e82 Max/docs-diataxis-ify (#6494)
* Diatixisify!

* First pass at Typedoc generation for TS SDK

* Remove overview pages

* Fix typos and remove codebase references from docs

Fix typos across network and developer docs: Quorum, available,
cryptosystem, transaction, proportional, Standalone. Remove TODO
placeholder from dVPN protocol page. Strip GitHub source links
from network docs to decouple documentation from repo structure.

* Expand thin landing pages across network and developer docs

- Add intro content to network overview, infrastructure, and reference landing pages
- Expand developer index with "where to start" guide
- Add usage instructions and explanations to all five TS playground pages
- Expand WebSocket client page with setup and message format examples

* Restructure Rust SDK developer docs

- Delete redundant mixnet example, message-helpers, and message-types subpages
- Delete client-pool architecture and example subpages (content folded into landing)
- Delete tcpproxy troubleshooting (folded into landing page)
- Add deprecation notices to TcpProxy pages, pointing to Stream module
- Add stream module docs: landing page, architecture, tutorial, and 4 example pages
- Add mixnet and client-pool tutorials
- Add SDK tour page
- Update navigation and landing pages with docs.rs links

* Restructure TS SDK developer docs

- Merge overview, installation, and getting started into TS SDK landing page
- Fold FAQ content into bundling/troubleshooting section
- Delete redundant overview, installation, start, and FAQ pages
- Update internal links in browsers.mdx and native.mdx
- Update navigation and example page imports

* Flatten and expand APIs section

- Collapse nested API subpages into single pages with inline Redoc embeds
- Rewrite introduction as landing page with decision table
- Add endpoint categories, quick curl examples to each API page
- Mark Explorer API as deprecated
- Move NS API deployment guide to operators/performance-and-testing
- Fix dangling /apis/nym-api/mainnet link in network-components
- Remove sandbox endpoints from all API pages

* Add redirects for moved and deleted pages

- Add 25 redirects covering TS SDK, Rust SDK, APIs, and network sections
- Fix dangling /developers/typescript/start link in operators changelog

* Replace individual example doc pages with GitHub-linked tables, expand tutorials

- replace individual example doc pages with GitHub-linked tables
- expand mixnet tutorial with persistent identity and split_sender sections
- add tcpproxy tutorial
- rename "API Reference" to "TypeDoc Reference" in TS SDK sidebar
- rename "Misc" to "Extras" in developer sidebar, move VPN CLI up
- remove echo server from tools
- update message-queue callout to reference actual modules
- fix mixnet/examples redirect collision

* Add SEO frontmatter, validate encryption standards, clean up URLs

- add title/description/schemaType/section/lastUpdated frontmatter to 48
  pages across developers, network, and APIs sections
- remove network/.archive/ directory (compare against develop instead)
- update nymtech.net → nym.com for website/blog links (keep infra URLs)
- add native proxy "in progress" callout for Rust/C/Go

* API-scraper update (#6598)

* read nodes and locations

* update python-prebuild.sh

* Address PR #6494 review feedback
- Use "mode" consistently instead of "role" on nym-nodes page
- Replace "staking" with "bonding" for NYM token collateral
- Wire up auto-scraped node counts via TimeNow + nodes-count.json
- Fix broken licensing images: download CC icons locally, replace inline HTML
- Fix 9 stale redirects pointing through deleted /network/architecture path

* Fix linkcheck errors
- Fix stale cross-links: /network/concepts/ → /network/mixnet-mode/
- Replace README.md references with globals.md in TypeDoc output
- Add entryFileName: globals to typedoc.json configs to prevent recurrence

* Fix remaining stale /network/architecture links
- zk-nym-overview: architecture/nyx#nym-api → /network/infrastructure/nyx#nym-api
- setup: network/architecture → /network/overview

* Remove accidentally re-included architecture.md file from rebase

* Standardize tutorials, document examples, add llms.txt, apply tone fixes

- Expand Rust SDK tutorials with step-by-step structure; document all SDK examples across mixnet, client-pool, and tcpproxy pages
- Add llms.txt generation script, wire into build and CI workflows
- Apply tone/style fixes: deduplicate callouts, vary sentence structure, standardize voice consistency across changed pages

* Consolidate redundant network overview docs

* Trim dev docs: git-first imports, stream notice, collapse TcpProxy

* Update tutorial

* Refresh auto-generated API and command outputs

* Update network section docs

* Update developer and API docs: reusable components, stream protocol, conventions, tutorial fixes

* Fix Rust SDK tutorial bugs: setup_env, port conflicts, logging,
open_stream race condition

* Update stream.mdx

* Remove docs.rs link from Stream overview for the moment

* add llms.txt and llms-full.txt note to readme

---------

Co-authored-by: import this <97586125+serinko@users.noreply.github.com>
2026-04-09 15:25:31 +00:00

376 lines
7.7 KiB
Plaintext

---
title: "NymVPN CLI: Run NymVPN from the Command Line"
description: "Install and run NymVPN from the terminal on Linux, macOS, and Windows. Includes ARM64 .deb packages, account setup, tunnel configuration, and gateway selection."
schemaType: "HowTo"
section: "Developers"
lastUpdated: "2026-03-12"
---
import { Callout } from 'nextra/components'
# Nym VPN CLI
This is a short guide to setting up and using the `nym-vpnc` tool, which is used in conjunction with the `nym-vpnd` daemon.
Download and run instructions for the GUIs can be found [here](https://nymvpn.com/en/download/linux).
## Download & Extract Binary
Check the [release page](https://github.com/nymtech/nym-vpn-client/releases/) page for the latest release version and modify the instructions accordingly. These instructions use the latest as of the time of writing.
```sh
wget -q https://github.com/nymtech/nym-vpn-client/releases/download/nym-vpn-core-v1.27.0-beta/nym-vpn-core-v1.27.0-beta_<YOUR_OPERATING_SYSTEM>.tar.gz &&
tar -xzf nym-vpn-core-v1.27.0-beta_<YOUR_OPERATING_SYSTEM>.tar.gz &&
cd nym-vpn-core-v1.27.0-beta_<YOUR_OPERATING_SYSTEM>/ &&
chmod u+x *
```
### Linux ARM64 (.deb)
ARM64 `.deb` packages are available for Linux distributions that support them (e.g. Ubuntu/Debian on Raspberry Pi or ARM servers). Install both the daemon and the client:
```sh
sudo dpkg -i nym-vpnd_<VERSION>_arm64.deb
sudo dpkg -i nym-vpnc_<VERSION>_arm64.deb
```
The `.deb` package installs a systemd service that starts `nym-vpnd` automatically. Verify the service is running:
```sh
service nym-vpnd status
```
You should see output similar to:
```sh
● nym-vpnd.service - nym-vpnd daemon
Loaded: loaded (/usr/lib/systemd/system/nym-vpnd.service; enabled; preset: enabled)
Active: active (running)
```
Verify the installed version with `nym-vpnc info`:
```sh
nym-vpnc info
```
```sh
nym-vpnd:
version: 1.25.0
build_timestamp (utc): 2026-03-02 16:25:31.229479864 +00:00:00
triple: aarch64-unknown-linux-gnu
platform: Ubuntu; Linux (Ubuntu 24.04); aarch64
git_commit: fce7a84e612b8d2cb48b66695cdaf023d7f9a42b
```
## Build from Source
### Prerequisites
All operating systems require both [Rust](https://www.rust-lang.org/tools/install) and [Go](https://go.dev/doc/install).
**Arch specific packages:**
```sh
yay -S gcc make protobuf base-devel clang
```
**Ubuntu24 specific packages:**
```sh
apt install gcc make protobuf-compiler pkconfig libdbus-1-dev build-essential clang
```
<Callout type="warning" emoji="⚠️">
Older Debian/Ubuntu versions need to manually install `protobuf-compiler` >= v3.21.12
</Callout>
### Clone & `make`
```sh
git clone https://github.com/nymtech/nym-vpn-client.git
cd nym-vpn-client/
make
```
## Start the Daemon
If you installed via `.deb` packages, the daemon is already running as a systemd service. You can check its status with:
```sh
service nym-vpnd status
```
If you are running from pre-built binaries or a source build, start the daemon manually:
```sh
sudo ./PATH/TO/nym-vpnd
```
<Callout type="info">
Leave the daemon running and run `nym-vpnc` commands in a separate terminal window.
</Callout>
## Account Setup
### Create an Account
Head to [https://nym.com/account/create](https://nym.com/account/create) and obtain a passphrase (mnemonic).
### Log In
Store your account passphrase on this device:
```sh
nym-vpnc account set "<YOUR_PASSPHRASE>"
```
### Check Account Status
Verify that the device is logged in and view account details:
```sh
nym-vpnc account get
```
Example output:
```sh
Account identity: n1wlmrpa7ts7znz7nxvmxevaw65796cr6q6pht69
Canonical Account identity: n1wlmrpa7ts7znz7nxvmxevaw65796cr6q6pht69
Account mode: Some(Api)
Account state: Error(BandwidthExceeded { context: "SYNCING_STATE" })
```
### Account Summary & Balance
```sh
nym-vpnc account summary
nym-vpnc account balance
```
### Account Links
Get URLs for managing your NymVPN account:
```sh
nym-vpnc account links
```
### Forget Account
Remove the stored passphrase, device keys, and local credentials from this device:
```sh
nym-vpnc account forget
```
### Device Information
View the current device identity:
```sh
nym-vpnc device get
```
## Tunnel Configuration
Print current tunnel configuration:
```sh
nym-vpnc tunnel get
```
Enable two-hop mode (WireGuard): traffic jumps directly from entry gateway to exit gateway:
```sh
nym-vpnc tunnel set --two-hop on
```
Enable Mixnet (5-hop): disable two-hop to route traffic through the full mixnet for maximum privacy:
```sh
nym-vpnc tunnel set --two-hop off
```
Enable or disable IPv6:
```sh
nym-vpnc tunnel set --ipv6 on
```
Enable censorship circumvention transports (currently QUIC):
```sh
nym-vpnc tunnel set --circumvention-transports on
```
<Callout type="info">
Run `nym-vpnc tunnel set --help` for all available tunnel options including mixnet timing parameters.
</Callout>
## Gateway Configuration
Set entry and exit gateways bound to specific countries using [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes:
```sh
nym-vpnc gateway set --entry-country US --exit-country JP
```
Print current gateway configuration:
```sh
nym-vpnc gateway get
```
Example output:
```sh
Entry point: Country { two_letter_iso_country_code: "US" }
Exit point: Country { two_letter_iso_country_code: "JP" }
Residential exit: off
```
Only use residential exit nodes:
```sh
nym-vpnc gateway set --residential-exit on
```
### List Available Gateways
List available WireGuard gateways (use a wide terminal window for the table output):
```sh
nym-vpnc gateway list wg
```
You can also list mixnet entry and exit gateways:
```sh
nym-vpnc gateway list mixnet-entry
nym-vpnc gateway list mixnet-exit
```
## Connect & Disconnect
Connect using the settings stored in `nym-vpnd`:
```sh
nym-vpnc connect
```
Disconnect:
```sh
nym-vpnc disconnect
```
Reconnect:
```sh
nym-vpnc reconnect
```
Print the current tunnel status:
```sh
nym-vpnc status
```
Continuously stream tunnel status in real time:
```sh
nym-vpnc status --listen
```
## Ad-Block
NymVPN includes a built-in ad-blocker (Brave ad-engine). Ad-blocking is only active while the tunnel is connected.
Enable ad-block:
```sh
nym-vpnc ad-block set enabled
```
Disable ad-block:
```sh
nym-vpnc ad-block set disabled
```
<Callout type="info">
You can test ad-blocking with [adblock.turtlecute.org](https://adblock.turtlecute.org/). Some browsers cache DNS internally, so toggling ad-block on/off at runtime may not have an immediate effect; a browser restart may be needed. Use `nslookup` or `dig` to verify that domains are being blocked.
</Callout>
## DNS
View current DNS configuration:
```sh
nym-vpnc dns get
nym-vpnc dns get-default
```
Set custom DNS servers:
```sh
nym-vpnc dns set 1.1.1.1 9.9.9.9
nym-vpnc dns enable
```
Disable custom DNS and revert to defaults:
```sh
nym-vpnc dns disable
```
Clear custom DNS servers:
```sh
nym-vpnc dns clear
```
## Local Network Access
Control whether local network (LAN) traffic is allowed while the tunnel is active:
```sh
nym-vpnc lan get
nym-vpnc lan set allow
nym-vpnc lan set block
```
## SOCKS5 Proxy
NymVPN can expose a local SOCKS5 proxy:
```sh
nym-vpnc socks5 enable
nym-vpnc socks5 disable
nym-vpnc socks5 status
```
## Network
View or change the Nym network (requires a daemon restart):
```sh
nym-vpnc network get
nym-vpnc network set mainnet
```
## Diagnostic
Run connectivity diagnostics:
```sh
nym-vpnc diagnostic run
```
## Getting Help
Any `nym-vpnc` command has built-in help. Add `--help` to the end of any command to view available options:
```sh
nym-vpnc --help
nym-vpnc connect --help
nym-vpnc tunnel set --help
```
## Default Config Directories
Configurations are stored in `/etc/nym`. State stored between runs (keys, mnemonic, etc) are stored in `/var/lib/nym-vpnd`.