|
1 | 1 | # `dbxcli`: Dropbox from the command line |
2 | 2 |
|
3 | 3 | [](https://github.com/dropbox/dbxcli/actions/workflows/ci.yml) |
4 | | -[](https://goreportcard.com/report/github.com/dropbox/dbxcli/v3) |
| 4 | +[](https://goreportcard.com/report/github.com/dropbox/dbxcli/v3) |
5 | 5 |
|
6 | 6 | `dbxcli` is a scriptable Dropbox CLI for files, shared links, teams, and |
7 | 7 | automation workflows. It is built for humans at the terminal, scripts, CI jobs, |
@@ -34,6 +34,9 @@ dbxcli --help --output=json |
34 | 34 | dbxcli put --help --output=json |
35 | 35 | ``` |
36 | 36 |
|
| 37 | +Stable JSON error codes and process exit codes are documented in |
| 38 | +[Automation and JSON output](https://github.com/dropbox/dbxcli/blob/master/docs/automation.md). |
| 39 | + |
37 | 40 | ## Common workflows |
38 | 41 |
|
39 | 42 | Upload a file: |
@@ -66,12 +69,20 @@ Create a shared link: |
66 | 69 | dbxcli share-link create /Reports/report.pdf |
67 | 70 | ``` |
68 | 71 |
|
69 | | -Use JSON output: |
| 72 | +In text mode, `share-link create` prints only the shared-link URL to stdout: |
70 | 73 |
|
71 | 74 | ```sh |
72 | | -dbxcli ls --output=json / |
| 75 | +url="$(dbxcli share-link create /Reports/report.pdf)" |
73 | 76 | ``` |
74 | 77 |
|
| 78 | +## Troubleshooting |
| 79 | + |
| 80 | +### Why can uploading to `/remote.txt` fail on team accounts? |
| 81 | + |
| 82 | +Some team accounts may not have a writable Dropbox root namespace. Run |
| 83 | +`dbxcli ls /` first, then upload under a writable folder, such as your personal |
| 84 | +folder or a team folder. |
| 85 | + |
75 | 86 | ## Features |
76 | 87 |
|
77 | 88 | * File operations: `ls`, `cp`, `mkdir`, `mv`, `rm`, `put`, and `get` |
@@ -174,8 +185,8 @@ dbxcli put --help --output=json |
174 | 185 | * [JSON schema v1](https://github.com/dropbox/dbxcli/blob/master/docs/json-schema/v1/README.md) |
175 | 186 | * [Release history](https://github.com/dropbox/dbxcli/blob/master/CHANGELOG.md) |
176 | 187 |
|
177 | | -Generated Cobra command docs live under `docs/commands/` and are kept close to |
178 | | -the actual CLI by `go run ./tools/gen-docs`. |
| 188 | +Generated Cobra command docs live under `docs/commands/`, and CI verifies they |
| 189 | +stay in sync with the CLI. |
179 | 190 |
|
180 | 191 | ## Contributing |
181 | 192 |
|
|
0 commit comments