← 返回
数据分析 Key 中文

Domain Check

Check domain availability via Vercel and buy/manage domains via Vercel CLI
通过 Vercel 检查域名可用性,并使用 Vercel CLI 购买和管理域名。
brennerspear
数据分析 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 969
下载
💾 15
安装
1
版本
#latest

概述

Domain Check & Buy (Vercel)

Check domain availability, pricing, and purchase — all via Vercel.

Quick Reference

# Check availability + pricing for a name across TLDs
domain-check myproject

# Check specific TLDs
domain-check myproject com,io,dev,app,ai

# Buy a domain (interactive — needs pty:true)
npx vercel domains buy mydomain.com

# List your owned domains
npx vercel domains list

# Inspect a domain you own
npx vercel domains inspect mydomain.com

# Add domain to a Vercel project
npx vercel domains add mydomain.com my-project

# Transfer a domain into Vercel
npx vercel domains transfer-in mydomain.com

How It Works

Availability Check (domain-check)

Uses the Vercel Registrar API (/v1/registrar/domains/{domain}/price):

  • purchasePrice: null → domain is taken
  • purchasePrice: → domain is available at that price
$ domain-check myproject
Checking: myproject
-----------------------------------------------------------
DOMAIN                    STATUS         BUY PRICE    RENEWAL
-----------------------------------------------------------
myproject.com             ❌ Taken       -            $11.25
myproject.io              ✅ Available   $46.00       $46.00
myproject.dev             ✅ Available   $13.00       $13.00
-----------------------------------------------------------
Prices from Vercel Registrar

Buying (npx vercel domains buy)

Interactive command — requires pty: true when calling from exec.

# Example exec call
exec(command: "npx vercel domains buy myproject.dev", pty: true, timeout: 30)

The CLI will show price and ask for confirmation before charging.

API Direct (for scripts)

VERCEL_TOKEN=$(jq -r '.token' ~/.local/share/com.vercel.cli/auth.json)
TEAM=$(jq -r '.currentTeam // empty' ~/.local/share/com.vercel.cli/config.json)
TEAM_PARAM="${TEAM:+?teamId=$TEAM}"

# Check price/availability
curl -s "https://api.vercel.com/v1/registrar/domains/example.com/price${TEAM_PARAM}" \
  -H "Authorization: Bearer $VERCEL_TOKEN"
# Returns: { "years": 1, "purchasePrice": 11.25, "renewalPrice": 11.25, "transferPrice": 11.25 }
# purchasePrice: null = taken, number = available

# Buy via API
curl -s -X POST "https://api.vercel.com/v1/registrar/domains${TEAM_PARAM}" \
  -H "Authorization: Bearer $VERCEL_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "example.com"}'

Vercel CLI Domain Commands

CommandDescription
----------------------
npx vercel domains listShow all domains
npx vercel domains inspect Domain info (owned domains only)
npx vercel domains buy Purchase (interactive)
npx vercel domains add Add to Vercel project
npx vercel domains move Transfer to another team
npx vercel domains transfer-in Transfer in to Vercel
npx vercel domains remove Remove from team

Typical TLD Pricing (Vercel)

TLD~Price/yr
----------------
.com$11.25
.dev$13
.app$15
.co$27
.io$46
.ai$140
.org$9.99
.net$13.50
.xyz$13

Auth

Requires Vercel CLI authentication (npx vercel login). Token is read from ~/.local/share/com.vercel.cli/auth.json.

Team ID is auto-detected from Vercel CLI config, or set VERCEL_TEAM_ID env var to override. If neither is set, the personal account is used.

Notes

  • Vercel registrar API replaced the old v4 domains/price endpoint (sunsetted Nov 2025)
  • domains inspect only works for domains you own — use the price API for availability
  • .ai domains are expensive ($140/yr) across all registrars
  • When buying via CLI, use pty: true for the interactive confirmation prompt

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 16:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,123
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,669
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 199 📥 65,199