rykloud resources add
Add a resource: postgres, redis, bucket, service, secret or domain
Adds a resource to an environment. The change is previewed with its price and applied when you confirm. Settings not given take the environment's defaults (small and stoppable in development, highly available with point-in-time recovery in production).
Usage
rykloud resources add KIND NAME [flags]Examples
rykloud resources add postgres db --env staging
rykloud resources add postgres db --env production --set size=pg-m --set storage_gb=50
rykloud resources add redis cache --env staging
rykloud resources add bucket uploads --env staging --set versioning=true
rykloud resources add service web --env staging --image ghcr.io/acme/web:1.4.2 --set port=8080
rykloud resources add service api --env staging --repo acme/api --branch main --connection 3f2a...
rykloud resources add secret app --env staging --secret STRIPE_KEY=- --generate SESSION_SECRET
rykloud resources add domain shop --env production --hostname shop.example.com --service webFlags
- --auto-deploy
- with --repo: build and deploy every push to the branch (default true)
- --branch
- with --repo: the branch to build
- --connection
- with --repo: the Git connection id (the console, Settings, Git)
- --context-dir
- with --repo: the build context's path
- --dockerfile
- with --repo: the Dockerfile's path
- --generate
- a secret Rykloud makes a random value for (repeat)
- --hostname
- a domain: the hostname, for example shop.example.com
- --image
- a service from an image: registry/name:tag or @digest
- --repo
- a service from Git: owner/name of a connected repository
- --secret
- a secret value as NAME=value, NAME=@file or NAME=- (standard input); repeat
- --service
- a domain: the service it points at
- --set
- a setting as key=value (repeat; dots nest: backups.keep_days=14)
- --spec-file
- settings from a YAML or JSON file (- for standard input)
- --wait
- follow the environment until the change is live
- -y, --yes
- apply at the price shown without asking
API
Every command also takes the global flags.