Command-line interface for managing DNS records via the Spaceship registrar API. Create, update, delete, and query DNS records for your domains directly from the terminal.
| Flag | Short | Description | Takes Value |
|---|---|---|---|
--help |
-h |
Show usage information and available commands | Yes |
--ip |
— | IP address to set for an A or AAAA record | Yes |
--ttl |
— | Time-to-live in seconds for the DNS record (e.g. 3600) | Yes |
--type |
-t |
DNS record type (A, AAAA, CNAME, MX, TXT, NS, SRV, etc.) | Yes |
--value |
— | Record value (e.g. IP address, hostname, or TXT content) | Yes |
# Display available commands and options
$ scorpiox-spaceship-cli --help
# Point example.com to an IP address with a 1-hour TTL $ scorpiox-spaceship-cli --type A --ip 93.184.216.34 --ttl 3600 --value example.com ✓ A record created for example.com → 93.184.216.34 (TTL: 3600)
# Set an IPv6 address for a subdomain $ scorpiox-spaceship-cli --type AAAA --ip 2606:2800:220:1:248:1893:25c8:1946 --ttl 3600 --value api.example.com ✓ AAAA record created for api.example.com → 2606:2800:220:1:248:1893:25c8:1946 (TTL: 3600)
# Alias www to the root domain $ scorpiox-spaceship-cli --type CNAME --value www.example.com --ip example.com --ttl 3600 ✓ CNAME record created: www.example.com → example.com (TTL: 3600)
# Add an SPF record for email authentication $ scorpiox-spaceship-cli -t TXT --value example.com --ip "v=spf1 include:_spf.google.com ~all" --ttl 3600 ✓ TXT record created for example.com (TTL: 3600)
# Route mail through a mail server with priority 10 $ scorpiox-spaceship-cli -t MX --value example.com --ip "10 mail.example.com" --ttl 7200 ✓ MX record created for example.com → 10 mail.example.com (TTL: 7200)
# Use a 60-second TTL for quick DNS propagation during testing $ scorpiox-spaceship-cli --type A --ip 10.0.0.1 --ttl 60 --value staging.example.com ✓ A record created for staging.example.com → 10.0.0.1 (TTL: 60)
scorpiox/scorpiox-spaceship-cli.clibsxutil, yyjson