Save multi-line deployment scripts to your vault and run them from anywhere with one command.
Single-line shell commands.
kubectl get pods -n prod
Multi-line shell scripts.
#!/bin/bash git pull npm install pm2 restart
Create a file deploy.sh:
deploy.sh
#!/bin/bash
set -e
echo "Deploying..."
git pull origin main
npm ci
npm run build
pm2 restart app
echo "Done!"
recall snippet save deploy-prod --file deploy.sh --tags deploy,prod
✔ Saved snippet "deploy-prod"
recall snippet run deploy-prod
Deploying...
Already up to date.
Done!