Update README: add sudo npm link and direct node run as two install methods
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
40
README.md
40
README.md
@@ -26,8 +26,11 @@ Superpowers is an incredible skill-based workflow system that gives AI coding as
|
|||||||
```bash
|
```bash
|
||||||
git clone https://git.visssoft.com/hanh.tonguyen/antigravity-superpowers.git
|
git clone https://git.visssoft.com/hanh.tonguyen/antigravity-superpowers.git
|
||||||
cd antigravity-superpowers
|
cd antigravity-superpowers
|
||||||
npm link
|
sudo npm link # cách A: link global
|
||||||
antigravity-superpowers init
|
antigravity-superpowers init
|
||||||
|
|
||||||
|
# hoặc chạy trực tiếp (không cần install)
|
||||||
|
node bin/antigravity-superpowers.js init
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -53,30 +56,47 @@ antigravity-superpowers init
|
|||||||
```bash
|
```bash
|
||||||
git clone https://git.visssoft.com/hanh.tonguyen/antigravity-superpowers.git
|
git clone https://git.visssoft.com/hanh.tonguyen/antigravity-superpowers.git
|
||||||
cd antigravity-superpowers
|
cd antigravity-superpowers
|
||||||
npm link
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Verify CLI is available:
|
**Cách A: Link global (cần sudo)**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo npm link
|
||||||
|
```
|
||||||
|
|
||||||
|
Sau đó dùng ở bất kỳ đâu:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
antigravity-superpowers --version
|
antigravity-superpowers --version
|
||||||
# 0.2.0
|
antigravity-superpowers init
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Cách B: Chạy trực tiếp bằng node (không cần sudo)**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
node bin/antigravity-superpowers.js --version
|
||||||
|
node bin/antigravity-superpowers.js init /path/to/your/project
|
||||||
|
```
|
||||||
|
|
||||||
|
> Cách B không cần cài đặt, chạy được ngay. Thay `antigravity-superpowers` bằng `node bin/antigravity-superpowers.js` trong tất cả lệnh bên dưới.
|
||||||
|
|
||||||
### Update to latest version
|
### Update to latest version
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. Pull source mới
|
# 1. Pull source mới
|
||||||
cd antigravity-superpowers
|
cd antigravity-superpowers
|
||||||
git pull
|
git pull
|
||||||
npm link
|
|
||||||
|
|
||||||
# 2. Tại mỗi project đã init trước đó — update profile với backup
|
# 2. (Chỉ nếu dùng cách A) Link lại
|
||||||
cd /path/to/your/project
|
sudo npm link
|
||||||
antigravity-superpowers init --force --backup
|
|
||||||
|
|
||||||
# 3. Kiểm tra profile sau update
|
# 3. Update profile tại project đã init — giữ backup bản cũ
|
||||||
antigravity-superpowers validate
|
antigravity-superpowers init --force --backup /path/to/your/project
|
||||||
|
# hoặc
|
||||||
|
node bin/antigravity-superpowers.js init --force --backup /path/to/your/project
|
||||||
|
|
||||||
|
# 4. Kiểm tra profile sau update
|
||||||
|
antigravity-superpowers validate /path/to/your/project
|
||||||
```
|
```
|
||||||
|
|
||||||
Bản cũ được giữ lại tại `.agent-backup-<timestamp>`. Nếu cần rollback:
|
Bản cũ được giữ lại tại `.agent-backup-<timestamp>`. Nếu cần rollback:
|
||||||
|
|||||||
Reference in New Issue
Block a user