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
- Open Typora and set
cli
->Preference
->Image
->Upload Image
->Custom Command
->/home/xxx/bitiful
Endpoint: s3.bitiful.net
Region: cn-east-1
AccessKeyID: "xxxxxxxxxxx"
AccessKeySecret: "xxxxxxxxxxxxxxxx"
BucketName: "xxxxxxxxxx"
Path: "/xxxxxxxx/"
bitiful -u -n "20220903" -f https://example.com/20220903.jpg
bitiful -u -f/Users/xxx/xxx.png -nTest.png
- file
- url
- [?] ftp/smb/afs