auberge sync hermes
Sync ~/.config/hermes/config.yaml to /home/hermes/.hermes/config.yaml on a remote host and restart hermes-gateway. Alias: auberge sy h.
auberge sync hermes [OPTIONS]Every remote step runs as the hermes user through the host’s become_method, so the ssh user needs sudo. Creates /home/hermes/.hermes/ if absent; fails if hermes was never deployed. Pass --pull to reverse direction (downloads remote → local, no service restart). SSH key: host.ssh_key from hosts.toml if set, else ~/.ssh/identities/{host}/{user}.
Options
Section titled “Options”| Option | Description | Default |
|---|---|---|
-H, --host HOST |
Target host | Interactive |
-s, --source PATH |
Local path (source on push, destination on pull) | ~/.config/hermes/config.yaml |
-n, --dry-run |
Preview without syncing | false |
-p, --pull |
Pull remote config to local instead of pushing | false |
Examples
Section titled “Examples”auberge sync hermes --host myserverauberge sync hermes --host myserver --dry-runauberge sync hermes --host myserver --pullauberge sync hermes --host myserver --pull --source /tmp/hermes-config.yamlGotchas
Section titled “Gotchas”--dry-runand--pullare mutually exclusive.- Service restart failures:
ssh user@your-vps 'sudo journalctl _UID=$(id -u hermes) -n 50'.