scorpiox-spaceship-cli Network

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.

Supported Platforms

Linux x64 Linux ARM64 macOS ARM64 Windows x64

Flags & Options

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

Usage Examples

Show help
# Display available commands and options
$ scorpiox-spaceship-cli --help
Create an A record
# 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)
Create an AAAA record (IPv6)
# 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)
Create a CNAME record
# 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)
Create a TXT record (SPF / verification)
# 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)
Create an MX record
# 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)
Set a short TTL for testing
# 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)

Source & Build Info

Source File
scorpiox/scorpiox-spaceship-cli.c
Lines of Code
838
Dependencies
libsxutil, yyjson

Related Tools