deta-drive
is a command line companion for Deta Drive. It allows you to manage your Deta Drive files from the command line.
go install github.com/pomdtr/deta-drive@latest
The cli supports most of the classic unix commands you are used to. Use deta-drive help
to get a list of all commands.
You can authenticate with the cli using the DETA_PROJECT_KEY
environment variable, or by using the --data-key
flag.
deta-drive cp ./file.txt deta://my-drive/file.txt
deta-drive cp deta://my-drive/file.txt ./file.txt
deta-drive ls deta://my-drive/
deta-drive cat deta://my-drive/file.txt
deta-drive rm deta://my-drive/file.txt