# Google Agents Cli Scaffold > Úsalo para 'crear un proyecto de agente', 'iniciar un proyecto ADK nuevo', 'añadir CI/CD' o 'mejorar/actualizar mi proyecto'. Cubre `scaffold create`, `scaffold enhance` y `scaffold upgrade`, plantillas y targets de deployment. Fuente: https://skillsagentes.com/skills/google/agents-cli/google-agents-cli-scaffold Markdown: https://skillsagentes.com/skills/google/agents-cli/google-agents-cli-scaffold.md Repositorio: https://github.com/google/agents-cli Autor: google Licencia: Apache-2.0 Actualizado: el mes pasado Coste de contexto: 141 tok instalada, 2.8k tok al activarse, 3.6k tok con todos los archivos del bundle Bundle: 2 archivos, 14 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add google/agents-cli --skill google-agents-cli-scaffold --agent claude-code # Cursor npx -y skills add google/agents-cli --skill google-agents-cli-scaffold --agent cursor # Codex npx -y skills add google/agents-cli --skill google-agents-cli-scaffold --agent codex # Gemini CLI npx -y skills add google/agents-cli --skill google-agents-cli-scaffold --agent gemini # Windsurf npx -y skills add google/agents-cli --skill google-agents-cli-scaffold --agent windsurf # Cline npx -y skills add google/agents-cli --skill google-agents-cli-scaffold --agent cline ``` ## Qué hace - Ejecuta `agents-cli scaffold create` para crear proyectos ADK nuevos con plantilla, deployment target, región y CI/CD - Ejecuta `agents-cli scaffold enhance` para añadir deployment o CI/CD a un proyecto existente - Ejecuta `agents-cli scaffold upgrade` para actualizar un proyecto a una versión más nueva de agents-cli preservando personalizaciones - Mapea decisiones del usuario (RAG, memoria, OAuth, deployment) a flags concretos del CLI ## Cuándo usarla - El usuario quiere crear un proyecto de agente, iniciar un proyecto ADK nuevo o pedir 'build me a new agent' - El usuario quiere añadir CI/CD o deployment a un proyecto existente - El usuario quiere mejorar (enhance) o actualizar (upgrade) un proyecto ya scaffolded ## Cuándo no - Para escribir código del agente (usar google-agents-cli-adk-code) - Para operaciones de deployment (usar google-agents-cli-deploy) ## Qué la activa - "Crea un nuevo proyecto de agente ADK" - "Añade CI/CD a mi proyecto de agente" - "Mejora mi proyecto con deployment a Cloud Run" - "Actualiza mi proyecto a la última versión de agents-cli" - "Necesito un Dockerfile para mi proyecto no estándar" ## Antes de instalar - Requiere el binario `agents-cli` (instalar con `uv tool install google-agents-cli`). ## Archivos - SKILL.md — 11 KB - references/flags.md — 3 KB ## SKILL.md Reproducido tal cual desde google/agents-cli bajo Apache-2.0. Esta sección es el documento original y está en inglés. # Project Scaffolding Guide > **Requires:** `agents-cli` (`uv tool install google-agents-cli`) — [install uv](https://docs.astral.sh/uv/getting-started/installation/index.md) first if needed. Use the `agents-cli` CLI to create new agent projects or enhance existing ones with deployment, CI/CD, and infrastructure scaffolding. --- ## Prerequisite: Clarify Requirements (MANDATORY for new projects) **Before scaffolding a new project, load `/google-agents-cli-workflow` and complete Phase 0** — clarify the user's requirements before running any `scaffold create` command. Ask what the agent should do, what tools/APIs it needs, and whether they want a prototype or full deployment. --- ## Step 1: Choose Architecture **Mapping user choices to CLI flags:** | Choice | CLI flag | |--------|----------| | Retrieval/RAG, sandboxed execution, cross-session memory, OAuth consent, guardrails, scheduled runs | **No flag** — these come from clone-and-study recipes. **ADK Python:** see the topic index in `/google-agents-cli-adk-code` → `references/samples.md`; on other frameworks, see the sample index the framework template ships | | A2A protocol | built into the scaffolded app — scaffold normally (**ADK Python:** `--agent adk`, the default; **ADK Go:** `--agent adk_go`) | | Prototype (no deployment) | `--prototype` | | Deployment target | `--deployment-target ` | | CI/CD runner | `--cicd-runner ` | | Session storage | `--session-type ` | ### Product name mapping Older names → CLI values (`vertexai` SDK package name unchanged): - Agent Engine / Vertex AI Agent Engine → `--deployment-target agent_runtime` - Agent Engine sessions / Agent Platform Sessions → `--session-type agent_platform_sessions` - Vertex AI Search / Vertex AI Vector Search / RAG → clone-and-study recipe, not a flag > **Removed flags.** `--datastore`, the `agentic_rag` template, and `agents-cli infra datastore` / > `agents-cli data-ingestion` no longer exist. If you reach for one, you want a recipe instead. --- ## Step 2: Create or Enhance the Project ### Create a New Project ```bash agents-cli scaffold create \ --agent