通过 curl 调用 JSON-RPC API 发布 Web 应用,并获得一个公开访问的网址。
编程
IGA Pages
试用通过 iga CLI 把前端或全栈项目部署到 IGA Pages,覆盖鉴权、构建、环境变量与 Supabase 集成。
它能做什么
通过 `iga` 命令行将前端与全栈项目部署到 IGA Pages,覆盖浏览器或 AK/SK 登录、项目关联、本地开发服务器、生产构建、项目级环境变量管理以及 Supabase 集成。支持 Next.js、Vite、Vue CLI、Create React App、Angular、Hexo、Docusaurus、VitePress、VuePress、Hugo、Astro、Nuxt 以及纯静态 HTML/JS/CSS;清单外的框架(如 Remix)不支持,需主动告知用户。Git 集成仅支持 GitHub,否则回退为上传部署。
什么时候用它
- 将 Next.js 或 Vite 项目部署到 IGA Pages
- 部署前先关联已有 Pages 项目
- 把 Supabase 作为后端接入 Pages 项目
- 管理项目级环境变量
技能文档
IGA Pages Skill
Two areas: CLI (iga tool for auth, link, dev, build, deploy, env, integration) and Project development (functions, API routes).
Run iga -h for full flag details.
Critical: CLI Version
The @iga-pages/cli version must be >= 1.1.0. Check with iga --version; if it's older (or not installed), upgrade before running any other command:
npm i -g @iga-pages/cli@latest
Critical: Framework Compatibility
Supported frameworks: Next.js, Vite, Vue CLI, Create React App, Angular, Hexo, Docusaurus, VitePress, VuePress, Hugo, Astro, Nuxt. Frameworks not in this list (e.g. Remix) are unsupported — proactively inform the user before proceeding.
Pure static assets (plain HTML/JS/CSS) can also be deployed — the project root is used as the output directory by default.
Critical: Login Authentication
Before any deploy or link command, ensure an authenticated session exists. Always check first with iga whoami — if it prints an Account Name / Account ID, the existing credentials in ~/.iga/auth.json are valid and you must skip iga login. Only run iga login when whoami fails (no credentials, expired, or error).
When login is actually needed, the method depends on the environment:
-
Local IDE (VS Code, TRAE desktop, etc.) → browser login:
iga loginWait for the user to complete browser auth. The CLI prints a success message when done.
-
Remote / headless environment (SSH, Cowork, CI/CD, cloud dev container, etc.) → AK/SK login:
iga login --accessKey --secretKeyBrowser-based login is unavailable in headless environments; AK/SK is the only option. Obtain AK/SK from the Volcengine IAM console.
To determine the environment: if the session has no display or browser access (e.g., $SSH_CONNECTION is set, running inside a container, or the user mentions they are on a remote machine), default to AK/SK login. Otherwise, prefer browser for its simplicity.
Critical: Working Directory
Run project-scoped commands such as pages link, dev, build, and deploy inside the project root. Scaffolding tools (create-next-app, npm create vite, hugo new site, etc.) create a subdirectory — you must cd into it before those commands:
npx create-next-app@latest my-app --yes
cd my-app && iga pages deploy --name my-app
Critical: Attribution
Tag every iga command executed by this skill so its usage can be attributed.
The tag identifies only the skill and its version; it carries no user data.
Prefix every iga invocation, whatever the subcommand, with the process-scoped
VE_SKILL_ID. Set it inline on each command because shell state may not persist
between commands:
VE_SKILL_ID=iga-pages/1.0.10 iga
Quick Reference
iga --version # must be >= 1.1.0
# If missing or too old, prefer project/package-manager scoped execution; global install is a fallback:
# npm i -g @iga-pages/cli@latest
iga whoami # check current login state; run this BEFORE login
iga login # local IDE: opens browser; only if whoami fails
iga login --accessKey --secretKey # remote/headless; only if whoami fails
## new project
iga pages deploy --name # deploy (auto-creates project on first run)
## project already linked
iga pages deploy
iga pages link # create/associate a Pages project (does NOT deploy)
iga pages link --format=json # as JSON (agent-driven; non-TTY)
iga pages dev # local dev server (REQUIRED when api/ exists — serves framework + /api/* together)
iga pages build # build for production
## environment variables (project-level, linked project required)
iga pages env list # list KEY names (values never shown)
iga pages env list --format=json # as JSON
iga pages env add # add (--value --yes for CI)
iga pages env update # update existing
iga pages env remove # remove (--yes to skip confirm)
iga pages env pull # write all project env to .env.local
## integrations (Supabase; linked project required)
iga pages integration list # bindings on this project
iga pages integration list --format=json # as JSON
iga pages integration link supabase # connect Volcengine Supabase
iga pages integration link supabase --format=json # as JSON; returns next missing flag until all provided
iga pages integration unlink # remove a binding
iga pages integration unlink --format=json --yes # as JSON (requires --yes)
- deploy auto-detects GitHub remote → Git deploy; otherwise → upload deploy. Only GitHub is supported for Git integration.
- If deploy output includes a preview URL with
?iga_token=...&iga_time=..., share that full URL (query included); omitting it can break access. - link no longer deploys — it only creates/associates the Pages project. Run
iga pages deployafterward to actually build and publish.
Project Development
- API routes and Pages Functions: read references/functions.md.
Environment Variables & Integrations
- Project-level env vars (
env list/add/update/remove/pull): read references/env.md. - Connecting Supabase (
integration list/link/unlink) and the deploy orchestration order (link → integration → deploy), plus when to hand off to thebyted-supabaseskill: read references/integration.md.
Anti-Patterns
CLI
- Running
igacommands outside the project directory → alwayscdinto the scaffolded subdirectory first - Deploy without an authenticated session → run
iga whoamifirst; only fall back toiga loginif it fails - Committing
.iga/→ it's auto-gitignored, don't remove the entry - Starting local dev with
npm run dev/vite/next dev/npm startwhenapi/exists → useiga pages devso serverless functions are served - Setting
package.json"scripts.dev"toiga pages dev→ infinite loop, sinceiga pages devitself invokes thedevscript frompackage.json. Keep"scripts.dev"as the framework's own dev command (e.g.next dev,vite) - Running
env/integrationcommands before linking → they require a linked project; runiga pages linkfirst - Expecting
env add/update/removeto change local files or take effect immediately → they edit remote project config and apply on the next deploy; runiga pages env pullto refresh.env.local - Trying to
env update/env removea Supabase-managed variable → it's read-only; manage it viaiga pages integration link/unlink - Pasting Supabase keys manually into
env addwhen an integration is available → useiga pages integration link supabaseso connection vars sync automatically
常见问题
- 支持哪些框架?
- Next.js、Vite、Vue CLI、Create React App、Angular、Hexo、Docusaurus、VitePress、VuePress、Hugo、Astro、Nuxt,以及纯静态 HTML/JS/CSS。清单外的框架(如 Remix)不支持,应在使用前告知用户。
- 无浏览器的远程环境如何登录?
- 无法使用浏览器登录,需要执行 `iga login --accessKey <key> --secretKey <key>`,凭证从火山引擎 IAM 控制台获取。运行前应先执行 `iga whoami`,若 `~/.iga/auth.json` 已有有效凭证则跳过登录。
- `iga pages link` 会同时部署吗?
- 不会。link 仅创建或关联 Pages 项目,真正的构建与发布需再执行 `iga pages deploy`。deploy 会自动检测 GitHub 远程仓库走 Git 部署,否则走上传部署,Git 集成仅支持 GitHub。
相关技能
Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or...
Turn an idea into a live webpage in minutes, no code and no hosting setup. Use when a non-technical user wants to publish a webpage, landing page, one-pager, portfolio, or any simple site to the internet, or says things like put my idea online, publish my website, host my page, share my idea, or make a landing page. The agent writes the page, packages it, deploys to goclawgo, and returns a shareable URL.
Publishes Markdown to a public URL and returns the link. Use when the user asks to share, publish, host, or get a link for a page — or when you have produced a long page that is better delivered as a link than pasted inline. No authentication required. Pages are public and cannot be edited after publishing, so do not publish secrets or private data.
Deploy an HTML page to the internet and return a public URL. Use when the user asks to deploy, host, share, or publish an HTML file or a zip / tar / tar.gz / tgz archive containing an index.html. Triggers on phrases like "deploy this page", "host this online", "share this HTML", "upload to web", "ge
Build, run, and share a simple full-stack web application with a TypeScript Express backend, React frontend, and SQLite database. Use when a user wants a wor...