v6ctl 0.1.2__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 +149 -0
- v6ctl-0.3.1/README.md +117 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/pyproject.toml +6 -2
- v6ctl-0.3.1/v6ctl.egg-info/PKG-INFO +149 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/v6ctl.egg-info/requires.txt +1 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/v6ctl.py +409 -62
- v6ctl-0.1.2/PKG-INFO +0 -137
- v6ctl-0.1.2/README.md +0 -106
- v6ctl-0.1.2/v6ctl.egg-info/PKG-INFO +0 -137
- {v6ctl-0.1.2 → v6ctl-0.3.1}/LICENSE +0 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/setup.cfg +0 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/v6ctl.egg-info/SOURCES.txt +0 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/v6ctl.egg-info/dependency_links.txt +0 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/v6ctl.egg-info/entry_points.txt +0 -0
- {v6ctl-0.1.2 → v6ctl-0.3.1}/v6ctl.egg-info/top_level.txt +0 -0
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).
|
|
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "v6ctl"
|
|
7
|
-
|
|
8
|
-
description = "The official CLI for the v6Node
|
|
7
|
+
dynamic = ["version"]
|
|
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" }
|
|
@@ -29,6 +29,7 @@ classifiers = [
|
|
|
29
29
|
dependencies = [
|
|
30
30
|
"click>=8.1",
|
|
31
31
|
"rich>=13.0",
|
|
32
|
+
"rich-click>=1.7",
|
|
32
33
|
"requests>=2.31",
|
|
33
34
|
]
|
|
34
35
|
|
|
@@ -42,3 +43,6 @@ v6ctl = "v6ctl:cli"
|
|
|
42
43
|
|
|
43
44
|
[tool.setuptools]
|
|
44
45
|
py-modules = ["v6ctl"]
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.dynamic]
|
|
48
|
+
version = { attr = "v6ctl.__version__" }
|
|
@@ -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).
|