@lofenta/cli 0.0.0-stage → 0.5.1
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 +57 -0
- package/LICENSE +18 -0
- package/README.md +62 -2
- package/package.json +31 -4
- package/src/index.js +2307 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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.1 - 2026-11-03
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- `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`.
|
|
10
|
+
- `lofenta domains rm` now works, same cause and fix as `env import`.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `lofenta --version` / `-v` / `lofenta version` prints the CLI version (read from package.json, so help and version no longer drift).
|
|
14
|
+
- `lofenta --help` / `-h` now prints help even in a TTY, instead of opening the interactive menu.
|
|
15
|
+
|
|
16
|
+
## 0.5.0 - 2026-06-03
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- `lofenta run [project] -- <cmd>`: run a LOCAL command with the project's env vars injected (project values win over the local shell).
|
|
20
|
+
- 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).
|
|
21
|
+
- `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.
|
|
22
|
+
- `lofenta delete <project>`: full project delete with typed-name confirmation (`--yes` to skip in scripts).
|
|
23
|
+
- `lofenta stop` / `lofenta start`: stop and resume the running container without a rebuild.
|
|
24
|
+
- `lofenta usage`: progress bars with color thresholds (green under 70%, yellow under 90%, red above).
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- A bare `--` separator no longer swallows the first token of the command that follows it (`lofenta exec app -- ls /app` previously dropped `ls`).
|
|
28
|
+
- 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.
|
|
29
|
+
|
|
30
|
+
## 0.4.0 - 2026-05
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
- `exec` (one-shot command in the running container), `tail` (live container output), `env import` (bulk .env upload), `domains rm`.
|
|
34
|
+
- `init` interactive wizard (paginated template browser, name prompt, deploy).
|
|
35
|
+
- `usage` (plan limits and consumption), `watch` (auto-refreshing status), `plan`, `billing`.
|
|
36
|
+
- `snapshots ls|create|restore`, `services`, `volumes`.
|
|
37
|
+
- `completion bash|zsh|fish`.
|
|
38
|
+
|
|
39
|
+
## 0.3.0 - 2026-05
|
|
40
|
+
|
|
41
|
+
### Added
|
|
42
|
+
- `restart`, `redeploy`, `rollback`, `deployments`, `templates`, `open`, `status`.
|
|
43
|
+
- `link` / `unlink` (.lofenta file binds a directory to a project).
|
|
44
|
+
- `secrets` alias for `env`.
|
|
45
|
+
|
|
46
|
+
## 0.2.0 - 2026-05
|
|
47
|
+
|
|
48
|
+
### Added
|
|
49
|
+
- `project <id|name>` detail view (deployments, domains).
|
|
50
|
+
- `env ls|set|rm|pull`, `domains ls|add`, `logs` (live SSE deploy log).
|
|
51
|
+
|
|
52
|
+
## 0.1.0 - 2026-04
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
- Initial release: `login` (browser device flow, device code, API key), `whoami`, `logout`, `doctor`, `config`.
|
|
56
|
+
- `deploy` with framework auto-detection (Next.js, Laravel, WordPress, Python, Node, static, Docker) and git remote detection.
|
|
57
|
+
- `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
|
-
#
|
|
1
|
+
# Lofenta CLI
|
|
2
2
|
|
|
3
|
-
|
|
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.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.5.1",
|
|
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
|
+
}
|