Skip to content

Authentication Commands

Commands for authenticating with Aerostack and linking local projects.

Authenticate with your Aerostack account using your API key.

Terminal window
aerostack login

The CLI prompts for your API key. Find it at app.aerostack.dev/account/keys.

Using an environment variable:

Terminal window
export AEROSTACK_API_KEY=your_key_here
aerostack login

Key types:

TypeAccess level
Account keyFull access — can create/deploy any project in your account
Project keyScoped to a single project

Link a local directory to an existing Aerostack project by its project ID.

Terminal window
aerostack link [project-id]

Find your project ID in the Aerostack dashboard under Project Settings.

Terminal window
aerostack link proj_abc123

Once linked, aerostack deploy targets that project automatically.


Show your current authentication and linked project status.

Terminal window
aerostack whoami

Output:

Logged in as: john@example.com (account key)
Linked project: my-backend (proj_abc123)
Linked directory: /Users/john/projects/my-backend

Diagnose authentication configuration issues in your project.

Terminal window
aerostack auth doctor

Uses the AI agent to analyze your auth setup and suggest fixes. Requires aerostack index to have been run first.


Remove the CLI and all associated data.

Terminal window
aerostack uninstall
# Skip confirmation
aerostack uninstall --force