返回 Skill 列表
extension
分类: 开发与工程无需 API Key

using-lt-cli

为lenne.tech CLI工具(lt命令)提供参考。涵盖lt fullstack init(使用本地模板符号链接创建工作区)、lt git get/reset(分支管理)和lt server create(项目脚手架)。当用户提到“lt”、“lt CLI”、“lenne.tech CLI”、“lt fullstack”、“lt git”、“fullstack workspace”、“本地模板”、“--api-link”、“--frontend-link”或任何lt命令语法时激活。不适用于NestJS模块/对象/属性创建(请使用generating-nest-servers)。不适用于Vue/Nuxt前端代码(请使用developing-lt-frontend)。

person作者: jakexiaohubgithub

LT CLI Reference

Skill Boundaries

| User Intent | Correct Skill | |------------|---------------| | "lt fullstack init" | THIS SKILL | | "lt git get feature-branch" | THIS SKILL | | "lt server create my-project" | THIS SKILL | | "lt server module / object / addProp" | generating-nest-servers | | "lt server permissions" | generating-nest-servers | | "Create a NestJS module" | generating-nest-servers | | "Build a Vue component" | developing-lt-frontend |

After lt fullstack init:

  • Backend work (projects/api/) → generating-nest-servers
  • Frontend work (projects/app/) → developing-lt-frontend

Commands

lt git get — Checkout/Create Branch

lt git get <branch-name>    # alias: lt git g
  1. Branch exists locally → switches to it
  2. Branch exists on remote → checks out and tracks
  3. Neither exists → creates new branch from current

lt git reset — Reset to Remote

lt git reset

Fetches latest from remote, resets current branch to origin/<branch>. Destructive — all local changes lost.

lt fullstack init — Create Fullstack Workspace

# Non-interactive
lt fullstack init --name <Name> --frontend <angular|nuxt> --git <true|false> --noConfirm \
  [--git-link <URL>] [--api-link <path>] [--frontend-link <path>]

| Parameter | Required | Description | |-----------|----------|-------------| | --name | Yes | Workspace name (PascalCase) | | --frontend | Yes | angular or nuxt | | --git | Yes | Initialize git: true / false | | --noConfirm | No | Skip confirmation prompts | | --git-link | No | Git repository URL | | --api-branch | No | Branch of nest-server-starter | | --frontend-branch | No | Branch of frontend starter | | --api-copy / --api-link | No | Local API template (copy / symlink) | | --frontend-copy / --frontend-link | No | Local frontend template (copy / symlink) |

Priority: --*-link > --*-copy > --*-branch > default (GitHub clone)

Created structure:

<workspace>/
├── projects/
│   ├── api/    ← nest-server-starter
│   └── app/    ← nuxt-base-starter (or ng-base-starter)
├── package.json
└── .gitignore

Post-creation:

cd <workspace> && pnpm install
cd projects/api && pnpm start     # Port 3000
cd projects/app && pnpm start     # Port 3001

lt server create — Scaffold New Server

lt server create <name> --noConfirm [--branch <branch>] [--copy <path>] [--link <path>]

Creates a standalone NestJS project from nest-server-starter. For module/object/property commands, see generating-nest-servers skill.

Best Practices

  • Always use --noConfirm from Claude Code to avoid blocking prompts
  • Run git status before lt git reset — it's irreversible
  • Use PascalCase for workspace names
  • Use --api-link / --frontend-link for local template development (fastest)
  • After init: pnpm install → start API → start App

Related Skills

  • generating-nest-serverslt server module, lt server object, lt server addProp, lt server permissions
  • developing-lt-frontend — Nuxt/Vue frontend development
  • building-stories-with-tdd — TDD workflow orchestration