Verifying ownership of Namecheap Domain with Google Search Console

Question

I’m trying to verify my domain with Google Search Console by adding a TXT record, similar to issue #4577. I use Vercel’s name servers so can’t add the TXT file in “Advanced settings” in Namecheap.

So I’ve run into a specific problem:

My domain is only added under my project and not under the team. When I try to use the CLI command:

vercel dns add <domain> '@' TXT 'google-site-verification=<code>'

I get a permissions error because the CLI’s DNS commands only work for domains that are added at the team level, not just the project level.

I can see my domain is properly configured in my project (with Valid Configuration and Assigned to main), but I can’t manage DNS through the CLI.

Question:
Is there a way to add TXT records via CLI for project-level domains? Or do I need to add the domain to the team level first? Is there another way to do this in the dashboard?

When I add the same domain to the team it says it’s already in use.

Thanks in advance!

Related to: #4577 github issue

The domain troubleshooting guide can help with most custom domain configuration issues. You might be able to use that guide to solve it before a human is available to help you. Then you can come back here and share the answer for bonus points.

You can also use v0 to narrow down the possibilities.

Hi @phillydoug, welcome to the Vercel Community!

Sorry that you are facing this issue.

Yes, you need to add the domain to the team level using the Domains tab in your Vercel dashboard.

After that you should be able to add the required TXT records from the Dashboard and the CLI.

For more information, see our docs.