360 Secure SkillHub
360 安全技能中心

ShipStatic

ShipStatic 静态托管 CLI(ship),基于 Node.js 运行,可上传静态目录完成部署、列出与修改部署、预留和绑定域名、校验 DNS,并支持 --json 机器可读输出;使用前需配置 API key。

shipstatic-com
shipstatic-com
热度 48.78
最近更新 2026-05-18 12:33:33
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add shipstatic
Metadata
name
ship
description
Static hosting via ShipStatic. Use when the user wants to deploy a website, upload files, manage deployments, set up domains, or publish static files to shipstatic.com.
metadata
{"openclaw":{"requires":{"env":["SHIP_API_KEY"],"bins":["ship"]},"primaryEnv":"SHIP_API_KEY","emoji":"🚀","homepage":"https://github.com/shipstatic/ship","install":[{"kind":"node","package":"@shipstatic/ship","bins":["ship"]}]}}

Install

Requires Node.js >= 20.

npm install -g @shipstatic/ship

Authenticate

ship config

Enter your API key when prompted. Get one at https://my.shipstatic.com/settings

Alternative: set the SHIP_API_KEY environment variable or pass --api-key per command.

Workflow 1 — Deploy

ship ./dist
ship ./dist --label production --label v1.0
ship ./dist --json   # Returns {"deployment": "<id>", "url": "https://..."}

Workflow 2 — Reserve a Domain

# Pre-flight check
ship domains validate www.example.com

# Reserve (no deployment linked yet)
ship domains set www.example.com

# Or reserve an internal subdomain (instant, no DNS)
ship domains set my-site

Internal domains (my-site.shipstatic.com) are free and instant. Custom domains require DNS configuration — the CLI prints the required records.

Apex domains are not supported. Always use a subdomain: www.example.com, not example.com.

Workflow 3 — Link Domain to Deployment

# Link domain to a deployment
ship domains set www.example.com <deployment-id>

# Switch to a different deployment (instant rollback)
ship domains set www.example.com <other-deployment-id>

# For custom domains: verify DNS after configuring records
ship domains verify www.example.com

Reference

# Deployments
ship deployments list
ship deployments get <id>
ship deployments set <id> --label production
ship deployments remove <id>

# Domains
ship domains list
ship domains get <name>
ship domains validate <name>
ship domains verify <name>
ship domains remove <name>

# Account
ship whoami
ship ping

Use --json on any command for machine-readable output.