Ready-to-run examples demonstrating server-scripts-cli features.
examples/
├── README.md # This file
├── manifest.example.yaml # Sample manifest configuration
└── demo-scripts/ # 4 demonstration scripts
├── backup-example.sh
├── deploy-example.sh
├── health-check.sh
└── monitoring-example.sh
| Script | Type | Description | Size |
|---|---|---|---|
| backup-example.sh | Admin | Scheduled backup with root privileges | 1.3K |
| monitoring-example.sh | Report | System metrics collection | 1.1K |
| health-check.sh | Check | Service health validation | 1.2K |
| deploy-example.sh | Admin | Deployment automation | 1.4K |
git clone https://github.com/fidpa/server-scripts-cli
cd server-scripts-cli./generate-manifest.shThis creates manifest.yaml from YAML front-matter in demo-scripts/.
./ssc.sh listShows all demo scripts with metadata (type, status, category, timer).
# Run backup example (requires root)
./ssc.sh run backup-example
# Show monitoring script details
./ssc.sh info monitoring-example
# Execute health check
./ssc.sh run health-checkDemonstrates:
requires_root: true- Sudo executiontype: admin- Admin classificationdeployment: systemd- Timer-based scheduling- Error handling and logging
Demonstrates:
type: report- Report generationcategory: monitoring- Categorization- Metrics collection
- JSON output format
Demonstrates:
type: check- Validation scriptsstatus: active- Production status- Service availability checks
- Exit codes (0=success, 1=failure)
Demonstrates:
type: admin- Administrative taskscategory: deployment- Deployment workflows- Pre/post deployment hooks
- Rollback logic
See manifest.example.yaml for complete YAML structure:
scripts:
backup-example:
path: examples/demo-scripts/backup-example.sh
type: admin
requires_root: true
deployment: systemd
service: backup-example.timer
status: active- Read Scripts: Start with
monitoring-example.sh(simplest) - Understand YAML: Check YAML front-matter in each script
- Generate Manifest: Run
./generate-manifest.sh - Execute: Try
./ssc.sh run monitoring-example - Customize: Modify scripts for your use case
- MANIFEST_SCHEMA.md - Complete YAML reference
- SETUP.md - Installation guide
- Main README - Project overview
Found a bug in examples? Want to add more demos? See CONTRIBUTING.md.
Last Updated: 2026-01-20