regru-cli is a Bun-based command line tool for REG.RU API2 focused on non-reseller workflows.
Official API docs: https://www.reg.ru/reseller/api2doc
cd ~/dev/regru-cli
bun install
bun link
regru --helpSecrets are never accepted in argv flags.
regru cfg set username your-username
printf 'your-password' | regru cfg set password -
regru cfg set endpoint=https://api.reg.ru/api/regru2 timeout=20000 retries=1Environment variables override config:
REGRU_USERNAMEREGRU_PASSWORDREGRU_ENDPOINTREGRU_TIMEOUTREGRU_RETRIESREGRU_REGION
# Basic connectivity
regru nop
# List all services
regru services list
# List domains only
regru domains list
# Get zone records
regru zone records example.test
# Add DNS TXT record (non-reseller API)
regru zone add txt example.test subdomain=_acme-challenge text='token-value' ttl=300
# Generic call for any non-reseller endpoint
regru do service/get_list servtype=domaincfg|config- config management (list|ls|path|get|set|unset|import|export)doctor|check- read-only readiness checksskill- prints skill install URLnop- authenticated no-op checkservices listdomains listzone records|add|remove|update|cleardo|run|gen- generic non-reseller method callresult,wait- reserved; not supported for REG.RU synchronous API flow
- default: human output
--plain: stable line-oriented output--json: single JSON object output
- Reseller API methods are intentionally blocked in this CLI.
- Full config roundtrip:
regru cfg export --json > cfg.json
regru cfg import --json < cfg.json