domains

Manage custom domains for an app. After adding a domain, point your DNS to the server's IP address and Slasha will obtain a TLS certificate automatically.

slasha domains list

List all custom domains attached to an app.

slasha domains --app my-api list

slasha domains add

Attach a custom domain to an app.

slasha domains --app my-api add api.example.com

After adding, create a DNS A record pointing api.example.com to your server's IP. Slasha will request a certificate from Let's Encrypt automatically once the DNS record propagates.

slasha domains remove

Remove a custom domain from an app.

slasha domains --app my-api remove api.example.com

For all three subcommands, --app <SLUG> can be omitted if a slasha.toml is present in the current directory.