pyvolt-cli 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.
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/PKG-INFO +2 -2
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/README.md +1 -1
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/pyproject.toml +1 -1
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/pyvolt_cli/app.py +11 -0
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/.gitignore +0 -0
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/LICENSE +0 -0
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/pyvolt_cli/__init__.py +0 -0
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/pyvolt_cli/__main__.py +0 -0
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/pyvolt_cli/client.py +0 -0
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/pyvolt_cli/config.py +0 -0
- {pyvolt_cli-0.3.0 → pyvolt_cli-0.3.1}/pyvolt_cli/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyvolt-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: The command-line companion to Pyvolt: managed Python deployments on infrastructure you actually own.
|
|
5
5
|
Project-URL: Homepage, https://pyvolt.com
|
|
6
6
|
Project-URL: Repository, https://github.com/pyvolt-hq/pyvolt-cli
|
|
@@ -45,7 +45,7 @@ pyvolt deploy myapp --follow
|
|
|
45
45
|
| `pyvolt servers` / `pyvolt apps` | Inventory with live status |
|
|
46
46
|
| `pyvolt deploy DOMAIN [--follow]` | Trigger a deployment, optionally streaming the log |
|
|
47
47
|
| `pyvolt deployments DOMAIN` | Recent deployment history |
|
|
48
|
-
| `pyvolt env DOMAIN list\|set K=V…\|rm K` | Environment variables — pushed and app restarted |
|
|
48
|
+
| `pyvolt env DOMAIN list\|get K\|set K=V…\|rm K` | Environment variables — pushed and app restarted |
|
|
49
49
|
| `pyvolt ps DOMAIN [restart NAME]` | Background processes with live systemd state |
|
|
50
50
|
| `pyvolt logs DOMAIN [-p NAME] [-n N]` | Tail the app's journal |
|
|
51
51
|
| `pyvolt bans SERVER` | IPs banned by fail2ban, your own flagged |
|
|
@@ -15,7 +15,7 @@ pyvolt deploy myapp --follow
|
|
|
15
15
|
| `pyvolt servers` / `pyvolt apps` | Inventory with live status |
|
|
16
16
|
| `pyvolt deploy DOMAIN [--follow]` | Trigger a deployment, optionally streaming the log |
|
|
17
17
|
| `pyvolt deployments DOMAIN` | Recent deployment history |
|
|
18
|
-
| `pyvolt env DOMAIN list\|set K=V…\|rm K` | Environment variables — pushed and app restarted |
|
|
18
|
+
| `pyvolt env DOMAIN list\|get K\|set K=V…\|rm K` | Environment variables — pushed and app restarted |
|
|
19
19
|
| `pyvolt ps DOMAIN [restart NAME]` | Background processes with live systemd state |
|
|
20
20
|
| `pyvolt logs DOMAIN [-p NAME] [-n N]` | Tail the app's journal |
|
|
21
21
|
| `pyvolt bans SERVER` | IPs banned by fail2ban, your own flagged |
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pyvolt-cli"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "The command-line companion to Pyvolt: managed Python deployments on infrastructure you actually own."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -282,6 +282,17 @@ def env_list(ctx: typer.Context):
|
|
|
282
282
|
console.print(t)
|
|
283
283
|
|
|
284
284
|
|
|
285
|
+
@env_app.command("get")
|
|
286
|
+
def env_get(ctx: typer.Context, key: str):
|
|
287
|
+
"""Show one variable's value — unmasked, since it's your own secret."""
|
|
288
|
+
api = Api()
|
|
289
|
+
site = api.resolve_app(ctx.obj)
|
|
290
|
+
row = api.get(f"/v1/apps/{site['id']}/env/{key}")
|
|
291
|
+
if _emit(row):
|
|
292
|
+
return
|
|
293
|
+
console.print(row["value"])
|
|
294
|
+
|
|
295
|
+
|
|
285
296
|
@env_app.command("set")
|
|
286
297
|
def env_set(ctx: typer.Context, pairs: list[str] = typer.Argument(..., metavar="KEY=VALUE...")):
|
|
287
298
|
"""Set one or more variables — pushes the .env and restarts the app."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|