dnctl 0.1.2__py3-none-any.whl
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.
- dnctl-0.1.2.dist-info/METADATA +124 -0
- dnctl-0.1.2.dist-info/RECORD +7 -0
- dnctl-0.1.2.dist-info/WHEEL +5 -0
- dnctl-0.1.2.dist-info/entry_points.txt +2 -0
- dnctl-0.1.2.dist-info/licenses/LICENSE +21 -0
- dnctl-0.1.2.dist-info/top_level.txt +1 -0
- dnctl.py +3297 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dnctl
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Manage your DevNomads services from the command line
|
|
5
|
+
Author-email: DevNomads <support@devnomads.nl>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: typer>=0.12
|
|
11
|
+
Requires-Dist: httpx>=0.27
|
|
12
|
+
Requires-Dist: rich>=13
|
|
13
|
+
Requires-Dist: cryptography>=42
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# dnctl
|
|
17
|
+
|
|
18
|
+
Manage your [DevNomads](https://devnomads.nl) services from the
|
|
19
|
+
command line: inspect your services, manage DNS zones and records,
|
|
20
|
+
and move zones over from other providers - from a shell or a script.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
pip install dnctl
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
For a global, isolated install (recommended on workstations), use
|
|
29
|
+
[uv](https://docs.astral.sh/uv/) or pipx instead - same result, no
|
|
30
|
+
interference with system packages:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
uv tool install dnctl # or: pipx install dnctl
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Enable shell completion (bash, zsh, fish, PowerShell):
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
dnctl --install-completion
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Getting started
|
|
43
|
+
|
|
44
|
+
Create an API key in the [DevNomads
|
|
45
|
+
portal](https://portal.devnomads.nl) under **Profiel -> API
|
|
46
|
+
Sleutels**, then store it:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
dnctl configure
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The key is written to `~/.config/dnctl/credentials`, readable only
|
|
53
|
+
by you. From here every command works:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
dnctl services list
|
|
57
|
+
dnctl domains list
|
|
58
|
+
dnctl containers show <id>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Every DevNomads product has its own command group - `apps`,
|
|
62
|
+
`buckets`, `containers`, `databases`, `domains`, `emails`,
|
|
63
|
+
`forwards`, `proxies`, `servers`, `sites` and more. Explore with
|
|
64
|
+
`dnctl --help` and `dnctl <group> --help`.
|
|
65
|
+
|
|
66
|
+
Commands accept any unambiguous prefix: `dnctl e l` is `dnctl emails
|
|
67
|
+
list`. An ambiguous prefix lists the candidates.
|
|
68
|
+
|
|
69
|
+
## Managing DNS
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
dnctl dns zones list
|
|
73
|
+
dnctl dns zones show example.com
|
|
74
|
+
dnctl dns records list example.com
|
|
75
|
+
dnctl dns records set example.com www A 192.0.2.1 --ttl 3600
|
|
76
|
+
dnctl dns records delete example.com www A
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Moving a zone from another provider
|
|
80
|
+
|
|
81
|
+
`dnctl dns transfer` copies a zone from your current DNS provider
|
|
82
|
+
into DevNomads. It reads the records at the source (never writes
|
|
83
|
+
there), shows you the changes, and applies them after confirmation:
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
dnctl configure --provider transip # store source credentials
|
|
87
|
+
dnctl dns transfer --from transip --zone example.com --dry-run
|
|
88
|
+
dnctl dns transfer --from transip --zone example.com
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Supported source providers: TransIP and AuroraDNS. The zone must
|
|
92
|
+
already exist at DevNomads; register or transfer the domain in the
|
|
93
|
+
portal first.
|
|
94
|
+
|
|
95
|
+
## Multiple accounts
|
|
96
|
+
|
|
97
|
+
Store each account as a named profile and select it per command or
|
|
98
|
+
per shell:
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
dnctl configure --profile acme
|
|
102
|
+
dnctl services list --profile acme
|
|
103
|
+
export DN_PROFILE=acme
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Scripting
|
|
107
|
+
|
|
108
|
+
Output is a human-readable table on a terminal and JSON when piped,
|
|
109
|
+
so pipelines get parseable output without any flags; `--output
|
|
110
|
+
json|table` forces either. Data goes to stdout, everything else
|
|
111
|
+
(warnings, prompts, status messages) to stderr, so `dnctl ... | jq .`
|
|
112
|
+
is always safe.
|
|
113
|
+
|
|
114
|
+
In CI and pipelines, skip the credentials file and pass the key via
|
|
115
|
+
the environment:
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
export DN_API_KEY=... # beats any stored profile
|
|
119
|
+
dnctl services list | jq -r '.[].entity'
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## License
|
|
123
|
+
|
|
124
|
+
MIT.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
dnctl.py,sha256=rhIdCTaeYRPQsz5g_FaOJETVhM8omcE_ObEhHjNZS6o,98832
|
|
2
|
+
dnctl-0.1.2.dist-info/licenses/LICENSE,sha256=WPXQ_lmpr3tVzTD9Z6VTiBgFnFey-cEwEYoG4HlmbxY,1066
|
|
3
|
+
dnctl-0.1.2.dist-info/METADATA,sha256=Gyp99st8qpOlRu1-rOnKrITkCgKuWluy3GFByo9CvpA,3180
|
|
4
|
+
dnctl-0.1.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
5
|
+
dnctl-0.1.2.dist-info/entry_points.txt,sha256=_RGUXKln4rYalUcEMTDDAE1KHye_7unnmyJcfMrtA8U,36
|
|
6
|
+
dnctl-0.1.2.dist-info/top_level.txt,sha256=3OH9HxRLM_ydphcJH0dwflq2jZq68CY8w0ysTO2DzV8,6
|
|
7
|
+
dnctl-0.1.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DevNomads
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dnctl
|