@lenne.tech/cli
Version:
lenne.Tech CLI: lt
35 lines (34 loc) • 1.71 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Local development orchestration commands (`lt dev <subcommand>`).
*
* Subcommands:
* - `install` — one-time per-machine setup: caddy + LaunchAgent/systemd unit
* - `uninstall` — remove the lt-dev service (symmetric to install)
* - `migrate` — register an existing project (idempotent ENV patches)
* - `up` — start API + App behind Caddy with project-specific URLs
* - `down` — stop the detached processes + remove the Caddy block
* - `status` — show what is running
* - `doctor` — diagnose Caddy/CA/DNS/port issues
* - `tunnel` — Cloudflare quick tunnel to expose a running project publicly
*/
module.exports = {
alias: ['d'],
description: 'Local dev orchestration (Caddy + per-project URLs)',
hidden: false,
name: 'dev',
run: (toolbox) => __awaiter(void 0, void 0, void 0, function* () {
yield toolbox.helper.showMenu('dev');
return 'dev';
}),
};