Skip to content

geekdada/flomo-cli

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

flomo-cli

Go codecov

A CLI tool for flomo.

📥 安装

# 支持在不同平台运行
curl -sf https://gobinaries.com/geekdada/flomo-cli | sh

或者Releases 页面下载对应的二进制文件。目前有:

  • flomo-cli-darwin-amd64.gz
  • flomo-cli-freebsd-386.gz
  • flomo-cli-freebsd-amd64.gz
  • flomo-cli-linux-386.gz
  • flomo-cli-linux-amd64.gz
  • flomo-cli-linux-armv5.gz
  • flomo-cli-linux-armv6.gz
  • flomo-cli-linux-armv7.gz
  • flomo-cli-linux-armv8.gz
  • flomo-cli-windows-386.zip
  • flomo-cli-windows-amd64.zip
  • flomo-cli-windows-arm32v7.zip

macOS 系统请使用 flomo-cli-darwin-amd64.gz

👉 使用

添加一条新的墨

$ flomo-cli new --api <YOUR_API> "一条新的墨"

添加一条带标签的墨

$ flomo-cli new --api <YOUR_API> --tag "随手记" "一条新的墨"

🔮 效果

CleanShot 2020-12-24 at 20.27.55@2x.png

使用环境变量来指定 API

$ export FLOMO_API=<YOUR_API>
$ flomo-cli new --tag "随手记" "一条新的墨"

将文本文件添加到浮墨

$ cat memo.txt | flomo-cli new --tag "Quote"

LICENCE

MIT