CLI for devs. Offline encryption utils and client to bodypace personal and public data servers.
Right now this tool can:
- generate keys
- encrypt and decrypt files locally (offline)
- login to bodypace-personal-data-server
- list files stored on bodypace-personal-data-server belonging to logged in user
- upload to and download files from bodypace-personal-data-server
- remove files from bodypace-personal-data-server
- issue: not all commands work yet when executing them from $PWD different than repo root
- todo: extract sodium to separate repo/npm package and import here (instead of coping from bodypace-frontend)
- todo: extract client logic to separate repo/npm package and import here and in bodypace-frontend
Usage: bodypace-cli [options] [command]
CLI to access bodypace-personal-data-server and encrypt or decrypt locally
Options:
-s, --server <url> URL of server to connect to (default: "http://localhost:8080")
-S, --secrets <secrets.json> File to use as storage of secrets and credentials
-V, --version output the version number
-h, --help display help for command
Commands:
show-secrets Display personal key, access token and credentials
generate-key [options] Generate a new personal key
encrypt <inputFile> [outputDir] Encrypt a file with a personal key
decrypt <inputFile> [outputDir] Decrypt a file with a personal key
show-credentials Display last username and password sent to server
forget-credentials Remove stored username and password
register [username] [password] Create a new user and get access token from server
login [username] [password] Get access token from server
logout Remove stored access token
ping Check if server is reachable and access token is valid
get-files [options] Get list of all files on server belonging to logged in user
get-file [options] <file-id> Download one file from server
upload-file [options] <file> Upload one file to server
remove-file <file-id> Remove one file from server
help [command] display help for command
The issues list of this repo is for bug reports and feature requests, but also questions. Therefore, if you need support or want to discuss something, simply create a question. Alternatively, do not hesitate to write an email to: contact@bodypace.org.
Bodypace is licensed under Apache License 2.0.