@lenne.tech/cli 1.2.0 → 1.3.0
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/build/commands/claude/install-plugin.js +339 -0
- package/package.json +1 -1
- package/build/commands/claude/install-commands.js +0 -337
- package/build/commands/claude/install-mcps.js +0 -258
- package/build/commands/claude/install-skills.js +0 -693
- package/build/lib/mcp-registry.js +0 -80
- package/build/templates/claude-commands/code-cleanup.md +0 -82
- package/build/templates/claude-commands/commit-message.md +0 -21
- package/build/templates/claude-commands/create-story.md +0 -435
- package/build/templates/claude-commands/mr-description-clipboard.md +0 -48
- package/build/templates/claude-commands/mr-description.md +0 -33
- package/build/templates/claude-commands/sec-review.md +0 -62
- package/build/templates/claude-commands/skill-optimize.md +0 -481
- package/build/templates/claude-commands/test-generate.md +0 -45
- package/build/templates/claude-skills/building-stories-with-tdd/SKILL.md +0 -265
- package/build/templates/claude-skills/building-stories-with-tdd/code-quality.md +0 -276
- package/build/templates/claude-skills/building-stories-with-tdd/database-indexes.md +0 -182
- package/build/templates/claude-skills/building-stories-with-tdd/examples.md +0 -1383
- package/build/templates/claude-skills/building-stories-with-tdd/handling-existing-tests.md +0 -197
- package/build/templates/claude-skills/building-stories-with-tdd/reference.md +0 -1427
- package/build/templates/claude-skills/building-stories-with-tdd/security-review.md +0 -307
- package/build/templates/claude-skills/building-stories-with-tdd/workflow.md +0 -1004
- package/build/templates/claude-skills/generating-nest-servers/SKILL.md +0 -303
- package/build/templates/claude-skills/generating-nest-servers/configuration.md +0 -285
- package/build/templates/claude-skills/generating-nest-servers/declare-keyword-warning.md +0 -133
- package/build/templates/claude-skills/generating-nest-servers/description-management.md +0 -226
- package/build/templates/claude-skills/generating-nest-servers/examples.md +0 -893
- package/build/templates/claude-skills/generating-nest-servers/framework-guide.md +0 -259
- package/build/templates/claude-skills/generating-nest-servers/quality-review.md +0 -864
- package/build/templates/claude-skills/generating-nest-servers/reference.md +0 -487
- package/build/templates/claude-skills/generating-nest-servers/security-rules.md +0 -371
- package/build/templates/claude-skills/generating-nest-servers/verification-checklist.md +0 -262
- package/build/templates/claude-skills/generating-nest-servers/workflow-process.md +0 -1061
- package/build/templates/claude-skills/using-lt-cli/SKILL.md +0 -284
- package/build/templates/claude-skills/using-lt-cli/examples.md +0 -546
- package/build/templates/claude-skills/using-lt-cli/reference.md +0 -513
|
@@ -1,546 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: lt-cli-examples
|
|
3
|
-
version: 1.0.0
|
|
4
|
-
description: Real-world examples for Git operations and Fullstack initialization with lenne.tech CLI
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# LT CLI Examples
|
|
8
|
-
|
|
9
|
-
⚠️ **Note**: For NestJS server examples (modules, objects, properties), see the **nest-server-generator skill** instead.
|
|
10
|
-
|
|
11
|
-
## Table of Contents
|
|
12
|
-
- [Git Operations](#git-operations)
|
|
13
|
-
- [Fullstack Project Initialization](#fullstack-project-initialization)
|
|
14
|
-
- [Troubleshooting Examples](#troubleshooting-examples)
|
|
15
|
-
- [Using Alias Commands](#using-alias-commands)
|
|
16
|
-
- [Best Practices](#best-practices)
|
|
17
|
-
- [Reference](#reference)
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Git Operations
|
|
22
|
-
|
|
23
|
-
### 1. Branch Management
|
|
24
|
-
|
|
25
|
-
#### Switching to Existing Branch
|
|
26
|
-
```bash
|
|
27
|
-
# Switch to existing branch DEV-123
|
|
28
|
-
lt git get DEV-123
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**What happens:**
|
|
32
|
-
1. Checks if `DEV-123` exists locally
|
|
33
|
-
2. Switches to branch `DEV-123`
|
|
34
|
-
|
|
35
|
-
#### Creating New Branch
|
|
36
|
-
```bash
|
|
37
|
-
# Create and switch to new branch feature/new-authentication
|
|
38
|
-
lt git get feature/new-authentication
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
**What happens:**
|
|
42
|
-
1. Checks if `feature/new-authentication` exists locally (not found)
|
|
43
|
-
2. Checks if it exists on remote (not found)
|
|
44
|
-
3. Creates new branch `feature/new-authentication` from current branch
|
|
45
|
-
4. Switches to the new branch
|
|
46
|
-
|
|
47
|
-
#### Checking Out Remote Branch
|
|
48
|
-
```bash
|
|
49
|
-
# Checkout branch that exists on remote but not locally
|
|
50
|
-
lt git get DEV-456
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**What happens:**
|
|
54
|
-
1. Checks if `DEV-456` exists locally (not found)
|
|
55
|
-
2. Checks if it exists on remote (found!)
|
|
56
|
-
3. Checks out `DEV-456` and sets up tracking to `origin/DEV-456`
|
|
57
|
-
4. Switches to the branch
|
|
58
|
-
|
|
59
|
-
#### Using Alias
|
|
60
|
-
```bash
|
|
61
|
-
# Same as "lt git get" but shorter
|
|
62
|
-
lt git g DEV-789
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
### 2. Workflow Scenarios
|
|
68
|
-
|
|
69
|
-
#### Start New Feature Development
|
|
70
|
-
```bash
|
|
71
|
-
# You're on main branch, start working on new ticket
|
|
72
|
-
git status # Verify clean working tree
|
|
73
|
-
lt git get DEV-234 # Create and switch to new feature branch
|
|
74
|
-
|
|
75
|
-
# Do your work...
|
|
76
|
-
git add .
|
|
77
|
-
git commit -m "Implement feature"
|
|
78
|
-
git push -u origin DEV-234
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
#### Switch Between Tickets
|
|
82
|
-
```bash
|
|
83
|
-
# Working on DEV-123, need to switch to urgent DEV-456
|
|
84
|
-
git status # Check for uncommitted changes
|
|
85
|
-
git stash # Save work in progress
|
|
86
|
-
lt git get DEV-456 # Switch to urgent ticket
|
|
87
|
-
|
|
88
|
-
# Fix urgent issue...
|
|
89
|
-
git add .
|
|
90
|
-
git commit -m "Fix urgent bug"
|
|
91
|
-
git push
|
|
92
|
-
|
|
93
|
-
# Return to original work
|
|
94
|
-
lt git get DEV-123
|
|
95
|
-
git stash pop # Restore work in progress
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
#### Sync with Remote Branch
|
|
99
|
-
```bash
|
|
100
|
-
# Someone else created branch DEV-789 on remote
|
|
101
|
-
lt git get DEV-789 # Automatically checks out and tracks remote branch
|
|
102
|
-
|
|
103
|
-
# Verify tracking
|
|
104
|
-
git status
|
|
105
|
-
# Output: "Your branch is up to date with 'origin/DEV-789'"
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
### 3. Reset Operations
|
|
111
|
-
|
|
112
|
-
#### Discard All Local Changes
|
|
113
|
-
```bash
|
|
114
|
-
# Your local changes are broken, start fresh from remote
|
|
115
|
-
git status # See what will be discarded
|
|
116
|
-
|
|
117
|
-
lt git reset
|
|
118
|
-
# Prompts: "Reset current branch to origin/<branch>? This will discard all local changes. (y/N)"
|
|
119
|
-
# Type: y
|
|
120
|
-
|
|
121
|
-
# Your branch now matches remote exactly
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
**⚠️ WARNING**: This is destructive! All local commits and changes are permanently lost.
|
|
125
|
-
|
|
126
|
-
#### When to Use Reset
|
|
127
|
-
|
|
128
|
-
**Use Case 1**: Experimental work failed
|
|
129
|
-
```bash
|
|
130
|
-
# You tried something, it didn't work, want clean slate
|
|
131
|
-
git status # Shows many broken changes
|
|
132
|
-
lt git reset # Start over from remote
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
**Use Case 2**: Merge conflict too complex
|
|
136
|
-
```bash
|
|
137
|
-
# Merge created complex conflicts, easier to start over
|
|
138
|
-
git merge main # Conflict!
|
|
139
|
-
# ... attempt to resolve, too complicated
|
|
140
|
-
git merge --abort
|
|
141
|
-
lt git reset # Get clean state
|
|
142
|
-
# Now merge again or use different approach
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
**Use Case 3**: Accidental commits on wrong branch
|
|
146
|
-
```bash
|
|
147
|
-
# Made commits on main instead of feature branch
|
|
148
|
-
git log # See unwanted commits
|
|
149
|
-
lt git reset # Discard commits, return to clean main
|
|
150
|
-
lt git get DEV-123 # Switch to correct branch
|
|
151
|
-
# Re-do work properly
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
### 4. Common Patterns
|
|
157
|
-
|
|
158
|
-
#### Daily Development Workflow
|
|
159
|
-
```bash
|
|
160
|
-
# Morning: Start work on ticket
|
|
161
|
-
lt git get main # Switch to main
|
|
162
|
-
git pull # Get latest changes
|
|
163
|
-
lt git get DEV-567 # Create/switch to ticket branch
|
|
164
|
-
|
|
165
|
-
# During day: Regular commits
|
|
166
|
-
git add .
|
|
167
|
-
git commit -m "Progress on feature"
|
|
168
|
-
git push -u origin DEV-567 # First push sets upstream
|
|
169
|
-
|
|
170
|
-
# End of day: Push progress
|
|
171
|
-
git add .
|
|
172
|
-
git commit -m "WIP: End of day checkpoint"
|
|
173
|
-
git push
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
#### Handling Mistakes
|
|
177
|
-
```bash
|
|
178
|
-
# Scenario: Committed to wrong branch
|
|
179
|
-
git log -1 # See the wrong commit
|
|
180
|
-
git stash # Stash any uncommitted work
|
|
181
|
-
lt git reset # Reset to clean state
|
|
182
|
-
lt git get DEV-999 # Switch to correct branch
|
|
183
|
-
git stash pop # Restore work
|
|
184
|
-
# Now commit on correct branch
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
#### Code Review Feedback
|
|
188
|
-
```bash
|
|
189
|
-
# Reviewer asked for changes on PR branch
|
|
190
|
-
lt git get DEV-333 # Switch to PR branch
|
|
191
|
-
git pull # Get latest
|
|
192
|
-
# Make requested changes
|
|
193
|
-
git add .
|
|
194
|
-
git commit -m "Address PR feedback"
|
|
195
|
-
git push
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
---
|
|
199
|
-
|
|
200
|
-
## Fullstack Project Initialization
|
|
201
|
-
|
|
202
|
-
### 1. Angular Projects
|
|
203
|
-
|
|
204
|
-
#### Production Angular App with Git
|
|
205
|
-
```bash
|
|
206
|
-
lt fullstack init \
|
|
207
|
-
--name MyAngularApp \
|
|
208
|
-
--frontend angular \
|
|
209
|
-
--git true \
|
|
210
|
-
--git-link https://github.com/myorg/my-angular-app.git
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
**Creates:**
|
|
214
|
-
```
|
|
215
|
-
MyAngularApp/
|
|
216
|
-
├── frontend/ # Angular 18+ application
|
|
217
|
-
│ ├── src/
|
|
218
|
-
│ ├── angular.json
|
|
219
|
-
│ └── package.json
|
|
220
|
-
├── projects/
|
|
221
|
-
│ └── api/ # NestJS backend (@lenne.tech/nest-server)
|
|
222
|
-
│ ├── src/
|
|
223
|
-
│ │ └── server/
|
|
224
|
-
│ │ ├── modules/
|
|
225
|
-
│ │ └── common/
|
|
226
|
-
│ └── package.json
|
|
227
|
-
├── package.json # Root workspace config
|
|
228
|
-
├── .gitignore
|
|
229
|
-
└── .git/ # Initialized with remote
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
**Next steps:**
|
|
233
|
-
```bash
|
|
234
|
-
cd MyAngularApp
|
|
235
|
-
npm install # Install all dependencies
|
|
236
|
-
cd projects/api && npm start # Start backend (port 3000)
|
|
237
|
-
# In another terminal:
|
|
238
|
-
cd frontend && npm start # Start frontend (port 4200)
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
#### Local Development Angular App
|
|
242
|
-
```bash
|
|
243
|
-
lt fullstack init \
|
|
244
|
-
--name LocalDevApp \
|
|
245
|
-
--frontend angular \
|
|
246
|
-
--git false
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
**Use case:** Quick prototyping, learning, no version control needed
|
|
250
|
-
|
|
251
|
-
---
|
|
252
|
-
|
|
253
|
-
### 2. Nuxt Projects
|
|
254
|
-
|
|
255
|
-
#### Production Nuxt App with Git
|
|
256
|
-
```bash
|
|
257
|
-
lt fullstack init \
|
|
258
|
-
--name MyNuxtApp \
|
|
259
|
-
--frontend nuxt \
|
|
260
|
-
--git true \
|
|
261
|
-
--git-link https://github.com/myorg/my-nuxt-app.git
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
**Creates:**
|
|
265
|
-
```
|
|
266
|
-
MyNuxtApp/
|
|
267
|
-
├── frontend/ # Nuxt 3 application
|
|
268
|
-
│ ├── pages/
|
|
269
|
-
│ ├── components/
|
|
270
|
-
│ ├── nuxt.config.ts
|
|
271
|
-
│ └── package.json
|
|
272
|
-
├── projects/
|
|
273
|
-
│ └── api/ # NestJS backend
|
|
274
|
-
│ └── ...
|
|
275
|
-
├── package.json
|
|
276
|
-
├── .gitignore
|
|
277
|
-
└── .git/
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
#### Nuxt App without Remote
|
|
281
|
-
```bash
|
|
282
|
-
lt fullstack init \
|
|
283
|
-
--name MyNuxtProject \
|
|
284
|
-
--frontend nuxt \
|
|
285
|
-
--git true
|
|
286
|
-
# No --git-link, git initialized but no remote
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
**Use case:** Start project locally, add remote later
|
|
290
|
-
|
|
291
|
-
**Add remote later:**
|
|
292
|
-
```bash
|
|
293
|
-
cd MyNuxtProject
|
|
294
|
-
git remote add origin https://github.com/myorg/my-nuxt-project.git
|
|
295
|
-
git push -u origin main
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
---
|
|
299
|
-
|
|
300
|
-
### 3. Project Types
|
|
301
|
-
|
|
302
|
-
#### Client Project (Angular + NestJS)
|
|
303
|
-
```bash
|
|
304
|
-
lt fullstack init \
|
|
305
|
-
--name ClientPortal \
|
|
306
|
-
--frontend angular \
|
|
307
|
-
--git true \
|
|
308
|
-
--git-link https://github.com/client/portal.git
|
|
309
|
-
|
|
310
|
-
# After creation:
|
|
311
|
-
cd ClientPortal/projects/api
|
|
312
|
-
|
|
313
|
-
# Add authentication module
|
|
314
|
-
lt server module --name User --controller Both \
|
|
315
|
-
--prop-name-0 email --prop-type-0 string \
|
|
316
|
-
--prop-name-1 password --prop-type-1 string
|
|
317
|
-
|
|
318
|
-
# Add business logic modules
|
|
319
|
-
# ... (use nest-server-generator skill for this)
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
#### Internal Tool (Nuxt + NestJS)
|
|
323
|
-
```bash
|
|
324
|
-
lt fullstack init \
|
|
325
|
-
--name InternalDashboard \
|
|
326
|
-
--frontend nuxt \
|
|
327
|
-
--git true \
|
|
328
|
-
--git-link https://github.com/company/internal-dashboard.git
|
|
329
|
-
|
|
330
|
-
# Quick setup for internal tools with Nuxt's flexibility
|
|
331
|
-
```
|
|
332
|
-
|
|
333
|
-
#### Learning/Tutorial Project
|
|
334
|
-
```bash
|
|
335
|
-
lt fullstack init \
|
|
336
|
-
--name LearningFullstack \
|
|
337
|
-
--frontend angular \
|
|
338
|
-
--git false
|
|
339
|
-
|
|
340
|
-
# No git overhead, just focus on learning
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
---
|
|
344
|
-
|
|
345
|
-
### 4. Post-Creation Workflows
|
|
346
|
-
|
|
347
|
-
#### After Angular Fullstack Init
|
|
348
|
-
```bash
|
|
349
|
-
cd MyAngularApp
|
|
350
|
-
npm install
|
|
351
|
-
|
|
352
|
-
# Terminal 1: Start backend
|
|
353
|
-
cd projects/api
|
|
354
|
-
npm start
|
|
355
|
-
# API runs on http://localhost:3000
|
|
356
|
-
|
|
357
|
-
# Terminal 2: Start frontend
|
|
358
|
-
cd frontend
|
|
359
|
-
npm start
|
|
360
|
-
# Frontend runs on http://localhost:4200
|
|
361
|
-
# Auto-proxies API calls to backend
|
|
362
|
-
|
|
363
|
-
# Terminal 3: Development
|
|
364
|
-
cd projects/api
|
|
365
|
-
# Generate server modules using nest-server-generator skill
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
#### After Nuxt Fullstack Init
|
|
369
|
-
```bash
|
|
370
|
-
cd MyNuxtApp
|
|
371
|
-
npm install
|
|
372
|
-
|
|
373
|
-
# Terminal 1: Start backend
|
|
374
|
-
cd projects/api
|
|
375
|
-
npm start
|
|
376
|
-
# API runs on http://localhost:3000
|
|
377
|
-
|
|
378
|
-
# Terminal 2: Start frontend
|
|
379
|
-
cd frontend
|
|
380
|
-
npm run dev
|
|
381
|
-
# Frontend runs on http://localhost:3000 (or 3001 if 3000 taken)
|
|
382
|
-
|
|
383
|
-
# Configure proxy in nuxt.config.ts if needed
|
|
384
|
-
```
|
|
385
|
-
|
|
386
|
-
---
|
|
387
|
-
|
|
388
|
-
### 5. Common Initialization Patterns
|
|
389
|
-
|
|
390
|
-
#### Team Project Setup
|
|
391
|
-
```bash
|
|
392
|
-
# Lead developer initializes project
|
|
393
|
-
lt fullstack init \
|
|
394
|
-
--name TeamProject \
|
|
395
|
-
--frontend angular \
|
|
396
|
-
--git true \
|
|
397
|
-
--git-link https://github.com/team/team-project.git
|
|
398
|
-
|
|
399
|
-
cd TeamProject
|
|
400
|
-
npm install
|
|
401
|
-
# ... initial setup, create base modules
|
|
402
|
-
git add .
|
|
403
|
-
git commit -m "Initial project setup"
|
|
404
|
-
git push -u origin main
|
|
405
|
-
|
|
406
|
-
# Team members clone
|
|
407
|
-
# git clone https://github.com/team/team-project.git
|
|
408
|
-
# cd team-project
|
|
409
|
-
# npm install
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
#### Monorepo with Multiple Projects
|
|
413
|
-
```bash
|
|
414
|
-
# Create first project
|
|
415
|
-
lt fullstack init --name ProjectA --frontend angular --git true
|
|
416
|
-
|
|
417
|
-
# Create second project
|
|
418
|
-
lt fullstack init --name ProjectB --frontend nuxt --git true
|
|
419
|
-
|
|
420
|
-
# Each has its own git repository, npm workspace, and backend
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
#### Migration from Existing Backend
|
|
424
|
-
```bash
|
|
425
|
-
# Create fullstack project
|
|
426
|
-
lt fullstack init \
|
|
427
|
-
--name MigratedApp \
|
|
428
|
-
--frontend angular \
|
|
429
|
-
--git true
|
|
430
|
-
|
|
431
|
-
cd MigratedApp/projects
|
|
432
|
-
|
|
433
|
-
# Remove generated api
|
|
434
|
-
rm -rf api
|
|
435
|
-
|
|
436
|
-
# Clone existing backend
|
|
437
|
-
git clone https://github.com/company/existing-api.git api
|
|
438
|
-
|
|
439
|
-
# Update root package.json workspace paths if needed
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
---
|
|
443
|
-
|
|
444
|
-
## Troubleshooting Examples
|
|
445
|
-
|
|
446
|
-
### Git Branch Issues
|
|
447
|
-
|
|
448
|
-
#### Branch Exists But Can't Switch
|
|
449
|
-
```bash
|
|
450
|
-
# Problem: Uncommitted changes
|
|
451
|
-
git status
|
|
452
|
-
# Output: "Changes not staged for commit..."
|
|
453
|
-
|
|
454
|
-
# Solution 1: Stash changes
|
|
455
|
-
git stash
|
|
456
|
-
lt git get DEV-123
|
|
457
|
-
git stash pop
|
|
458
|
-
|
|
459
|
-
# Solution 2: Commit changes
|
|
460
|
-
git add .
|
|
461
|
-
git commit -m "WIP: Save progress"
|
|
462
|
-
lt git get DEV-123
|
|
463
|
-
```
|
|
464
|
-
|
|
465
|
-
#### Reset Fails
|
|
466
|
-
```bash
|
|
467
|
-
# Problem: No remote branch
|
|
468
|
-
lt git reset
|
|
469
|
-
# Error: "Remote branch not found"
|
|
470
|
-
|
|
471
|
-
# Solution: Check remote
|
|
472
|
-
git branch -r # List remote branches
|
|
473
|
-
git remote -v # Verify remote URL
|
|
474
|
-
|
|
475
|
-
# If remote missing, add it
|
|
476
|
-
git remote add origin https://github.com/user/repo.git
|
|
477
|
-
git fetch origin
|
|
478
|
-
lt git reset # Try again
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
### Fullstack Init Issues
|
|
482
|
-
|
|
483
|
-
#### Permission Denied
|
|
484
|
-
```bash
|
|
485
|
-
# Problem: Can't create directory
|
|
486
|
-
lt fullstack init --name MyApp --frontend angular --git false
|
|
487
|
-
# Error: "Permission denied"
|
|
488
|
-
|
|
489
|
-
# Solution: Check permissions
|
|
490
|
-
ls -la .
|
|
491
|
-
# Create in home directory or with sudo
|
|
492
|
-
cd ~
|
|
493
|
-
lt fullstack init --name MyApp --frontend angular --git false
|
|
494
|
-
```
|
|
495
|
-
|
|
496
|
-
#### Git Remote Already Exists
|
|
497
|
-
```bash
|
|
498
|
-
# Problem: Directory already has .git
|
|
499
|
-
lt fullstack init --name ExistingDir --frontend nuxt --git true
|
|
500
|
-
# Error: "Directory already initialized with git"
|
|
501
|
-
|
|
502
|
-
# Solution: Use different directory or remove .git
|
|
503
|
-
rm -rf ExistingDir/.git
|
|
504
|
-
lt fullstack init --name ExistingDir --frontend nuxt --git true
|
|
505
|
-
```
|
|
506
|
-
|
|
507
|
-
---
|
|
508
|
-
|
|
509
|
-
## Using Alias Commands
|
|
510
|
-
|
|
511
|
-
All commands have shorter aliases:
|
|
512
|
-
|
|
513
|
-
```bash
|
|
514
|
-
# Full commands
|
|
515
|
-
lt git get DEV-123
|
|
516
|
-
lt fullstack init --name MyApp --frontend angular --git true
|
|
517
|
-
|
|
518
|
-
# With aliases
|
|
519
|
-
lt git g DEV-123
|
|
520
|
-
lt full init --name MyApp --frontend angular --git true
|
|
521
|
-
```
|
|
522
|
-
|
|
523
|
-
---
|
|
524
|
-
|
|
525
|
-
## Best Practices
|
|
526
|
-
|
|
527
|
-
### Git Operations
|
|
528
|
-
1. **Always check status first**: `git status` before switching branches
|
|
529
|
-
2. **Save work before switching**: Commit or stash uncommitted changes
|
|
530
|
-
3. **Be cautious with reset**: It's destructive and irreversible
|
|
531
|
-
4. **Use meaningful branch names**: Follow team conventions (DEV-123, feature/xyz)
|
|
532
|
-
|
|
533
|
-
### Fullstack Initialization
|
|
534
|
-
1. **Choose frontend wisely**: Angular for enterprise, Nuxt for flexibility
|
|
535
|
-
2. **Enable git from start**: Use `--git true` for all real projects
|
|
536
|
-
3. **Follow naming conventions**: PascalCase for project names
|
|
537
|
-
4. **Read generated READMEs**: Each project has setup instructions
|
|
538
|
-
5. **Install dependencies immediately**: Run `npm install` after creation
|
|
539
|
-
|
|
540
|
-
---
|
|
541
|
-
|
|
542
|
-
## Reference
|
|
543
|
-
|
|
544
|
-
For detailed command syntax and all available options, see [reference.md](reference.md).
|
|
545
|
-
|
|
546
|
-
For NestJS server development examples, use the **nest-server-generator skill**.
|