Skip to content

pomdtr/deta-drive-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A command line companion for Deta Drive

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages