https://github.com/pomdtr/deta-drive-cli
A command line companion for Deta Drive
https://github.com/pomdtr/deta-drive-cli
deta deta-drive
Last synced: 6 months ago
JSON representation
A command line companion for Deta Drive
- Host: GitHub
- URL: https://github.com/pomdtr/deta-drive-cli
- Owner: pomdtr
- License: mit
- Created: 2023-02-24T16:25:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T13:25:51.000Z (over 2 years ago)
- Last Synced: 2025-03-25T19:21:17.831Z (7 months ago)
- Topics: deta, deta-drive
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `deta-drive` - A command line companion for Deta Drive
`deta-drive` is a command line companion for Deta Drive. It allows you to manage your Deta Drive files from the command line.
## Installation
```bash
go install github.com/pomdtr/deta-drive@latest
```## Usage
The cli supports most of the classic unix commands you are used to. Use `deta-drive help` to get a list of all commands.
### Authentication
You can authenticate with the cli using the `DETA_PROJECT_KEY` environment variable, or by using the `--data-key` flag.
## Examples
### Upload a file
```bash
deta-drive cp ./file.txt deta://my-drive/file.txt
```### Download a file
```bash
deta-drive cp deta://my-drive/file.txt ./file.txt
```### List files
```bash
deta-drive ls deta://my-drive/
```### Print file content
```bash
deta-drive cat deta://my-drive/file.txt
```### Remove a file
```bash
deta-drive rm deta://my-drive/file.txt
```