Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: XRSec/bitiful-typora-upload-cli

0.0.86

13 Aug 07:11
@Ran-Xing Ran-Xing

Choose a tag to compare

Bitiful Typora 图片上传 命令行工具

show1

show2

安装与使用

  1. 发布版下载
bitiful # 需要配置文件
bitiful "/example/example.png"
bitiful "https://example.com/example.png"
bitiful /path/to/1.png /path/to/2.jpg # 支持多文件批量上传
  1. 开发构建
git clone https://github.com/XRSec/bitiful-typora-upload-cli.git
cd bitiful-typora-upload-cli
# 编辑 bitifulUrl 变量
CGO_ENABLED=0 go build -o bitiful
# mv bitiful /usr/local/bin
# cd .. && rm -rf bitiful-typora-upload-cli
  1. 打开 Typora,偏好设置 -> 图片 -> 上传图片 -> 自定义命令 -> /home/xxx/bitiful

配置文件

配置文件路径:~/Library/Application\ Support/bitiful.yml

配置文件示例

Endpoint: s3.bitiful.net
Region: cn-east-1
AccessKeyID: "xxxxxxxxxxx"
AccessKeySecret: "xxxxxxxxxxxxxxxx"
BucketName: "xxxxxxxxxx"
Path: "/xxxxxxxx/"

指定文件名(覆盖上传)

如需自定义上传后的文件名(如封面图),可用 -n 参数:

bitiful -n "20220903.jpg" https://example.com/20220903.jpg
bitiful -n Test.png /Users/xxx/xxx.png
  • 仅当指定 -n 时,才会用该名字覆盖同名文件。
  • 未指定 -n 时,自动生成唯一文件名,绝不覆盖。

多文件批量上传

直接在命令行追加多个文件或URL即可:

bitiful /path/to/1.png /path/to/2.jpg

日志与调试

-v 参数可显示详细日志,便于排查问题:

bitiful -v /path/to/1.png

功能进度

  • 本地文件上传
  • URL 上传
  • [?] ftp/smb/afs
Assets 17
  • sha256:3d155395e3389f14d1d17f6a9e6d605e5dec931871c39172c2d462dfe9b85e2a
    13.6 MB 2025年08月13日T07:11:32Z
  • sha256:2fefab66c2983d0d3caf7b7a09c01af6d477dae002a0dbb3fdd70f358cd8a6a0
    13.1 MB 2025年08月13日T07:11:32Z
  • sha256:2531ca72e8abd1d62e6873cf04f0720ee6f11450d17fcb9e7bce02bb0c72a1ac
    12.7 MB 2025年08月13日T07:11:32Z
  • sha256:589bac6b1ea5bcf9b0a54efa4fec96e9601f26636faf4dde90fafd142eef59e2
    13.4 MB 2025年08月13日T07:11:32Z
  • sha256:0055e0a0431a11156601a4acbd2bd14223475c2d7c5ffde3e359f595dbbc9c03
    12.9 MB 2025年08月13日T07:11:32Z
  • sha256:b67a7736bee12efc5eb00822877a1e2b194b6823b0afa29aa42d9a4fdd16ca1d
    12.8 MB 2025年08月13日T07:11:32Z
  • sha256:25f41b2c707a5d8078ce68f9244fb7d355892e7db20f5be0098ad0770d9ce9b7
    14.6 MB 2025年08月13日T07:11:32Z
  • sha256:067ef396e78f0d67b89d79363eed0ecfe5cac5d5d21f9cd6dba0e2df0de97703
    14.5 MB 2025年08月13日T07:11:32Z
  • sha256:b8bfb0f777d8f7932c8de6f7b14d7d8858fdb0214243fa2d6df7295b86ad5354
    14.5 MB 2025年08月13日T07:11:32Z
  • sha256:9e2a756f61c3f10d8eb85110e011a9c6e1ea813c965cb3094943b426e61c0dea
    14.6 MB 2025年08月13日T07:11:32Z
  • 2025年08月13日T07:05:40Z
  • 2025年08月13日T07:05:40Z

0.0.85

12 Aug 13:07
@Ran-Xing Ran-Xing
285173d
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

Bitiful Typora 图片上传 命令行工具

show1

show2

安装与使用

  1. 发布版下载
bitiful # 需要配置文件
bitiful "/example/example.png"
bitiful "https://example.com/example.png"
bitiful /path/to/1.png /path/to/2.jpg # 支持多文件批量上传
  1. 开发构建
git clone https://github.com/XRSec/bitiful-typora-upload-cli.git
cd bitiful-typora-upload-cli
# 编辑 bitifulUrl 变量
CGO_ENABLED=0 go build -o bitiful
# mv bitiful /usr/local/bin
# cd .. && rm -rf bitiful-typora-upload-cli
  1. 打开 Typora,偏好设置 -> 图片 -> 上传图片 -> 自定义命令 -> /home/xxx/bitiful

配置文件

配置文件路径:~/Library/Application\ Support/bitiful.yml

配置文件示例

Endpoint: s3.bitiful.net
Region: cn-east-1
AccessKeyID: "xxxxxxxxxxx"
AccessKeySecret: "xxxxxxxxxxxxxxxx"
BucketName: "xxxxxxxxxx"
Path: "/xxxxxxxx/"

指定文件名(覆盖上传)

如需自定义上传后的文件名(如封面图),可用 -n 参数:

bitiful -n "20220903.jpg" https://example.com/20220903.jpg
bitiful -n Test.png /Users/xxx/xxx.png
  • 仅当指定 -n 时,才会用该名字覆盖同名文件。
  • 未指定 -n 时,自动生成唯一文件名,绝不覆盖。

多文件批量上传

直接在命令行追加多个文件或URL即可:

bitiful /path/to/1.png /path/to/2.jpg

日志与调试

-v 参数可显示详细日志,便于排查问题:

bitiful -v /path/to/1.png

功能进度

  • 本地文件上传
  • URL 上传
  • [?] ftp/smb/afs
Loading

0.0.84

16 Jul 10:31
@Ran-Xing Ran-Xing

Choose a tag to compare

Bitiful Typora 图片上传 命令行工具

show1

show2

安装与使用

  1. 发布版下载
bitiful # 需要配置文件
bitiful "/example/example.png"
bitiful "https://example.com/example.png"
bitiful /path/to/1.png /path/to/2.jpg # 支持多文件批量上传
  1. 开发构建
git clone https://github.com/XRSec/bitiful-typora-upload-cli.git
cd bitiful-typora-upload-cli
# 编辑 bitifulUrl 变量
CGO_ENABLED=0 go build -o bitiful
# mv bitiful /usr/local/bin
# cd .. && rm -rf bitiful-typora-upload-cli
  1. 打开 Typora,偏好设置 -> 图片 -> 上传图片 -> 自定义命令 -> /home/xxx/bitiful

配置文件

配置文件路径:~/Library/Application\ Support/bitiful.yml

配置文件示例

Endpoint: s3.bitiful.net
Region: cn-east-1
AccessKeyID: "xxxxxxxxxxx"
AccessKeySecret: "xxxxxxxxxxxxxxxx"
BucketName: "xxxxxxxxxx"
Path: "/xxxxxxxx/"

指定文件名(覆盖上传)

如需自定义上传后的文件名(如封面图),可用 -n 参数:

bitiful -n "20220903.jpg" https://example.com/20220903.jpg
bitiful -n Test.png /Users/xxx/xxx.png
  • 仅当指定 -n 时,才会用该名字覆盖同名文件。
  • 未指定 -n 时,自动生成唯一文件名,绝不覆盖。

多文件批量上传

直接在命令行追加多个文件或URL即可:

bitiful /path/to/1.png /path/to/2.jpg

日志与调试

-v 参数可显示详细日志,便于排查问题:

bitiful -v /path/to/1.png

功能进度

  • 本地文件上传
  • URL 上传
  • [?] ftp/smb/afs
Loading

0.0.83

16 Jan 16:38
@Ran-Xing Ran-Xing

Choose a tag to compare

Bitiful Typora Upload CLI

show1

show2

Install & Use

  1. Release Download
bitiful # require config file
bitiful "/example/example.png"
bitiful "https://example.com/example.png"

or dev build

git clone https://github.com/XRSec/bitiful-typora-upload-cli.git
cd bitiful-typora-upload-cli
# Edit bitifulUrl in bitiful-typora-upload-cli.go
CGO_ENABLED=0 go build -o bitiful
# mv bitiful /usr/local/bin
# cd .. && rm -rf bitiful-typora-upload-cli
  1. Open Typora and set cli -> Preference -> Image -> Upload Image -> Custom Command -> /home/xxx/bitiful

Config

Endpoint: s3.bitiful.net
Region: cn-east-1
AccessKeyID: "xxxxxxxxxxx"
AccessKeySecret: "xxxxxxxxxxxxxxxx"
BucketName: "xxxxxxxxxx"
Path: "/xxxxxxxx/"

Cover image

bitiful -u -n "20220903" -f https://example.com/20220903.jpg
bitiful -u -f/Users/xxx/xxx.png -nTest.png

Doing

  • file
  • url
  • [?] ftp/smb/afs
Loading

AltStyle によって変換されたページ (->オリジナル) /