promptgarten ๐ŸŒฑ

Command reference ยท Antigravity CLI

agy --project <name>

Explicitly sets which project to use at startup.

agy --project <name> is a startup flag for the terminal invocation (not a slash command) and was introduced, according to the changelog, together with --new-project in version 1.0.12. It explicitly determines at startup which existing project is used, instead of the CLI automatically deriving the project from the current working directory. It thus complements agy --new-project <name>: while --project loads an existing project, --new-project always creates a completely new one. Both flags help you avoid relying on automatic project detection at startup โ€” for example when several projects live in the same parent directory, or when a script invokes agy from a different working directory. Like --new-project, --project is only relevant at startup, not usable within a running session.

โœ… WHEN TO USE IT?

Select a project independent of the folder

agy --project my-project, even if the terminal is currently in a different directory

Reference unambiguously in scripts

In a CI script, call agy --project ci-project to ensure the same project is always loaded

โ›” WHEN NOT TO?

Wanting to create a completely new project

--project only selects among existing projects, it doesn't create one.

Better: Use agy --new-project <name>

SOURCES

MORE COMMANDS ยท Antigravity CLI

agy --new-project <name>agy --sandboxagy --mode <default|accept-edits|plan>agy --dangerously-skip-permissionsagy plugin listagy plugin install <path>agy plugin enable <name>agy plugin disable <name>agy plugin uninstall <name>agy plugin import geminiinstall.sh --skip-aliasesinstall.sh --skip-path

All commands ยท Antigravity CLI โ†’

Share:๐•in๐Ÿ’ฌ