Show the current state of a deployment instance: git info and systemd unit status.
deploy [--config FILE] status <instance_name> [<ssh_host>] [-p PORT]
| Argument |
Required without config |
Description |
instance_name |
Always |
Name of the previously configured instance |
ssh_host |
If not in config |
SSH target, or localhost / omit for local execution |
| Option |
Default |
Description |
-p, --port |
— |
SSH port on the remote host |
Instance: odoo-myproject-production
Remote: git@github.com:org/repo.git
Branch: main (abc1234)
Unit: active (running) since 2026-03-09 08:12:03
- Connect — open SSH connection if
ssh_host is not localhost.
- Git info — inside
~/<instance_name>:
git remote get-url origin → remote URL
git rev-parse --abbrev-ref HEAD → branch
git rev-parse --short HEAD → commit hash
- Unit status — via
systemctl --user show.
| Condition |
Exit code |
| All steps succeeded |
0 |
| SSH connection failed |
1 |
| Instance directory not found |
1 |
# Read ssh_host from deploy.yml
deploy status odoo-myproject-production
# Explicit host
deploy status odoo-myproject-production deploy@myserver.example.com
# Custom SSH port
deploy status odoo-myproject-production -p 2222