CLI reference/Get started/trust
clavis trust add
Check a server's certificate and trust it
clavis trust add [SERVER] [flags]Connect to the server, show its certificate (subject, expiry, SHA-256 fingerprint) and ask whether to trust it. Without an argument it uses the server from --server or .clavis.yaml.
With --fingerprint, nothing is asked: the certificate is trusted if it matches, and refused otherwise. Both the certificate fingerprint and the public key fingerprint are accepted, with or without colons.
If the certificate is already trusted (by the system or by an earlier pin), trust add says so and changes nothing.
Examples
clavis trust add https://192.168.1.20Non-interactive
clavis trust add clavis.lan --fingerprint 9e1c…f9Flags
--fingerprint string- expected SHA-256 of the certificate or its public key; trusts without asking
Details
In a script without a terminal, trust add without --fingerprint fails and prints the fingerprint to check, instead of trusting blindly.
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command