domain by railwayapp/railway-skills
npx skills add https://github.com/railwayapp/railway-skills --skill domain为 Railway 服务添加、查看或移除域名。
生成一个 Railway 提供的域名(每个服务最多 1 个):
railway domain --json
针对特定服务:
railway domain --json --service backend
返回生成的域名 URL。服务必须已有部署。
railway domain example.com --json
返回所需的 DNS 记录:
{
"domain": "example.com",
"dnsRecords": [
{ "type": "CNAME", "host": "@", "value": "..." }
]
}
告知用户将这些记录添加到他们的 DNS 提供商处。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
使用 environment 技能查看已配置的域名,或直接查询:
query domains($envId: String!) {
environment(id: $envId) {
config(decryptVariables: false)
}
}
域名位于 config.services.<serviceId>.networking 中:
serviceDomains - Railway 提供的域名customDomains - 用户提供的域名使用 environment 技能移除域名:
{
"services": {
"<serviceId>": {
"networking": {
"customDomains": { "<domainId>": null }
}
}
}
}
{
"services": {
"<serviceId>": {
"networking": {
"serviceDomains": { "<domainId>": null }
}
}
}
}
然后使用 environment 技能来应用并提交更改。
| 标志 | 描述 |
|---|---|
[DOMAIN] | 要添加的自定义域名(省略则添加 Railway 域名) |
-p, --port <PORT> | 连接的端口 |
-s, --service <NAME> | 目标服务(默认为已链接的服务) |
--json | JSON 输出 |
environment 技能environment 技能environment 技能service 技能No service linked. Use --service flag or run `railway service` to select one.
Service already has a railway-provided domain. Maximum 1 per service.
Service has no deployment. Deploy first with `railway up`.
Invalid domain format. Use a valid domain like "example.com" or "api.example.com".
每周安装量
766
仓库
GitHub 星标数
209
首次出现
2026年1月20日
安全审计
安装于
opencode642
codex630
gemini-cli602
github-copilot576
claude-code568
amp530
Add, view, or remove domains for Railway services.
Generate a railway-provided domain (max 1 per service):
railway domain --json
For a specific service:
railway domain --json --service backend
Returns the generated domain URL. Service must have a deployment.
railway domain example.com --json
Returns required DNS records:
{
"domain": "example.com",
"dnsRecords": [
{ "type": "CNAME", "host": "@", "value": "..." }
]
}
Tell user to add these records to their DNS provider.
Use environment skill to see configured domains, or query directly:
query domains($envId: String!) {
environment(id: $envId) {
config(decryptVariables: false)
}
}
Domains are in config.services.<serviceId>.networking:
serviceDomains - Railway-provided domainscustomDomains - User-provided domainsUse environment skill to remove domains:
{
"services": {
"<serviceId>": {
"networking": {
"customDomains": { "<domainId>": null }
}
}
}
}
{
"services": {
"<serviceId>": {
"networking": {
"serviceDomains": { "<domainId>": null }
}
}
}
}
Then use environment skill to apply and commit the change.
| Flag | Description |
|---|---|
[DOMAIN] | Custom domain to add (omit for railway domain) |
-p, --port <PORT> | Port to connect |
-s, --service <NAME> | Target service (defaults to linked) |
--json | JSON output |
environment skillenvironment skillenvironment skillservice skillNo service linked. Use --service flag or run `railway service` to select one.
Service already has a railway-provided domain. Maximum 1 per service.
Service has no deployment. Deploy first with `railway up`.
Invalid domain format. Use a valid domain like "example.com" or "api.example.com".
Weekly Installs
766
Repository
GitHub Stars
209
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode642
codex630
gemini-cli602
github-copilot576
claude-code568
amp530
YouTube视频分析师 - 逆向分析病毒内容公式,提取钩子、留存机制与情感触发点
647 周安装
SQLiteData 使用指南:SwiftData 轻量级替代方案,支持 CloudKit 同步
CTF密码学挑战速查指南 | 经典/现代密码攻击、RSA/ECC/流密码实战技巧
648 周安装
Bitrefill CLI:让AI智能体自主购买数字商品,支持加密货币支付
Bilibili 字幕提取工具 - 支持 AI 字幕检测与 ASR 转录,一键下载视频字幕
648 周安装
assistant-ui thread-list 线程列表:管理多聊天线程的 React AI SDK 组件
649 周安装