Cryptomator Hub CLI is a command line tool for managing Cryptomator Hub.
Cryptomator Hub CLI is sponsored by
If Keycloak of your Cryptomator Hub instance was not created with the Cryptomator Hub CLI option, you need to:
- Importing the Client and User via Realm Settings → Actions → Partial Import from the following config file: cryptomatorhub-cli.json
- Retrieve the Client Secret from Clients →
cryptomatorhub-cli
→ Credentials. You'll need it to login viahub login client-credentials
- Add the
view-clients
permission to thesyncer
role
Usage: hub [-hV] [COMMAND]
Manage Cryptomator Hub instances via CLI.
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
Commands:
login Login to the hub instance and retrieve an access token.
setup Initialize key pairs and registers with Hub. Prints this user's setup
code to STDOUT on success.
vault Manage vaults.
group Manage groups.
user Manage users.
The complete list of commands:
hub
├─ login
│ ├─ client-credentials
│ ├─ authorization-code
├─ setup
├─ vault
│ ├─ list
│ ├─ create
│ ├─ update
│ ├─ add-user / add-group
│ ├─ remove-user / remove-group
│ ├─ recoverykey
│ ├─ create-template
├─ user
│ ├─ list
├─ group
│ ├─ list
Download native binaries of Cryptomator Hub CLI from https://github.com/cryptomator/hub-cli/releases or clone and build Cryptomator Hub CLI using Maven (instructions below).
Cryptomator Hub CLI supports shell auto-completion for bash and ZSH. To archive this, download the HubCli_completion.sh
file from releases and apply it by sourcing, for example.
See https://picocli.info/man/3.x/autocomplete.html#_install_completion_script for more options.
- GraalVM JDK 21
- Maven 3
- System toolchain (see GraalVM docs)
mvn clean install -Pnative
This will build an executable (hub
) under target
.