devnomads-cli 0.3.0__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.
@@ -0,0 +1,148 @@
1
+ Metadata-Version: 2.4
2
+ Name: devnomads-cli
3
+ Version: 0.3.0
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
+ Requires-Dist: devnomads>=0.1
15
+ Provides-Extra: cert
16
+ Requires-Dist: devnomads[acme]>=0.1; extra == "cert"
17
+ Dynamic: license-file
18
+
19
+ # dncli
20
+
21
+ Manage your [DevNomads](https://devnomads.nl) services from the
22
+ command line: inspect your services, manage DNS zones and records,
23
+ and move zones over from other providers - from a shell or a script.
24
+
25
+ The command is **`dncli`** - named to avoid clashing with the macOS
26
+ `dnctl` traffic-shaper at `/usr/sbin/dnctl`. Install it from PyPI
27
+ as **`devnomads-cli`**.
28
+
29
+ ## Install
30
+
31
+ ```sh
32
+ pip install devnomads-cli
33
+ ```
34
+
35
+ For a global, isolated install (recommended on workstations), use
36
+ [uv](https://docs.astral.sh/uv/) or pipx instead - same result, no
37
+ interference with system packages:
38
+
39
+ ```sh
40
+ uv tool install devnomads-cli # or: pipx install devnomads-cli
41
+ ```
42
+
43
+ Enable shell completion (bash, zsh, fish, PowerShell):
44
+
45
+ ```sh
46
+ dncli --install-completion
47
+ ```
48
+
49
+ ## Getting started
50
+
51
+ Create an API key in the [DevNomads
52
+ portal](https://portal.devnomads.nl) under **Profiel -> API
53
+ Sleutels**, then store it:
54
+
55
+ ```sh
56
+ dncli configure
57
+ ```
58
+
59
+ The key is written to `~/.config/dnctl/credentials`, readable only
60
+ by you. From here every command works:
61
+
62
+ ```sh
63
+ dncli services list
64
+ dncli domains list
65
+ dncli containers show <id>
66
+ ```
67
+
68
+ Every DevNomads product has its own command group - `apps`,
69
+ `buckets`, `containers`, `databases`, `domains`, `emails`,
70
+ `forwards`, `proxies`, `servers`, `sites` and more. Explore with
71
+ `dncli --help` and `dncli <group> --help`.
72
+
73
+ Commands accept any unambiguous prefix: `dncli e l` is `dncli emails
74
+ list`. An ambiguous prefix lists the candidates.
75
+
76
+ ## Managing DNS
77
+
78
+ ```sh
79
+ dncli dns zones list
80
+ dncli dns zones show example.com
81
+ dncli dns records list example.com
82
+ dncli dns records set example.com www A 192.0.2.1 --ttl 3600
83
+ dncli dns records delete example.com www A
84
+ ```
85
+
86
+ ## Moving a zone from another provider
87
+
88
+ `dncli dns transfer` copies a zone from your current DNS provider
89
+ into DevNomads. It reads the records at the source (never writes
90
+ there), shows you the changes, and applies them after confirmation:
91
+
92
+ ```sh
93
+ dncli configure --provider transip # store source credentials
94
+ dncli dns transfer --from transip --zone example.com --dry-run
95
+ dncli dns transfer --from transip --zone example.com
96
+ ```
97
+
98
+ Supported source providers: TransIP and AuroraDNS. The zone must
99
+ already exist at DevNomads; register or transfer the domain in the
100
+ portal first.
101
+
102
+ ## Multiple accounts
103
+
104
+ Store each account as a named profile and select it per command or
105
+ per shell:
106
+
107
+ ```sh
108
+ dncli configure --profile acme
109
+ dncli services list --profile acme
110
+ export DN_PROFILE=acme
111
+ ```
112
+
113
+ ## Scripting
114
+
115
+ Output is a human-readable table on a terminal and JSON when piped,
116
+ so pipelines get parseable output without any flags; `--output
117
+ json|table` forces either. Data goes to stdout, everything else
118
+ (warnings, prompts, status messages) to stderr, so `dncli ... | jq .`
119
+ is always safe.
120
+
121
+ In CI and pipelines, skip the credentials file and pass the key via
122
+ the environment:
123
+
124
+ ```sh
125
+ export DN_API_KEY=... # beats any stored profile
126
+ dncli services list | jq -r '.[].entity'
127
+ ```
128
+
129
+ ## Certificates
130
+
131
+ The `cert` extra adds Let's Encrypt issuance over DNS-01 and HTTP-01:
132
+
133
+ ```sh
134
+ uv tool install "devnomads-cli[cert]"
135
+ dncli cert issue example.com -d "*.example.com"
136
+ ```
137
+
138
+ A dehydrated-compatible DNS-01 hook ships as `dncli-dns-hook`:
139
+
140
+ ```sh
141
+ # dehydrated/config
142
+ CHALLENGETYPE="dns-01"
143
+ HOOK="dncli-dns-hook"
144
+ ```
145
+
146
+ ## License
147
+
148
+ MIT.
@@ -0,0 +1,7 @@
1
+ dncli.py,sha256=ko7wnAVzPtKB5SqOSPcDi3KnlAYUkVHxWBoeBzEVuhg,108715
2
+ devnomads_cli-0.3.0.dist-info/licenses/LICENSE,sha256=WPXQ_lmpr3tVzTD9Z6VTiBgFnFey-cEwEYoG4HlmbxY,1066
3
+ devnomads_cli-0.3.0.dist-info/METADATA,sha256=1FCMVmmB4zdSQkXFIODUkmz8BD3DyKQu0G_JoJdtizI,3797
4
+ devnomads_cli-0.3.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
5
+ devnomads_cli-0.3.0.dist-info/entry_points.txt,sha256=irLaKiGtIzEKi87exmXAg0srUmoDK31fL0SlqJasAEU,69
6
+ devnomads_cli-0.3.0.dist-info/top_level.txt,sha256=rFWIJDQgL3jA2q6b2GAqZgCknDED4WLxNcHTktuWS1I,6
7
+ devnomads_cli-0.3.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ dncli = dncli:run
3
+ dncli-dns-hook = dncli:hook_main
@@ -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
+ dncli