Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 921 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 921 Bytes

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

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

deta-drive cp ./file.txt deta://my-drive/file.txt

Download a file

deta-drive cp deta://my-drive/file.txt ./file.txt

List files

deta-drive ls deta://my-drive/

Print file content

deta-drive cat deta://my-drive/file.txt

Remove a file

deta-drive rm deta://my-drive/file.txt