<@U04UQ68083H> can I set up a custom domain for or...
# ory-copilot
t
@chilly-king-10285 can I set up a custom domain for ory via ory cli?
c
A message from kapa.ai
Yes, you can set up a custom domain for Ory. However, this feature is only available on paid plans. If you're using the free plan, you will have to upgrade before being able to add a custom domain. To add a custom domain to your project, you need to locate "Custom Domains" in the Ory Console navigation menu. When you add a custom domain, it becomes your project's SDK Configuration URL. You will have to create a CNAME record with the DNS provider with which the domain is registered, with the value that's provided in this form. Please note that the Ory CLI does not directly support setting up a custom domain. The CLI can be used to interact with Ory APIs once the custom domain is set up via the Ory Console. For more details, you can refer to the [Ory documentation](https://www.ory.sh/docs/guides/custom-domains).
t
@chilly-king-10285 can I do this via the CLI?
c
A message from kapa.ai
No, you cannot set up a custom domain directly via the Ory CLI. The setup of a custom domain is done through the Ory Console as per the [Ory documentation](https://www.ory.sh/docs/guides/custom-domains). However, once the custom domain is set up, you can use the Ory CLI to interact with Ory APIs. For example, you can use the Ory Proxy or Ory Tunnel commands to run your app and Ory on the same domain. Here is an example of how to use the Ory Proxy with a custom domain:
Copy code
bash $ ory proxy --project <your-project-slug> <https://www.example.org>
And here is an example of how to use the Ory Tunnel with a custom domain:
Copy code
bash $ ory tunnel --project <your-project-slug> \    <https://www.example.org> \    <https://auth.example.org> \    --cookie-domain <http://example.org|example.org> \    --allowed-cors-origins <https://www.example.org> \    --allowed-cors-origins <https://api.example.org>
Please replace
<your-project-slug>
and
<http://example.org|example.org>
with your actual project slug and domain.