This is the client for the DataManagerServer. It supports uploading, downloading, editing, deleting, moving and en/decrypting files.
Go 1.11+ is required
go mod download && go build -o main && sudo mv main /usr/local/bin/manager
Run manager ping
once to create a config file in ~/.dmanager/
. Change the 'server.url' to your DataManager server url.
Use manager register
to create an account. The allowregistration
must be set to true in the server config.
Use manager login
to login into your account
autofilepreview
Preview files using the default application. If you turn it off you will see the file content in the terminal
defaultorder
The default order for listing files. (id, name, size, pubname, created, namespace). Add '/r' at the end to reverse the order
defaultdetails
The depth of details if no --details flag was set
trimnameafter
Trims filename after n chars and append a ...
to the end of the filename
namespace
The default namespace to use
tags
Specify tags to use as default for uploading filetags
groups
Specify groups to use as default for uploading filegroups
manager [<flags>] <command> [<args> ...]
Tipp: Run manager --help-man | man -l -
to view the manpage of manager
eval "$(manager --completion-script-bash)"
eval "$(manager --completion-script-zsh)"
A keyring is a secure storage for passwords, keys and token. This app can and should use one. This is required in order to use a keyring.
The keystore is a local folder containing all of your keys and a sqlite database with the keys assigned to the files. You can use a
custom directory to store them secure (eg using an encrypted vault). Have in mind, that all of those keys are stored unencrypted, so
watch for it's access permissions.
To use it run "manager keystore create ". Your keys will be saved in this directory automatically
manager keystore --help
shows you a list with available commands.
- Setup
manager setup <serverURL>
// create a new config and login - Register
manager register
- Login
manager login
- Upload and share your .bashrc
manager upload -t dotfile -g myLinuxGroup --public ~/.bashrc
- Upload and encrypt your .bashrc
manager upload ~/.bashrc --encrypt aes -r
- List files
manager files
- List files having the a tag called 'dotfile'
manager files -t dotfile
- Delete file by ID
manager file rm 123
- Delete file by Name
manager file rm aUniqueName.go
- Delete all files in namespace
manager file rm % -ay
- Edit a file
manager file edit 123
- Add tags to a file
manager file update --ad-tags t1,t2
- Publish a file
manager file publish <fileID>
- List all your namespaces
manager namespaces
- Create a namespace
manager namespace create <name>
- Delete a namespace
manager namespace delete <name>