Two areas: CLI (iga tool for auth, link, dev, build, deploy) and Project development (functions, API routes).
Run iga for full flag details.
The @iga-pages/cli version must be >= 1.0.3. Check with iga --version; if it's older (or not installed), upgrade before running any other command:
npm i -g @iga-pages/cli@latest
Supported frameworks: Next.js, Vite, Vue CLI, Create React App, Angular, Hexo, Docusaurus, VitePress, VuePress, Hugo. Frameworks not in this list (e.g. Nuxt, Remix, Astro) 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.
Before any deploy or link command, authenticate with iga login. The login method depends on the environment:
```bash
iga login
```
Wait for the user to complete browser auth. The CLI prints a success message when done.
```bash
iga login --accessKey
```
Browser-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.
All iga commands must run 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 any iga command:
npx create-next-app@latest my-app --yes
cd my-app && iga pages deploy --name my-app
npm i -g @iga-pages/cli
iga login # local IDE: opens browser
iga login --accessKey <AK> --secretKey <SK> # remote/headless: AK/SK login
## new project
iga pages deploy --name <my-app> # deploy (auto-creates project on first run)
## project already linked
iga pages deploy
iga pages link # link to existing project without deploying
iga pages dev # local dev server
iga pages build # build for production
?iga_token=...&iga_time=..., share that full URL (query included); omitting it can break access.CLI
iga commands outside the project directory → always cd into the scaffolded subdirectory firstiga login first.iga/ → it's auto-gitignored, don't remove the entryprovider: "upload_v2" with GitHub remote → delete .iga/project.json and redeploy to switch to Git deploy共 1 个版本