A CLI tool for managing scripts and tasks on your NAS system.
- DDNS Management: Update Cloudflare DNS records with current public IP
- ACME Certificates: Issue/renew Let's Encrypt certificates via Cloudflare DNS
curl -fsSL https://raw.githubusercontent.com/SlashGordon/scripts/main/install.sh | sh
Download the appropriate binary for your system from the releases page.
Configuration is loaded in this priority order:
NAS_CONFIG
environment variable (custom path).nasrc
in working directory.nasrc
in home directory- Environment variables
Copy .nasrc.example
to .nasrc
and set your credentials:
cp .nasrc.example .nasrc
# Edit .nasrc with your actual values
Or use a custom config path:
NAS_CONFIG=/path/to/config nas-manager ddns update
Required environment variables:
CF_API_TOKEN
- Cloudflare API token (used for both DDNS and ACME)CF_ZONE_ID
- Cloudflare zone ID (for DDNS)CF_RECORD_NAME
- DNS record name to updateACME_DOMAIN
- Domain for certificateACME_EMAIL
- Email for Let's Encrypt registration
# Show help
nas-manager --help
# DDNS commands
nas-manager ddns update
# ACME certificate management
nas-manager acme issue
# Build for current platform
make build
# Build for all platforms
make build-all
# Clean build artifacts
make clean
Binaries are automatically built for:
- Linux (amd64, arm64)
- macOS (amd64, arm64)