Skip to main content

v6ctl

The official CLI for the v6Node API. Deploy and manage VPS nodes and their resources with Rich tables or script operations with --json.

pipx install v6ctl
v6ctl login
v6ctl nodes list

Contributors: this package is published to PyPI. README.md becomes the public project description and the wheel ships v6ctl.py in full, so code comments and --help text are public too. ./release.sh verify scans the built artifacts for internal host names, site codes, CPU models and algorithms, and refuses to publish if it finds any.

Install

pipx install v6ctl     # recommended — isolated, upgradable
pip install v6ctl      # works too

No pipx? brew install pipx (macOS), sudo apt install pipx (Debian/Ubuntu), or python3 -m pip install --user pipx && python3 -m pipx ensurepath.

Shell completion

Enable Tab completion once for your default shell (Zsh, Bash 4.4+, or Fish):

v6ctl completion --install

Open a new terminal, then try Tab after v6ctl --profi, v6ctl --profile , or v6ctl nodes . Commands, options, choices, and local profile names complete offline. Node names, projects, SSH keys, regions, plans, and templates use a short-lived per-account cache. A cold cache may require a few quick reads. Node suggestions include region and project when available. Run v6ctl nodes list to populate the node cache with your full inventory.

The installer uses $SHELL. To choose explicitly, pass zsh, bash, or fish, as in v6ctl completion zsh --install. It registers completion in $ZDOTDIR/.zshrc (or ~/.zshrc), ~/.bashrc, or Fish's user completions directory. If you use Bash as a login shell, have your login profile source ~/.bashrc. Run v6ctl completion zsh without --install to print the script for manual setup.

Configure

Get a token from the v6Node dashboard, then:

v6ctl login

Login prompts for the token without echoing it, checks it against the API, and stores it in ~/.config/v6ctl/config.json with mode 0600. Use v6ctl login --token-stdin to read it from a secret manager in automation. Use v6ctl doctor to check the active endpoint, authentication, and node read access. You can also set V6_TOKEN in your environment.

The API refuses every request with EMAIL_NOT_VERIFIED until the account's email address is verified in the panel.

Several accounts

Give each extra account a named profile. Commands without --profile keep using the token set above.

v6ctl --profile work login
v6ctl --profile work nodes list
V6_PROFILE=work v6ctl nodes list      # same, for a whole shell or script
v6ctl profiles                       # list configured names
v6ctl --json profiles                # names as a JSON array

An unknown profile name fails and lists the profiles you have, so a typo never falls back to the wrong account. Environment overrides still take precedence over a named profile. Run v6ctl --profile work config show to see the effective API URL and credential source. Write confirmations show this information too.

Print the active context or switch just this terminal:

v6ctl context
eval "$(v6ctl context use work)"
unset V6_PROFILE

In Fish, use v6ctl context use work --shell fish | source and set -e V6_PROFILE to return to the top-level settings. Environment token and URL overrides remain active when you switch profiles. To verify and save a token for a custom API endpoint, use v6ctl --profile work login --api-url URL.

Recipes

Deploy a node in one line

v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13

Add --wait to block until the deploy has finished and the node is running. It exits non-zero if the deploy failed or did not finish within --timeout seconds (default 600). rebuild, start, stop, shutdown and reboot take the same flags; the power commands wait until the node is in the target state, which counts as done if it already was. delete does not: the API cannot observe when the VM is gone, so subscribe to the node.deleted webhook instead. reboot --wait needs a node that has been running for at least a minute, since it confirms the reboot by uptime starting over; otherwise it refuses before sending anything.

Run v6ctl nodes create in a terminal to pick any missing settings and review the order before submitting. Save defaults for repeated deploys:

v6ctl --profile work config defaults --region frankfurt-2 --plan 8gb --template debian-13 --key laptop
v6ctl --profile work nodes create --hostname web-01 --wait

Explicit flags override saved defaults. Scripts stay explicit unless they use --use-defaults. Use --yes to skip the interactive order review. Use --hostname or -H to name a node. Existing -h web-01 commands still work, and nodes create -h opens help.

Pay for a node

On an account that pays per node, the order is paid one of two ways:

  • Saved payment method. If the token was created with "Pay orders from this token with my saved payment method" and the account has a default payment method and a billing address, the order is charged at once and the node deploys as usual (--wait works). nodes create prints one line saying so.
  • Checkout link. Otherwise nodes create prints a checkout link, when it expires (30 minutes) and why the order was not charged at once. The node deploys once you pay there. Until then nodes show reports the node as not found.
v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13 --billing-term annual

--billing-term is month (default) or annual; a plan that is not sold for that term is refused. --wait does not wait for an unpaid order: it prints the link and exits non-zero. With --json, the order (status: awaiting_payment, checkout_url, checkout_expires_at) is printed to stdout in every case. Do not run create again for an order you have not paid: that opens a second order. To retry a create whose answer you never saw, pass the same --idempotency-key both times.

If create fails with PAYMENT_STATE_UNCLEAR, do not retry: the charge may have gone through. Contact support with the pay_id the error shows.

Add a dedicated IPv4 at deploy

v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13 \
  --address dedicated_ipv4

Pin a specific image build with --flavor <id>.

Manage addresses after deploy

v6ctl nodes addresses <pay-id>                  # existing list shorthand
v6ctl nodes addresses add <pay-id> dedicated_ipv4      # asks first; --yes skips
v6ctl nodes addresses add <pay-id> public_ipv6
v6ctl nodes addresses add <pay-id> routed_ipv6
v6ctl nodes addresses delete <pay-id> <address-id>

dedicated_ipv4 is billable, so add asks before allocating it. Pass --yes to skip the question; without a terminal (scripts, CI, --json) --yes is required. Routed IPv6 allocation is asynchronous and has no --wait: the API lists the prefix before its route is in place, so watch the address.created / address.allocation_failed webhook events instead. Shared IPv4 is not offered. If an add or delete returns HYPERVISOR_ERROR, list the addresses before doing anything else—the allocation or release may already be committed.

Manage reverse DNS

v6ctl nodes addresses rdns list <node>
v6ctl nodes addresses rdns set <node> <address-id> mail.example.com
v6ctl nodes addresses rdns set <node> <address-id> mail.example.com --ip 2001:db8::25
v6ctl nodes addresses rdns delete <node> <address-id> --ip 2001:db8::25

Reverse DNS must be enabled for the account. The hostname must already have an A or AAAA record pointing at the IP. Use --ip to choose a specific address inside an IPv6 subnet or routed prefix. Set and delete prompt before writing. For automation, pass --yes with the full node ID.

Group nodes into projects

v6ctl projects
v6ctl projects create --description production
v6ctl nodes list --project production
v6ctl nodes update <pay-id> --project production
v6ctl nodes update <pay-id> --no-project
v6ctl projects rename <project-id> --description web
v6ctl projects delete <project-id>

The --project flag takes an ID or name. Deleting a project moves its nodes to the default project.

Inspect a node, including every IP

v6ctl nodes show <node>
v6ctl nodes list -A          # every address per node
v6ctl --wide nodes           # every column, full IDs, never trimmed

Tables fit your terminal: less important columns step aside when it is narrow (the footer names them), and nothing that is shown is ever cut off.

Connect to a node

v6ctl ssh web-01 --user root
v6ctl ssh web-01 --user root --family ipv6 --print

v6ctl nodes show and v6ctl ssh open a node picker when you omit the node in a terminal. If a name matches more than one node, you can choose between the matches. Scripts continue to receive an ambiguity error. SSH uses the system OpenSSH client and its usual host-key checks. Choose an address with --address IP when the node has multiple eligible addresses, or pick one interactively. --print and --json show the command without connecting.

Search nodes and page through results

v6ctl nodes list --search web
v6ctl --json nodes list --search web --page 2 --per-page 25
v6ctl --json nodes list --all
v6ctl nodes activity <node> --limit 50

Search matches hostname, description, or an exact full node ID. The default human-readable list fetches every page. The default JSON list returns the first API page and its pagination metadata. With --all, JSON returns every matching item and the combined meta.total.

Refer to a node by short ID or hostname

Any command that takes a node accepts the full ID, the short ID that nodes list shows (8+ characters), or the hostname:

v6ctl nodes reboot 3f2a9c1e --wait
v6ctl nodes show web-1.example.com
v6ctl nodes show name:3f2a9c1e   # force a hostname that looks like an ID

If a short ID or hostname could mean more than one node, the command stops and lists them. --yes only accepts the full ID, so unattended scripts never act on whatever a name happens to match.

Manage SSH keys

v6ctl keys list
v6ctl keys create -d "laptop" -k "ssh-ed25519 AAAA..."
v6ctl keys rename <key-id> -d "work laptop"
v6ctl keys delete <key-id>

Renaming a key preserves its public key material.

Manage snapshots

v6ctl nodes snapshots list <node>
v6ctl nodes snapshots create <node> -d "Before upgrade"
v6ctl nodes snapshots rollback <node> <snapshot-id>
v6ctl nodes snapshots delete <node> <snapshot-id>

Snapshot writes are queued. Check the snapshot list or subscribe to snapshot webhooks for outcomes. Rolling back can discard newer guest data and requires a token with nodes.delete.

Upgrade a plan or change its billing period

v6ctl nodes upgrade preview <node> --plan <plan-id>
v6ctl nodes upgrade apply <node> --plan <plan-id> --yes
v6ctl nodes billing-term preview <node>
v6ctl nodes billing-term change <node> --term annual --yes

Run the matching preview first when scripting. Interactively, omit --yes to display a fresh quote before confirming. The quote expires after an hour. Actual proration can vary with timing, tax or account credits. Use the full node ID with --yes.

If the upgrade prints a payment link, follow it to review and confirm the upgrade in the panel. Billing-period changes require a token that allows charges. Check nodes activity for the outcome of a queued change. Use the same --idempotency-key when retrying a request whose response was lost. If the API reports PAYMENT_STATE_UNCLEAR, contact support.

Manage storage

v6ctl storage list
v6ctl storage create <node> --name Data --size-gb 50 --billing-term monthly
v6ctl storage grow <volume-id> --size-gb 100
v6ctl storage detach <volume-id>
v6ctl storage attach <volume-id> <node>
v6ctl storage delete <volume-id>

Storage requires account access and the storage.read or storage.write scope. Create and grow may charge the saved payment method. Unmount a volume inside its guest before moving or detaching it. Detaching keeps the subscription active. Deleting removes the data and ends billing. --auto-format requests formatting and mounting after creation. Check nodes activity for its result. If a new volume could not be attached, the response still contains its ID so you can attach it later.

Manage domains and request BGP sessions

v6ctl domains list
v6ctl domains create <node> --port 8080
v6ctl domains delete <domain-id>
v6ctl bgp-sessions list
v6ctl bgp-sessions create <node> --asn AS64500 --prefix 2001:db8::/48
v6ctl bgp-sessions show <session-id>

Domain commands require the domains.read or domains.write scope. Add --domain to request a custom hostname after configuring its DNS records. Domain publication and removal outcomes appear in node activity. BGP requests require account access and remain pending until support reviews them. Repeat --prefix for multiple prefixes.

For an active session, repeat --prefix for every prefix you want to retain or add. The CLI can preview the diff before submission:

v6ctl bgp-sessions prefixes <session-id> --prefix 2001:db8::/48 --dry-run
v6ctl bgp-sessions prefixes <session-id> --prefix 2001:db8::/48

Prefix changes must be enabled for the account. Active prefixes stay in place until support applies the request. bgp-sessions show displays pending additions and removals. Submitting the current active list withdraws a pending change.

Subscribe a webhook to deploy events

v6ctl webhooks create -u https://example.com/hook -e node.deployed

Browse the catalog

v6ctl plans          # plans + pricing
v6ctl regions        # available regions
v6ctl templates      # OS templates and flavors

Script it

v6ctl --json nodes list | jq '.items[].pay_id'
v6ctl --json plans      | jq '.[] | select(.memory_mb >= 4096)'

Every command supports --json and exits non-zero on failure. In non-interactive mode (pipe, CI, or --json), prompts are disabled and missing required flags are an error — so CI fails fast instead of hanging.

v6ctl --help and v6ctl <command> --help are the source of truth for every flag.

Configuration precedence

Source Priority
--flag on the command line 1 (highest)
Env vars (V6_TOKEN, V6_API_URL) 2
Selected profile (--profile or V6_PROFILE) in the config file 3
Config file top-level settings 4
Built-in defaults 5 (lowest)
v6ctl config show       # resolved config, token redacted
v6ctl config path
v6ctl config set api_url https://cloud.v6node.com/api/v1
v6ctl config unset token

Requirements

Python 3.10 or newer.

License

MIT — see LICENSE.

Metadata

Release files for v6ctl 0.14.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for v6ctl 0.14.0
File Size Uploaded Provenance Actions
v6ctl-0.14.0.tar.gz 74.1 kB Without provenance Details for v6ctl-0.14.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for v6ctl 0.14.0
File Interpreter ABI Platform Actions
v6ctl-0.14.0-py3-none-any.whl Python 3 none any Details for v6ctl-0.14.0-py3-none-any.whl

Total release size: 124.0 kB

Release files / v6ctl-0.14.0.tar.gz

Download URL v6ctl-0.14.0.tar.gz
Size 74.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0ec14be2195911cc208edd67750de85fa42230ac68b33a2ba564bf7c582b9426
BLAKE2b-256 checksum
How to use checksums
2bc2a12fbdb130eb0b53a314f5239f1a6b7550aee84317d3f9843055786de826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / v6ctl-0.14.0-py3-none-any.whl

Download URL v6ctl-0.14.0-py3-none-any.whl
Size 50.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
195eb283a2b276c076b2bc4f149943deaf18f943812e9fd2a75acd3176274aa5
BLAKE2b-256 checksum
How to use checksums
624c3d9b02401b3056ad63b68f5a6e45c9fe109b1821cca0b6e0524ca351545c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for v6ctl 0.14.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page