HTMLRun CLI — 把单文件 HTML 发布成可分享的在线链接
Project description
HTMLRun CLI
把本地 HTML 文件发布到 HTMLRun,生成可分享的在线链接。
安装
pip install htmlrun-cli
使用
先在 https://html.run/web/tokens 创建 publish token:
htmlrun login --token h_xxxxxxxx
htmlrun publish report.html
再次发布同一路径文件会追加新版本,并保持原链接不变。
命令
| 命令 | 说明 |
|---|---|
htmlrun login --token h_xxx [--base-url URL] |
保存 token 和服务地址 |
htmlrun logout |
清除本地 token |
htmlrun whoami |
查看当前服务地址与 token 状态 |
htmlrun publish FILE [-m 备注] [--new] [--no-inline] |
发布 HTML 文件 |
环境变量
| 变量 | 作用 |
|---|---|
HTMLRUN_TOKEN |
publish token |
HTMLRUN_BASE_URL |
服务地址,默认 https://html.run |
HTMLRUN_CONFIG_DIR |
配置目录,默认 ~/.htmlrun |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
htmlrun_cli-0.1.1.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file htmlrun_cli-0.1.1.tar.gz.
File metadata
- Download URL: htmlrun_cli-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c70bf8eea95d3afae0bfe2afd87659c9ccea86eee0f9afce9813cd2022d8cf6
|
|
| MD5 |
cefc943fa7ebee62e318743b440f4e50
|
|
| BLAKE2b-256 |
f997141611233bf04d1fa2097f1b8a0dda27acd0f73e0eca58a443dee545c25f
|
File details
Details for the file htmlrun_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: htmlrun_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52c7d18c8a8bf63a4e910ee16d8cdf67bf6bc9793b700536a9ad8609db9795dc
|
|
| MD5 |
266aef5faee069384e071939882648b4
|
|
| BLAKE2b-256 |
c0d5750f6a37bd6a4ac0e0bfeace1429c90c1335b5f28f5f2775e3a5783e81d7
|