# zeitkapsl-cli

zeitkapsl-cli help

All zeitkapsl related data is stored in $HOME/zeitkapsl or C:\Users\<username>\zeitkapsl on Windows.

## Installation

### Windows
For windows, just extact the zip file to a directory of your choice and run the batch files in that directory.

### Linux
For Linux make sure you have the following dependencies installed:

- vipsthumbnail
- ffmpeg
- ffprobe

You can check your install using `zeitkapsl-cli doctor`.

### macOS

`brew install ffmpeg vips`

You can check your install using `zeitkapsl-cli doctor`.

- vips

## Quick Commands for Windows

zeitkapsl-cli-login.bat - starts login (only required once)
zeitkapsl-cli-sync.bat - upload new files in $HOME/zeitkapsl/library (can be used upload new items, requires login first)
zeitkapsl-cli-logout.bat - logout (only required once)


## Usage

- `zeitkapsl-cli login` - Log in to the server (required once)
- `zeitkapsl-cli status` - Shows info about your account and checks if all dependencies are installed correctly
- `zeitkapsl-cli sync add-directory <somepath>` - Adds a directory to the list of directories to be synced. The directory should contain media files (photos/videos) that you want to upload to the server.
- `zeitkapsl-cli sync remove-directory <somepath>` - Removes a directory again from the scan. This won't delete any files.
- `zeitkapsl-cli sync` - Starts the synchronization process. It will scan the directories added with `add-directory` and upload new files to the server.
- `zeitkapsl-cli export --target <somepath>` - Exports all photos and videos from the zeitkapsl server to the specified filesystem.
- `zeitkapsl-cli logout` - Logs out from your account.

## Help output
`zeitkapsl-cli help`

an end-to-end encrypted photo and video backup and sharing solution

Usage:
  zeitkapsl-cli [flags]
  zeitkapsl-cli [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  export      export all photos and videos from zeitkapsl server
  help        Help about any command
  login       Log in to the server
  logout      Log out
  status      Print client and server status information
  sync        sync with zeitkapsl server
  trash-all   puts all media items in the trash
  trash-empty permanently deletes all items in the trash

Flags:
      --directory string     directory for upload/download (default "/home/cinemast/zeitkapsl")
      --environment string   server used to connect to (default "TEST")
  -h, --help                 help for zeitkapsl-cli
      --loglevel string      log level (default "ERROR")
      --quiet                quiet output
      --worker int           parallel workers (default 32)

Use "zeitkapsl-cli [command] --help" for more information about a command.
