feat(cli): package project as installable command
This commit is contained in:
25
README.md
25
README.md
@@ -10,10 +10,25 @@ ChatGPT 账号自动注册工具,以及 Codex CLI OAuth 登录工具。
|
||||
|
||||
## 安装
|
||||
|
||||
### 方式 1:直接当命令行工具安装
|
||||
|
||||
```bash
|
||||
uv tool install .
|
||||
# 安装后即可直接执行
|
||||
gptplus-auto --help
|
||||
```
|
||||
|
||||
如果想装到当前项目虚拟环境里:
|
||||
|
||||
```bash
|
||||
uv sync
|
||||
uv run gptplus-auto --help
|
||||
```
|
||||
|
||||
### 方式 2:源码方式运行
|
||||
|
||||
```bash
|
||||
uv sync
|
||||
# 或
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## 配置
|
||||
@@ -40,6 +55,8 @@ CURRENCY=usd
|
||||
### 仅注册账号
|
||||
|
||||
```bash
|
||||
gptplus-auto register
|
||||
# 或源码方式
|
||||
uv run python src/main.py register
|
||||
```
|
||||
|
||||
@@ -57,6 +74,8 @@ access_token: eyJhbGci...
|
||||
### 注册账号 + 获取 Plus 支付链接
|
||||
|
||||
```bash
|
||||
gptplus-auto checkout
|
||||
# 或源码方式
|
||||
uv run python src/main.py checkout
|
||||
```
|
||||
|
||||
@@ -77,6 +96,8 @@ https://pay.openai.com/c/pay/cs_live_a1...
|
||||
### Codex CLI OAuth 登录
|
||||
|
||||
```bash
|
||||
gptplus-auto codex-login --email user@example.com --password yourpassword
|
||||
# 或源码方式
|
||||
uv run python src/main.py codex-login --email user@example.com --password yourpassword
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user