dropbox的纯命令行操作

gyu*_*yuu 9 cygwin bash dropbox command-line

是否可以通过纯命令行解决方案(例如 bash 脚本)使用 dropbox 帐户?

到目前为止我还没有找到这个问题的全面答案。

我已经使用 Git 一段时间了,从命令行使用它非常容易。如果 dropbox 没有强大的命令行版本,那么有哪些替代品可以替代 dropbox 并具有此功能?

2020 年即将结束,也许情况已经发生了变化。我使用 Windows,但会通过 Cygwin 访问 dropbox,这基本上是一种在 Windows 中访问类似 Linux 功能的方法。

Dav*_*ill 5

通过纯命令行解决方案使用 Dropbox 帐户吗?

您尝试过dbxcli吗?

dbxcli:适用于 Dropbox 用户和团队管理员的命令行工具

特征

  • 支持基本文件操作,如 ls、cp、mkdir、mv(通过文件 API)
  • 支持搜索
  • 支持文件修改和文件恢复
  • 大文件分块上传,大目录分页列表
  • 支持越来越多的团队运营

安装

从发布页面下载适用于 Mac、Windows 和 Linux 的预编译二进制文件。

...

$ dbxcli --help
Use dbxcli to quickly interact with your Dropbox, upload/download files,
manage your team and more. It is easy, scriptable and works on all platforms!

Usage:
  dbxcli [command]

Available Commands:
  cp          Copy files
  du          Display usage information
  get         Download a file
  ls          List files
  mkdir       Create a new directory
  mv          Move files
  put         Upload files
  restore     Restore files
  revs        List file revisions
  rm          Remove files
  search      Search
  team        Team management commands
  version     Print version information

Flags:
      --as-member string   Member ID to perform action as
  -v, --verbose            Enable verbose logging

Use "dbxcli [command] --help" for more information about a command.

$ dbxcli team --help
Team management commands

Usage:
  dbxcli team [command]

Available Commands:
  add-member    Add a new member to a team
  info          Get team information
  list-groups   List groups
  list-members  List team members
  remove-member Remove member from a team

Global Flags:
      --as-member string   Member ID to perform action as
  -v, --verbose            Enable verbose logging

Use "dbxcli team [command] --help" for more information about a command.
Run Code Online (Sandbox Code Playgroud)

来源:dropbox/dbxcli:使用 Go SDK 构建的 Dropbox 命令行客户端