qt-cli
qt-cli 是齐天簿的命令行登录工具,安装后命令名为 qt。
当前版本采用 device flow:
- 终端发起登录请求
- 浏览器打开
https://qt.6-79.cn/cli - 用户在网页端确认本次 CLI 登录
- CLI 轮询拿到登录 token
安装
cd qt-cli
python3 -m pip install -e .
使用
qt login
qt profile
qt apps --scope developed
qt app list --scope in-use
qt whoami
qt token
qt oauth --app-id <APP_ID>
qt app oauth --app-id <APP_ID>
qt logout
Reuse In Other CLI Tools
qt can act as a shared authentication broker for other command-line tools.
Read the current account profile:
qt profile --json
Read app lists:
qt apps --scope in-use
qt apps --scope developed
qt apps --scope discover --count 12
qt app list --scope developed
Print the current login token:
qt token
Issue an OAuth authorization code for another Qitianbu app:
qt oauth --app-id R41nXZEwpfl6tw6KYyoEZ4FYST4BXPlF
qt app oauth --app-id R41nXZEwpfl6tw6KYyoEZ4FYST4BXPlF
When there is no local login session, qt oauth and qt app oauth can now fall back to a browser-assisted CLI authorization flow. Use --browser to force that flow even if the local session already exists.
Metadata
Release files for qt-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qt_cli-0.1.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qt_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / qt_cli-0.1.0.tar.gz
| Download URL | qt_cli-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94ec5830928635adbad3cdf3fb1c170e35b2c5e82377405d68f4efeb55d46acd
|
|
BLAKE2b-256 checksum How to use checksums |
001879eaf3a891c80259dbe9d4ef3c54bf243471cee8eff20a5f8c2d33fa5bec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / qt_cli-0.1.0-py3-none-any.whl
| Download URL | qt_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
006433a0c5bcb0cbc2ab9346ee513fa50efb425bd6722952d7b61b5115406bb4
|
|
BLAKE2b-256 checksum How to use checksums |
88025537a419268862e9d76eedf4d5771ec578408e2e94441ca2ff323e3ff8b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|