Authentication Commands
Commands for authenticating with Aerostack and linking local projects.
aerostack login
Section titled “aerostack login”Authenticate with your Aerostack account using your API key.
aerostack loginThe CLI prompts for your API key. Find it at app.aerostack.dev/account/keys.
Using an environment variable:
export AEROSTACK_API_KEY=your_key_hereaerostack loginKey types:
| Type | Access level |
|---|---|
| Account key | Full access — can create/deploy any project in your account |
| Project key | Scoped to a single project |
aerostack link
Section titled “aerostack link”Link a local directory to an existing Aerostack project by its project ID.
aerostack link [project-id]Find your project ID in the Aerostack dashboard under Project Settings.
aerostack link proj_abc123Once linked, aerostack deploy targets that project automatically.
aerostack whoami
Section titled “aerostack whoami”Show your current authentication and linked project status.
aerostack whoamiOutput:
Logged in as: john@example.com (account key)Linked project: my-backend (proj_abc123)Linked directory: /Users/john/projects/my-backendaerostack auth doctor
Section titled “aerostack auth doctor”Diagnose authentication configuration issues in your project.
aerostack auth doctorUses the AI agent to analyze your auth setup and suggest fixes. Requires aerostack index to have been run first.
aerostack uninstall
Section titled “aerostack uninstall”Remove the CLI and all associated data.
aerostack uninstall
# Skip confirmationaerostack uninstall --force