v6ctl 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
v6ctl-0.3.1/PKG-INFO ADDED
@@ -0,0 +1,149 @@
1
+ Metadata-Version: 2.4
2
+ Name: v6ctl
3
+ Version: 0.3.1
4
+ Summary: The official CLI for the v6Node API.
5
+ Author-email: v6Node <support@v6node.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://v6node.com
8
+ Project-URL: Repository, https://github.com/v6Node/v6ctl
9
+ Project-URL: Issues, https://github.com/v6Node/v6ctl/issues
10
+ Keywords: v6node,cloud,vps,cli,hosting
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: System Administrators
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: System :: Systems Administration
23
+ Classifier: Topic :: Utilities
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Requires-Dist: click>=8.1
28
+ Requires-Dist: rich>=13.0
29
+ Requires-Dist: rich-click>=1.7
30
+ Requires-Dist: requests>=2.31
31
+ Dynamic: license-file
32
+
33
+ # v6ctl
34
+
35
+ The official CLI for the [v6Node](https://v6node.com) API. Deploy and manage VPS nodes, SSH keys, and webhooks — interactively with Rich tables, or scripted with `--json`.
36
+
37
+ ```bash
38
+ pipx install v6ctl
39
+ v6ctl config set token v6_...
40
+ v6ctl nodes list
41
+ ```
42
+
43
+ ## Install
44
+
45
+ ```bash
46
+ pipx install v6ctl # recommended — isolated, upgradable
47
+ pip install v6ctl # works too
48
+ ```
49
+
50
+ No pipx? `brew install pipx` (macOS), `sudo apt install pipx` (Debian/Ubuntu),
51
+ or `python3 -m pip install --user pipx && python3 -m pipx ensurepath`.
52
+
53
+ ## Configure
54
+
55
+ Get a token from the [v6Node dashboard](https://cloud.v6node.com), then:
56
+
57
+ ```bash
58
+ v6ctl config set token v6_...
59
+ ```
60
+
61
+ Stored at `~/.config/v6ctl/config.json` with mode `0600`. Or set `V6_TOKEN` in
62
+ your environment.
63
+
64
+ ## Recipes
65
+
66
+ ### Deploy a node in one line
67
+
68
+ ```bash
69
+ v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13
70
+ ```
71
+
72
+ Or run `v6ctl nodes create` on a TTY and answer the prompts. Each of
73
+ `--region`, `--plan`, `--key`, `--template` takes an ID, slug, or name —
74
+ whichever you remember.
75
+
76
+ ### Add a dedicated IPv4 at deploy
77
+
78
+ ```bash
79
+ v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13 \
80
+ --address dedicated_ipv4
81
+ ```
82
+
83
+ Pin a specific image build with `--flavor <id>`.
84
+
85
+ ### Inspect a node, including every IP
86
+
87
+ ```bash
88
+ v6ctl nodes show <pay-id>
89
+ v6ctl nodes list -A # show all IPs (default truncates to 2)
90
+ ```
91
+
92
+ ### Manage SSH keys
93
+
94
+ ```bash
95
+ v6ctl keys list
96
+ v6ctl keys create -d "laptop" -k "ssh-ed25519 AAAA..."
97
+ ```
98
+
99
+ ### Subscribe a webhook to deploy events
100
+
101
+ ```bash
102
+ v6ctl webhooks create -u https://example.com/hook -e node.deployed
103
+ ```
104
+
105
+ ### Browse the catalog
106
+
107
+ ```bash
108
+ v6ctl plans # plans + pricing
109
+ v6ctl regions # available regions
110
+ v6ctl templates # OS templates and flavors
111
+ ```
112
+
113
+ ### Script it
114
+
115
+ ```bash
116
+ v6ctl --json nodes list | jq '.items[].pay_id'
117
+ v6ctl --json plans | jq '.[] | select(.memory_mb >= 4096)'
118
+ ```
119
+
120
+ Every command supports `--json` and exits non-zero on failure. In
121
+ non-interactive mode (pipe, CI, or `--json`), prompts are disabled and
122
+ missing required flags are an error — so CI fails fast instead of hanging.
123
+
124
+ `v6ctl --help` and `v6ctl <command> --help` are the source of truth for
125
+ every flag.
126
+
127
+ ## Configuration precedence
128
+
129
+ | Source | Priority |
130
+ | --- | --- |
131
+ | `--flag` on the command line | 1 (highest) |
132
+ | Env vars (`V6_TOKEN`, `V6_API_URL`) | 2 |
133
+ | Config file `~/.config/v6ctl/config.json` (mode `0600`) | 3 |
134
+ | Built-in defaults | 4 (lowest) |
135
+
136
+ ```bash
137
+ v6ctl config show # resolved config, token redacted
138
+ v6ctl config path
139
+ v6ctl config set api_url https://cloud.v6node.com/api/v1
140
+ v6ctl config unset token
141
+ ```
142
+
143
+ ## Requirements
144
+
145
+ Python 3.10 or newer.
146
+
147
+ ## License
148
+
149
+ MIT — see [LICENSE](LICENSE).
v6ctl-0.3.1/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # v6ctl
2
+
3
+ The official CLI for the [v6Node](https://v6node.com) API. Deploy and manage VPS nodes, SSH keys, and webhooks — interactively with Rich tables, or scripted with `--json`.
4
+
5
+ ```bash
6
+ pipx install v6ctl
7
+ v6ctl config set token v6_...
8
+ v6ctl nodes list
9
+ ```
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pipx install v6ctl # recommended — isolated, upgradable
15
+ pip install v6ctl # works too
16
+ ```
17
+
18
+ No pipx? `brew install pipx` (macOS), `sudo apt install pipx` (Debian/Ubuntu),
19
+ or `python3 -m pip install --user pipx && python3 -m pipx ensurepath`.
20
+
21
+ ## Configure
22
+
23
+ Get a token from the [v6Node dashboard](https://cloud.v6node.com), then:
24
+
25
+ ```bash
26
+ v6ctl config set token v6_...
27
+ ```
28
+
29
+ Stored at `~/.config/v6ctl/config.json` with mode `0600`. Or set `V6_TOKEN` in
30
+ your environment.
31
+
32
+ ## Recipes
33
+
34
+ ### Deploy a node in one line
35
+
36
+ ```bash
37
+ v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13
38
+ ```
39
+
40
+ Or run `v6ctl nodes create` on a TTY and answer the prompts. Each of
41
+ `--region`, `--plan`, `--key`, `--template` takes an ID, slug, or name —
42
+ whichever you remember.
43
+
44
+ ### Add a dedicated IPv4 at deploy
45
+
46
+ ```bash
47
+ v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13 \
48
+ --address dedicated_ipv4
49
+ ```
50
+
51
+ Pin a specific image build with `--flavor <id>`.
52
+
53
+ ### Inspect a node, including every IP
54
+
55
+ ```bash
56
+ v6ctl nodes show <pay-id>
57
+ v6ctl nodes list -A # show all IPs (default truncates to 2)
58
+ ```
59
+
60
+ ### Manage SSH keys
61
+
62
+ ```bash
63
+ v6ctl keys list
64
+ v6ctl keys create -d "laptop" -k "ssh-ed25519 AAAA..."
65
+ ```
66
+
67
+ ### Subscribe a webhook to deploy events
68
+
69
+ ```bash
70
+ v6ctl webhooks create -u https://example.com/hook -e node.deployed
71
+ ```
72
+
73
+ ### Browse the catalog
74
+
75
+ ```bash
76
+ v6ctl plans # plans + pricing
77
+ v6ctl regions # available regions
78
+ v6ctl templates # OS templates and flavors
79
+ ```
80
+
81
+ ### Script it
82
+
83
+ ```bash
84
+ v6ctl --json nodes list | jq '.items[].pay_id'
85
+ v6ctl --json plans | jq '.[] | select(.memory_mb >= 4096)'
86
+ ```
87
+
88
+ Every command supports `--json` and exits non-zero on failure. In
89
+ non-interactive mode (pipe, CI, or `--json`), prompts are disabled and
90
+ missing required flags are an error — so CI fails fast instead of hanging.
91
+
92
+ `v6ctl --help` and `v6ctl <command> --help` are the source of truth for
93
+ every flag.
94
+
95
+ ## Configuration precedence
96
+
97
+ | Source | Priority |
98
+ | --- | --- |
99
+ | `--flag` on the command line | 1 (highest) |
100
+ | Env vars (`V6_TOKEN`, `V6_API_URL`) | 2 |
101
+ | Config file `~/.config/v6ctl/config.json` (mode `0600`) | 3 |
102
+ | Built-in defaults | 4 (lowest) |
103
+
104
+ ```bash
105
+ v6ctl config show # resolved config, token redacted
106
+ v6ctl config path
107
+ v6ctl config set api_url https://cloud.v6node.com/api/v1
108
+ v6ctl config unset token
109
+ ```
110
+
111
+ ## Requirements
112
+
113
+ Python 3.10 or newer.
114
+
115
+ ## License
116
+
117
+ MIT — see [LICENSE](LICENSE).
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "v6ctl"
7
7
  dynamic = ["version"]
8
- description = "The official CLI for the v6Node Reseller API."
8
+ description = "The official CLI for the v6Node API."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  license = { text = "MIT" }
@@ -0,0 +1,149 @@
1
+ Metadata-Version: 2.4
2
+ Name: v6ctl
3
+ Version: 0.3.1
4
+ Summary: The official CLI for the v6Node API.
5
+ Author-email: v6Node <support@v6node.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://v6node.com
8
+ Project-URL: Repository, https://github.com/v6Node/v6ctl
9
+ Project-URL: Issues, https://github.com/v6Node/v6ctl/issues
10
+ Keywords: v6node,cloud,vps,cli,hosting
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: System Administrators
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: System :: Systems Administration
23
+ Classifier: Topic :: Utilities
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Requires-Dist: click>=8.1
28
+ Requires-Dist: rich>=13.0
29
+ Requires-Dist: rich-click>=1.7
30
+ Requires-Dist: requests>=2.31
31
+ Dynamic: license-file
32
+
33
+ # v6ctl
34
+
35
+ The official CLI for the [v6Node](https://v6node.com) API. Deploy and manage VPS nodes, SSH keys, and webhooks — interactively with Rich tables, or scripted with `--json`.
36
+
37
+ ```bash
38
+ pipx install v6ctl
39
+ v6ctl config set token v6_...
40
+ v6ctl nodes list
41
+ ```
42
+
43
+ ## Install
44
+
45
+ ```bash
46
+ pipx install v6ctl # recommended — isolated, upgradable
47
+ pip install v6ctl # works too
48
+ ```
49
+
50
+ No pipx? `brew install pipx` (macOS), `sudo apt install pipx` (Debian/Ubuntu),
51
+ or `python3 -m pip install --user pipx && python3 -m pipx ensurepath`.
52
+
53
+ ## Configure
54
+
55
+ Get a token from the [v6Node dashboard](https://cloud.v6node.com), then:
56
+
57
+ ```bash
58
+ v6ctl config set token v6_...
59
+ ```
60
+
61
+ Stored at `~/.config/v6ctl/config.json` with mode `0600`. Or set `V6_TOKEN` in
62
+ your environment.
63
+
64
+ ## Recipes
65
+
66
+ ### Deploy a node in one line
67
+
68
+ ```bash
69
+ v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13
70
+ ```
71
+
72
+ Or run `v6ctl nodes create` on a TTY and answer the prompts. Each of
73
+ `--region`, `--plan`, `--key`, `--template` takes an ID, slug, or name —
74
+ whichever you remember.
75
+
76
+ ### Add a dedicated IPv4 at deploy
77
+
78
+ ```bash
79
+ v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13 \
80
+ --address dedicated_ipv4
81
+ ```
82
+
83
+ Pin a specific image build with `--flavor <id>`.
84
+
85
+ ### Inspect a node, including every IP
86
+
87
+ ```bash
88
+ v6ctl nodes show <pay-id>
89
+ v6ctl nodes list -A # show all IPs (default truncates to 2)
90
+ ```
91
+
92
+ ### Manage SSH keys
93
+
94
+ ```bash
95
+ v6ctl keys list
96
+ v6ctl keys create -d "laptop" -k "ssh-ed25519 AAAA..."
97
+ ```
98
+
99
+ ### Subscribe a webhook to deploy events
100
+
101
+ ```bash
102
+ v6ctl webhooks create -u https://example.com/hook -e node.deployed
103
+ ```
104
+
105
+ ### Browse the catalog
106
+
107
+ ```bash
108
+ v6ctl plans # plans + pricing
109
+ v6ctl regions # available regions
110
+ v6ctl templates # OS templates and flavors
111
+ ```
112
+
113
+ ### Script it
114
+
115
+ ```bash
116
+ v6ctl --json nodes list | jq '.items[].pay_id'
117
+ v6ctl --json plans | jq '.[] | select(.memory_mb >= 4096)'
118
+ ```
119
+
120
+ Every command supports `--json` and exits non-zero on failure. In
121
+ non-interactive mode (pipe, CI, or `--json`), prompts are disabled and
122
+ missing required flags are an error — so CI fails fast instead of hanging.
123
+
124
+ `v6ctl --help` and `v6ctl <command> --help` are the source of truth for
125
+ every flag.
126
+
127
+ ## Configuration precedence
128
+
129
+ | Source | Priority |
130
+ | --- | --- |
131
+ | `--flag` on the command line | 1 (highest) |
132
+ | Env vars (`V6_TOKEN`, `V6_API_URL`) | 2 |
133
+ | Config file `~/.config/v6ctl/config.json` (mode `0600`) | 3 |
134
+ | Built-in defaults | 4 (lowest) |
135
+
136
+ ```bash
137
+ v6ctl config show # resolved config, token redacted
138
+ v6ctl config path
139
+ v6ctl config set api_url https://cloud.v6node.com/api/v1
140
+ v6ctl config unset token
141
+ ```
142
+
143
+ ## Requirements
144
+
145
+ Python 3.10 or newer.
146
+
147
+ ## License
148
+
149
+ MIT — see [LICENSE](LICENSE).
@@ -44,7 +44,7 @@ click.rich_click.STYLE_COMMANDS_PANEL_BORDER = "dim"
44
44
  click.rich_click.STYLE_USAGE = "bold yellow"
45
45
  click.rich_click.MAX_WIDTH = 100
46
46
 
47
- __version__ = "0.3.0"
47
+ __version__ = "0.3.1"
48
48
 
49
49
  DEFAULT_API_URL = "https://cloud.v6node.com/api/v1"
50
50
 
v6ctl-0.3.0/PKG-INFO DELETED
@@ -1,158 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: v6ctl
3
- Version: 0.3.0
4
- Summary: The official CLI for the v6Node Reseller API.
5
- Author-email: v6Node <support@v6node.com>
6
- License: MIT
7
- Project-URL: Homepage, https://v6node.com
8
- Project-URL: Repository, https://github.com/v6Node/v6ctl
9
- Project-URL: Issues, https://github.com/v6Node/v6ctl/issues
10
- Keywords: v6node,cloud,vps,cli,hosting
11
- Classifier: Development Status :: 4 - Beta
12
- Classifier: Environment :: Console
13
- Classifier: Intended Audience :: Developers
14
- Classifier: Intended Audience :: System Administrators
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.10
19
- Classifier: Programming Language :: Python :: 3.11
20
- Classifier: Programming Language :: Python :: 3.12
21
- Classifier: Programming Language :: Python :: 3.13
22
- Classifier: Topic :: System :: Systems Administration
23
- Classifier: Topic :: Utilities
24
- Requires-Python: >=3.10
25
- Description-Content-Type: text/markdown
26
- License-File: LICENSE
27
- Requires-Dist: click>=8.1
28
- Requires-Dist: rich>=13.0
29
- Requires-Dist: rich-click>=1.7
30
- Requires-Dist: requests>=2.31
31
- Dynamic: license-file
32
-
33
- # v6ctl
34
-
35
- The official CLI for the [v6Node](https://v6node.com) Reseller API.
36
-
37
- Provision, manage, and script every reseller endpoint. Works interactively with Rich tables, or scripted with `--json` and proper exit codes.
38
-
39
- ```text
40
- $ v6ctl nodes list
41
- ╭────────────────────────────── Nodes ──────────────────────────────╮
42
- │ ID Hostname Region Plan OS IP │
43
- │ a0fd028d prod-web-1 Frankfurt Standard debian-13 5.1.2.3 │
44
- │ b12c444e staging-db Frankfurt Compute ubuntu-24 5.1.2.4 │
45
- ╰───────────────────────────────────────────────────────────────────╯
46
- ```
47
-
48
- ## Install
49
-
50
- ```bash
51
- pipx install v6ctl
52
- ```
53
-
54
- ### Don't have pipx?
55
-
56
- ```bash
57
- # macOS
58
- brew install pipx
59
-
60
- # Debian / Ubuntu
61
- sudo apt install pipx
62
-
63
- # Everywhere else
64
- python3 -m pip install --user pipx
65
- python3 -m pipx ensurepath
66
- ```
67
-
68
- Or use plain pip:
69
-
70
- ```bash
71
- pip install v6ctl
72
- ```
73
-
74
- ## Configure
75
-
76
- Get your API token from the [v6Node dashboard](https://cloud.v6node.com), then:
77
-
78
- ```bash
79
- v6ctl config set token v6_...
80
- ```
81
-
82
- Token is stored at `~/.config/v6ctl/config.json` with `0600` permissions.
83
-
84
- Alternatively, set `V6_TOKEN` in your environment.
85
-
86
- ## Use
87
-
88
- ```bash
89
- v6ctl nodes list # list your nodes
90
- v6ctl nodes show <pay-id> # full details for a node
91
- v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13
92
- v6ctl nodes create # run on a TTY → guided prompts
93
- v6ctl nodes reboot <pay-id>
94
- v6ctl nodes delete <pay-id>
95
-
96
- v6ctl keys list # list SSH keys
97
- v6ctl keys create -d "laptop" -k "ssh-ed25519 AAAA..."
98
-
99
- v6ctl webhooks create -u https://example.com/hook -e node.deployed
100
-
101
- v6ctl plans # available plans + pricing
102
- v6ctl regions # available regions
103
- v6ctl templates # available OS templates
104
- ```
105
-
106
- Run `v6ctl --help` or `v6ctl <command> --help` for the full reference.
107
-
108
- ### Friendly `nodes create`
109
-
110
- `--region`, `--plan`, and `--key` each accept a numeric ID, a short slug, a
111
- full slug, or an exact name. Numeric inputs are looked up as an ID first; if
112
- no such ID exists, the value falls through to a name/slug match so keys with
113
- numeric descriptions remain reachable.
114
-
115
- ```bash
116
- # All equivalent (assuming the IDs/slugs exist in your account):
117
- v6ctl nodes create -r 7 -p 14 -k 3
118
- v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop
119
- v6ctl nodes create -r frankfurt-2 -p node-8gb-g2 -k laptop
120
- v6ctl nodes create -r "Frankfurt 2" -p "Node 8GB G2" -k "My Laptop"
121
- ```
122
-
123
- Run `v6ctl nodes create` on a terminal with any flag omitted and you'll be
124
- prompted with the list of candidates. Omitting a flag in non-interactive
125
- mode (pipe, CI) or with `--json` is an error — scripts stay fail-fast.
126
-
127
- ## JSON output
128
-
129
- Every command supports `--json` for scripting:
130
-
131
- ```bash
132
- v6ctl --json nodes list | jq '.items[].pay_id'
133
- v6ctl --json plans | jq '.[] | select(.memory_mb >= 4096)'
134
- ```
135
-
136
- ## Configuration
137
-
138
- | Where | Precedence |
139
- | --- | --- |
140
- | `--flag` on the command line | 1 (highest) |
141
- | Environment variable (`V6_TOKEN`, `V6_API_URL`) | 2 |
142
- | Config file `~/.config/v6ctl/config.json` | 3 |
143
- | Built-in defaults | 4 (lowest) |
144
-
145
- ```bash
146
- v6ctl config show # show resolved config (token redacted)
147
- v6ctl config path # print config file path
148
- v6ctl config set api_url https://cloud.v6node.com/api/v1
149
- v6ctl config unset token
150
- ```
151
-
152
- ## Requirements
153
-
154
- - Python 3.10 or newer
155
-
156
- ## License
157
-
158
- MIT — see [LICENSE](LICENSE).
v6ctl-0.3.0/README.md DELETED
@@ -1,126 +0,0 @@
1
- # v6ctl
2
-
3
- The official CLI for the [v6Node](https://v6node.com) Reseller API.
4
-
5
- Provision, manage, and script every reseller endpoint. Works interactively with Rich tables, or scripted with `--json` and proper exit codes.
6
-
7
- ```text
8
- $ v6ctl nodes list
9
- ╭────────────────────────────── Nodes ──────────────────────────────╮
10
- │ ID Hostname Region Plan OS IP │
11
- │ a0fd028d prod-web-1 Frankfurt Standard debian-13 5.1.2.3 │
12
- │ b12c444e staging-db Frankfurt Compute ubuntu-24 5.1.2.4 │
13
- ╰───────────────────────────────────────────────────────────────────╯
14
- ```
15
-
16
- ## Install
17
-
18
- ```bash
19
- pipx install v6ctl
20
- ```
21
-
22
- ### Don't have pipx?
23
-
24
- ```bash
25
- # macOS
26
- brew install pipx
27
-
28
- # Debian / Ubuntu
29
- sudo apt install pipx
30
-
31
- # Everywhere else
32
- python3 -m pip install --user pipx
33
- python3 -m pipx ensurepath
34
- ```
35
-
36
- Or use plain pip:
37
-
38
- ```bash
39
- pip install v6ctl
40
- ```
41
-
42
- ## Configure
43
-
44
- Get your API token from the [v6Node dashboard](https://cloud.v6node.com), then:
45
-
46
- ```bash
47
- v6ctl config set token v6_...
48
- ```
49
-
50
- Token is stored at `~/.config/v6ctl/config.json` with `0600` permissions.
51
-
52
- Alternatively, set `V6_TOKEN` in your environment.
53
-
54
- ## Use
55
-
56
- ```bash
57
- v6ctl nodes list # list your nodes
58
- v6ctl nodes show <pay-id> # full details for a node
59
- v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13
60
- v6ctl nodes create # run on a TTY → guided prompts
61
- v6ctl nodes reboot <pay-id>
62
- v6ctl nodes delete <pay-id>
63
-
64
- v6ctl keys list # list SSH keys
65
- v6ctl keys create -d "laptop" -k "ssh-ed25519 AAAA..."
66
-
67
- v6ctl webhooks create -u https://example.com/hook -e node.deployed
68
-
69
- v6ctl plans # available plans + pricing
70
- v6ctl regions # available regions
71
- v6ctl templates # available OS templates
72
- ```
73
-
74
- Run `v6ctl --help` or `v6ctl <command> --help` for the full reference.
75
-
76
- ### Friendly `nodes create`
77
-
78
- `--region`, `--plan`, and `--key` each accept a numeric ID, a short slug, a
79
- full slug, or an exact name. Numeric inputs are looked up as an ID first; if
80
- no such ID exists, the value falls through to a name/slug match so keys with
81
- numeric descriptions remain reachable.
82
-
83
- ```bash
84
- # All equivalent (assuming the IDs/slugs exist in your account):
85
- v6ctl nodes create -r 7 -p 14 -k 3
86
- v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop
87
- v6ctl nodes create -r frankfurt-2 -p node-8gb-g2 -k laptop
88
- v6ctl nodes create -r "Frankfurt 2" -p "Node 8GB G2" -k "My Laptop"
89
- ```
90
-
91
- Run `v6ctl nodes create` on a terminal with any flag omitted and you'll be
92
- prompted with the list of candidates. Omitting a flag in non-interactive
93
- mode (pipe, CI) or with `--json` is an error — scripts stay fail-fast.
94
-
95
- ## JSON output
96
-
97
- Every command supports `--json` for scripting:
98
-
99
- ```bash
100
- v6ctl --json nodes list | jq '.items[].pay_id'
101
- v6ctl --json plans | jq '.[] | select(.memory_mb >= 4096)'
102
- ```
103
-
104
- ## Configuration
105
-
106
- | Where | Precedence |
107
- | --- | --- |
108
- | `--flag` on the command line | 1 (highest) |
109
- | Environment variable (`V6_TOKEN`, `V6_API_URL`) | 2 |
110
- | Config file `~/.config/v6ctl/config.json` | 3 |
111
- | Built-in defaults | 4 (lowest) |
112
-
113
- ```bash
114
- v6ctl config show # show resolved config (token redacted)
115
- v6ctl config path # print config file path
116
- v6ctl config set api_url https://cloud.v6node.com/api/v1
117
- v6ctl config unset token
118
- ```
119
-
120
- ## Requirements
121
-
122
- - Python 3.10 or newer
123
-
124
- ## License
125
-
126
- MIT — see [LICENSE](LICENSE).
@@ -1,158 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: v6ctl
3
- Version: 0.3.0
4
- Summary: The official CLI for the v6Node Reseller API.
5
- Author-email: v6Node <support@v6node.com>
6
- License: MIT
7
- Project-URL: Homepage, https://v6node.com
8
- Project-URL: Repository, https://github.com/v6Node/v6ctl
9
- Project-URL: Issues, https://github.com/v6Node/v6ctl/issues
10
- Keywords: v6node,cloud,vps,cli,hosting
11
- Classifier: Development Status :: 4 - Beta
12
- Classifier: Environment :: Console
13
- Classifier: Intended Audience :: Developers
14
- Classifier: Intended Audience :: System Administrators
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.10
19
- Classifier: Programming Language :: Python :: 3.11
20
- Classifier: Programming Language :: Python :: 3.12
21
- Classifier: Programming Language :: Python :: 3.13
22
- Classifier: Topic :: System :: Systems Administration
23
- Classifier: Topic :: Utilities
24
- Requires-Python: >=3.10
25
- Description-Content-Type: text/markdown
26
- License-File: LICENSE
27
- Requires-Dist: click>=8.1
28
- Requires-Dist: rich>=13.0
29
- Requires-Dist: rich-click>=1.7
30
- Requires-Dist: requests>=2.31
31
- Dynamic: license-file
32
-
33
- # v6ctl
34
-
35
- The official CLI for the [v6Node](https://v6node.com) Reseller API.
36
-
37
- Provision, manage, and script every reseller endpoint. Works interactively with Rich tables, or scripted with `--json` and proper exit codes.
38
-
39
- ```text
40
- $ v6ctl nodes list
41
- ╭────────────────────────────── Nodes ──────────────────────────────╮
42
- │ ID Hostname Region Plan OS IP │
43
- │ a0fd028d prod-web-1 Frankfurt Standard debian-13 5.1.2.3 │
44
- │ b12c444e staging-db Frankfurt Compute ubuntu-24 5.1.2.4 │
45
- ╰───────────────────────────────────────────────────────────────────╯
46
- ```
47
-
48
- ## Install
49
-
50
- ```bash
51
- pipx install v6ctl
52
- ```
53
-
54
- ### Don't have pipx?
55
-
56
- ```bash
57
- # macOS
58
- brew install pipx
59
-
60
- # Debian / Ubuntu
61
- sudo apt install pipx
62
-
63
- # Everywhere else
64
- python3 -m pip install --user pipx
65
- python3 -m pipx ensurepath
66
- ```
67
-
68
- Or use plain pip:
69
-
70
- ```bash
71
- pip install v6ctl
72
- ```
73
-
74
- ## Configure
75
-
76
- Get your API token from the [v6Node dashboard](https://cloud.v6node.com), then:
77
-
78
- ```bash
79
- v6ctl config set token v6_...
80
- ```
81
-
82
- Token is stored at `~/.config/v6ctl/config.json` with `0600` permissions.
83
-
84
- Alternatively, set `V6_TOKEN` in your environment.
85
-
86
- ## Use
87
-
88
- ```bash
89
- v6ctl nodes list # list your nodes
90
- v6ctl nodes show <pay-id> # full details for a node
91
- v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop -t debian-13
92
- v6ctl nodes create # run on a TTY → guided prompts
93
- v6ctl nodes reboot <pay-id>
94
- v6ctl nodes delete <pay-id>
95
-
96
- v6ctl keys list # list SSH keys
97
- v6ctl keys create -d "laptop" -k "ssh-ed25519 AAAA..."
98
-
99
- v6ctl webhooks create -u https://example.com/hook -e node.deployed
100
-
101
- v6ctl plans # available plans + pricing
102
- v6ctl regions # available regions
103
- v6ctl templates # available OS templates
104
- ```
105
-
106
- Run `v6ctl --help` or `v6ctl <command> --help` for the full reference.
107
-
108
- ### Friendly `nodes create`
109
-
110
- `--region`, `--plan`, and `--key` each accept a numeric ID, a short slug, a
111
- full slug, or an exact name. Numeric inputs are looked up as an ID first; if
112
- no such ID exists, the value falls through to a name/slug match so keys with
113
- numeric descriptions remain reachable.
114
-
115
- ```bash
116
- # All equivalent (assuming the IDs/slugs exist in your account):
117
- v6ctl nodes create -r 7 -p 14 -k 3
118
- v6ctl nodes create -r frankfurt-2 -p 8gb -k laptop
119
- v6ctl nodes create -r frankfurt-2 -p node-8gb-g2 -k laptop
120
- v6ctl nodes create -r "Frankfurt 2" -p "Node 8GB G2" -k "My Laptop"
121
- ```
122
-
123
- Run `v6ctl nodes create` on a terminal with any flag omitted and you'll be
124
- prompted with the list of candidates. Omitting a flag in non-interactive
125
- mode (pipe, CI) or with `--json` is an error — scripts stay fail-fast.
126
-
127
- ## JSON output
128
-
129
- Every command supports `--json` for scripting:
130
-
131
- ```bash
132
- v6ctl --json nodes list | jq '.items[].pay_id'
133
- v6ctl --json plans | jq '.[] | select(.memory_mb >= 4096)'
134
- ```
135
-
136
- ## Configuration
137
-
138
- | Where | Precedence |
139
- | --- | --- |
140
- | `--flag` on the command line | 1 (highest) |
141
- | Environment variable (`V6_TOKEN`, `V6_API_URL`) | 2 |
142
- | Config file `~/.config/v6ctl/config.json` | 3 |
143
- | Built-in defaults | 4 (lowest) |
144
-
145
- ```bash
146
- v6ctl config show # show resolved config (token redacted)
147
- v6ctl config path # print config file path
148
- v6ctl config set api_url https://cloud.v6node.com/api/v1
149
- v6ctl config unset token
150
- ```
151
-
152
- ## Requirements
153
-
154
- - Python 3.10 or newer
155
-
156
- ## License
157
-
158
- MIT — see [LICENSE](LICENSE).
File without changes
File without changes
File without changes
File without changes