NightStar bbba314127 refactor: extract domain models from provider into internal/model
- Move Server/Domain/DNSRecord/Bucket/StorageInstance/CDNInstance/Order/Error structs to internal/model/
- Provider interfaces now reference model.* types
- Rainyun provider implementations import model package for data types
- CLI commands updated to use model.DNSRecord directly

Separates pure data structures from service contract interfaces,
following hexagonal architecture: models (entities) live independently
from ports (provider interfaces) and adapters (rainyun/* implementations).
2026-07-28 19:31:22 +08:00

ry — Multi-Cloud CLI

A gh-style CLI for managing cloud resources across providers.

Install

go install git.yoresee.cc/nightstar/ry/cmd/ry@latest

Quick Start

ry provider add rainyun
# Enter your API key when prompted

ry server list
ry server start <id>
ry server vnc <id>

Commands

  • ry provider — manage cloud providers (add, use, list)
  • ry server — manage cloud servers (list, get, start, stop, reboot, reinstall, reset-password, vnc)
  • ry domain — manage domains and DNS records
  • ry storage — manage object storage and buckets
  • ry billing — view orders
  • ry config — manage configuration (show, set, path)
  • ry completion — shell completion for bash/zsh/fish

Global Flags

Flag Description
-p, --provider Override cloud provider
-o, --output Output format: table, json, yaml
--raw Raw API response
--debug Debug output

Supported Providers

  • 雨云 (Rainyun) — full support
  • More coming soon

Config

~/.config/ry/config.toml

S
Description
Multi-cloud CLI — manage cloud resources from your terminal
Readme
1.7 MiB
Languages
Go 100%