newspaperPress Guidelines
Pricing
Blog
Downloaddownload

Explore our next generation products

See overview

Products

antigravityAntigravity 2.0terminalAntigravity CLIcodeAntigravity IDEsdkAntigravity SDK

Built for developers in the agent-first era

See overview
EnterpriseFrontendFullstackScienceMarketer

Everything you need to stay up-to-date and get help

Documentationkeyboard_arrow_rightChangelogSupportPressReleases

Explore our next generation products

See overview

Products

antigravityAntigravity 2.0terminalAntigravity CLIcodeAntigravity IDEsdkAntigravity SDK

Built for developers in the agent-first era

See overview
EnterpriseFrontendFullstackScienceMarketer
Pricing
Blog

Everything you need to stay up-to-date and get help

Documentationkeyboard_arrow_rightChangelogSupportPressReleases
Home
Antigravity 2.0v2.3.1keyboard_arrow_right
Overview
Getting Started
Build with Google
Feature Overview
Models
Projects
Settingskeyboard_arrow_right
Overview
Agent Settings
Artifact Review
Customizationskeyboard_arrow_right
MCP
Skills
Rules
Plugins
Hooks
Sidecars
Agent Capabilitieskeyboard_arrow_right
Permissions
Subagents
Artifactskeyboard_arrow_right
Overview
Plan
Walkthrough
Screenshots
Antigravity CLIv1.1.5keyboard_arrow_right
Overview
Getting Started
Installation & Auth
Tutorial
Using AGY CLI
Features
Gemini Migration
Prompting
Artifactskeyboard_arrow_right
Overview
Conversations
Agent Capabilitieskeyboard_arrow_right
Choose an execution mode
Subagents
Sandbox
Permissions
Projects
Settingskeyboard_arrow_right
Overview
AI Credits
Customizationskeyboard_arrow_right
MCP
Plugins & Skills
Status Line
Window Title
Commandskeyboard_arrow_right
Agents (/agents)
Code Search (/codesearch)
AI Credits (/credits)
Diff (/diff)
Permissions (/permissions)
Resume (/resume)
Status Line (/statusline)
Window Title (/title)
Model Quotas (/usage, /quota)
Best Practices
Troubleshooting
Reference
Antigravity SDKv0.1.7keyboard_arrow_right
Overview + Quick Start
Customizationskeyboard_arrow_right
MCP
Antigravity IDEv2.1.1keyboard_arrow_right
Overview
Getting Started
Featureskeyboard_arrow_right
Tab
Side Panel
Review Changes
Artifactskeyboard_arrow_right
Plan
Walkthrough
Screenshots
Browser Recordings
Browserkeyboard_arrow_right
Overview
Allowlist / Denylist
Separate Chrome Profile
Customizationskeyboard_arrow_right
MCP
Skills
Rules
Workflows
Plugins
Hooks
Settings
Migrationkeyboard_arrow_right
Firebase Studio Migration
Enterprise
Plans
FAQ
  • side_navigation
  • Antigravity CLI
  • >
  • Tutorial

Antigravity CLI Tutoriallink

Learn how to launch Antigravity CLI, collaborate with an autonomous local agent, review generated files, and execute terminal test commands.

Overviewlink

This guide walks you through a rapid onboarding exercise. You will direct an autonomous agent to create a Python utility script, review the changes, and verify its execution.

Step-by-steplink

  1. Create a clean project directory and launch the Antigravity TUI
    mkdir agy-demo && cd agy-demo
    agy
info
First Launch: If running agy for the first time, follow the terminal instructions to complete silent authentication. See Installation & Auth for troubleshooting details.
  1. Prompt the agent to generate a Python scraping script
Type the following instruction in the prompt box at the bottom of your screen and press Enter:
    Write a simple python script to fetch web page text
The agent reads the workspace, determines that no files exist, and formulates a plan to create a script. You will see real-time updates as the agent performs reasoning and schedules actions.
  1. Open the artifact review screen to inspect the proposed code
Once the agent finishes generating the file, a notification appears. Press ctrl+r to enter the Artifact Review screen.
  • Navigate to the newly created main.py using ↑/↓.
  • Review the complete file content and diff.
  • Press y to approve the creation of main.py.
  • Press Esc to close the review panel and return to the primary prompt.
  1. Execute a test command with the agent to verify the output
Direct the agent to run the Python script to verify its behavior. Type the following command in the prompt box and press Enter:
    Run the python script and show me the output
The agent proposes to run python3 main.py. Press y to confirm and execute the command. The agent runs the script locally and streams the standard output directly into your terminal screen.
  1. Exit the Antigravity session
Once you complete your task, press ctrl+d (or type /exit) in the prompt box to close the TUI and restore your original shell session.

Next stepslink

Now that you have executed your first agent-assisted workflow, learn how to configure the CLI and master core concepts:
  • Installation & Auth: Detailed instructions on installing agy and setting up SSH profiles.
  • Prompting & Interaction: Best practices for multiline inputs, pasting media files, and active interrupt controls.
  • Reviewing Artifacts: Deep dive into the "Trust through Transparency" architectural pattern.
Installation & Auth
Using AGY CLI
On this Page
Antigravity CLI TutorialOverviewStep-by-stepNext steps