Attach a custom domain to a deployed application.
1ctl domains add <domain>
| Argument |
Required |
Variadic |
domain |
Yes |
No |
| Flag |
Type |
Required |
Default |
Description |
--app |
string |
Yes |
— |
App name (the value of [app] name in satusky.toml, or –name on deploy) |
--port |
integer |
No |
8080 |
Target port on the deployment |
--custom-dns |
boolean |
No |
false |
Treat the hostname as an external custom domain |
--wait |
boolean |
No |
true |
Wait for DNS and TLS to become ready before returning |
--no-wait |
boolean |
No |
false |
Skip waiting — return immediately after attaching |
--with-www |
boolean |
No |
false |
Also configure a www redirect for apex domains when supported |
--help, -h |
boolean |
No |
— |
Show help |
# Attach a domain to an app
1ctl domains add api.example.com --app my-app
# Wait for DNS and TLS to be ready
1ctl domains add api.example.com --app my-app --wait
# Attach with www redirect
1ctl domains add example.com --app my-app --with-www