Skip to content

DataManager-Go/DataManagerCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataManagerClient

This is the client for the DataManagerServer. It supports uploading, downloading, editing, deleting, moving and en/decrypting files.

Screenshot

File List

Installation

Use the newest binary from the releases or compile it by yourself:

Go 1.11+ is required

go mod download && go build -o main && sudo mv main /usr/local/bin/manager

Setup

Run manager setup <host> to create a configuration file and login.
Alternatively you can use manager setup <host> --register to create an account instead of loggin in.
If you want to create a config and don't want to login/register at all, run manager setup <host> --no-login
If Your server has no valid SSL certificate, but you want to use it anyway (not recommended), use the --Ignore-cert flag.

Register/Login

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

Config

Client

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

Default

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

Usage

manager [<flags>] <command> [<args> ...]

Tipp: Run manager --help-man | man -l - to view the manpage of manager

Autocompletion

Bash

eval "$(manager --completion-script-bash)"

Zsh

eval "$(manager --completion-script-zsh)"

Keyring

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.

Keystore

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.

Examples

User

  • Setup manager setup <serverURL> // create a new config and login
  • Register manager register
  • Login manager login

Files

  • 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>

Namespace

  • List all your namespaces manager namespaces
  • Create a namespace manager namespace create <name>
  • Delete a namespace manager namespace delete <name>

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages