@lofenta/cli 0.0.0-stage → 0.5.2

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,62 @@
1
+ # Lofenta CLI Changelog
2
+
3
+ All notable changes to the `lofenta` CLI. Versions before 0.5.0 were
4
+ reconstructed from the internal task history when this file was introduced.
5
+
6
+ ## 0.5.2 - 2026-11-03
7
+
8
+ ### Fixed
9
+ - Interactive menus (project picker, main menu) now auto-paginate to the terminal height, so accounts with many projects no longer overflow off the top of the screen. Previously only the template browser paginated; every other menu rendered all items at once. Left/Right page through, and the footer shows "Page X/Y".
10
+
11
+ ## 0.5.1 - 2026-11-03
12
+
13
+ ### Fixed
14
+ - `lofenta env import` now works. It was unreachable: the generic `env` route returned first, so `import` fell through to an "Unknown env subcommand" error. Import is now handled inside `env`.
15
+ - `lofenta domains rm` now works, same cause and fix as `env import`.
16
+
17
+ ### Added
18
+ - `lofenta --version` / `-v` / `lofenta version` prints the CLI version (read from package.json, so help and version no longer drift).
19
+ - `lofenta --help` / `-h` now prints help even in a TTY, instead of opening the interactive menu.
20
+
21
+ ## 0.5.0 - 2026-06-03
22
+
23
+ ### Added
24
+ - `lofenta run [project] -- <cmd>`: run a LOCAL command with the project's env vars injected (project values win over the local shell).
25
+ - Teams: `lofenta orgs` lists your teams; `--org <slug>` filters `projects` and targets `deploy`; every command now works on team projects your role allows (previously the CLI only saw personal projects).
26
+ - `lofenta db connect [project]`: interactive database shell (Postgres, MariaDB, Redis, MongoDB), one statement per line. `lofenta db query <project> "<statement>"` for one-shot use. Credentials never leave the database container.
27
+ - `lofenta delete <project>`: full project delete with typed-name confirmation (`--yes` to skip in scripts).
28
+ - `lofenta stop` / `lofenta start`: stop and resume the running container without a rebuild.
29
+ - `lofenta usage`: progress bars with color thresholds (green under 70%, yellow under 90%, red above).
30
+
31
+ ### Fixed
32
+ - A bare `--` separator no longer swallows the first token of the command that follows it (`lofenta exec app -- ls /app` previously dropped `ls`).
33
+ - Interactive menu no longer flickers while navigating: frames repaint in place in a single write instead of clearing the whole screen on every keypress, and the cursor is hidden while the menu is open.
34
+
35
+ ## 0.4.0 - 2026-05
36
+
37
+ ### Added
38
+ - `exec` (one-shot command in the running container), `tail` (live container output), `env import` (bulk .env upload), `domains rm`.
39
+ - `init` interactive wizard (paginated template browser, name prompt, deploy).
40
+ - `usage` (plan limits and consumption), `watch` (auto-refreshing status), `plan`, `billing`.
41
+ - `snapshots ls|create|restore`, `services`, `volumes`.
42
+ - `completion bash|zsh|fish`.
43
+
44
+ ## 0.3.0 - 2026-05
45
+
46
+ ### Added
47
+ - `restart`, `redeploy`, `rollback`, `deployments`, `templates`, `open`, `status`.
48
+ - `link` / `unlink` (.lofenta file binds a directory to a project).
49
+ - `secrets` alias for `env`.
50
+
51
+ ## 0.2.0 - 2026-05
52
+
53
+ ### Added
54
+ - `project <id|name>` detail view (deployments, domains).
55
+ - `env ls|set|rm|pull`, `domains ls|add`, `logs` (live SSE deploy log).
56
+
57
+ ## 0.1.0 - 2026-04
58
+
59
+ ### Added
60
+ - Initial release: `login` (browser device flow, device code, API key), `whoami`, `logout`, `doctor`, `config`.
61
+ - `deploy` with framework auto-detection (Next.js, Laravel, WordPress, Python, Node, static, Docker) and git remote detection.
62
+ - `projects` list, interactive full-screen menu with slash commands.
package/LICENSE ADDED
@@ -0,0 +1,18 @@
1
+ Copyright (c) 2026 Lofenta. All rights reserved.
2
+
3
+ This software, including its source code, is proprietary to Lofenta.
4
+
5
+ No license or right is granted to any person to use, copy, modify, merge,
6
+ publish, distribute, sublicense, reverse engineer, or sell copies of this
7
+ software or any part of it, except under a separate written agreement with
8
+ Lofenta.
9
+
10
+ Installing and running this command-line tool to interact with the Lofenta
11
+ service through your own authorized account is permitted. Any other use is
12
+ prohibited.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL
17
+ LOFENTA BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM,
18
+ OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
package/README.md CHANGED
@@ -1,3 +1,63 @@
1
- # Temporary Holding Version
1
+ # Lofenta CLI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Deploy apps and manage your [Lofenta](https://lofenta.com) projects from the terminal.
4
+ Connect a repo, deploy, stream logs, manage env vars, domains, databases and more.
5
+
6
+ ## Install
7
+
8
+ ```sh
9
+ npm install -g @lofenta/cli
10
+ ```
11
+
12
+ Requires Node.js 18 or newer. After install the `lofenta` command is on your PATH.
13
+
14
+ You can also run it without installing:
15
+
16
+ ```sh
17
+ npx @lofenta/cli
18
+ ```
19
+
20
+ ## Getting started
21
+
22
+ ```sh
23
+ lofenta login # authorize this terminal (browser, device code, or API key)
24
+ lofenta # open the interactive menu
25
+ lofenta deploy # deploy the app in the current directory
26
+ ```
27
+
28
+ ## Common commands
29
+
30
+ ```sh
31
+ lofenta projects # list your projects
32
+ lofenta deploy [template] # create or redeploy from the current directory
33
+ lofenta logs <project> # live deploy log
34
+ lofenta tail <project> # live container output
35
+ lofenta env set <project> K=V # set an env var
36
+ lofenta env import <project> .env # bulk import a .env file
37
+ lofenta domains add <project> example.com
38
+ lofenta db connect <project> # interactive database shell
39
+ lofenta rollback <project> # roll back to the previous deployment
40
+ lofenta --version # print the CLI version
41
+ lofenta --help # full command reference
42
+ ```
43
+
44
+ Shell completion:
45
+
46
+ ```sh
47
+ source <(lofenta completion bash) # or zsh, fish
48
+ ```
49
+
50
+ ## Unattended use (CI, servers)
51
+
52
+ Pass an API key instead of the interactive login:
53
+
54
+ ```sh
55
+ lofenta deploy --api-key "$LOFENTA_API_KEY"
56
+ ```
57
+
58
+ Generate a key in the dashboard under Settings > CLI access.
59
+
60
+ ## Links
61
+
62
+ - Website: https://lofenta.com
63
+ - Dashboard: https://lofenta.com/dashboard
package/package.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@lofenta/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.5.2",
4
+ "description": "Lofenta CLI: deploy apps and manage projects, env vars, domains, logs, databases and more from your terminal.",
5
+ "keywords": ["lofenta", "paas", "deploy", "cli", "hosting", "devops", "containers"],
6
+ "homepage": "https://lofenta.com",
7
+ "bugs": {
8
+ "url": "https://lofenta.com"
9
+ },
10
+ "license": "UNLICENSED",
11
+ "author": "Lofenta",
12
+ "type": "commonjs",
13
+ "bin": {
14
+ "lofenta": "src/index.js"
15
+ },
16
+ "files": [
17
+ "src",
18
+ "CHANGELOG.md",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "engines": {
23
+ "node": ">=18"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "scripts": {
29
+ "cli": "node ./src/index.js",
30
+ "typecheck": "node ./src/index.js --help >/dev/null",
31
+ "clean": "rm -rf dist"
32
+ }
33
+ }