Associate the current directory with an existing or new Alpic project. Once linked, commands like deploy and git connect operate on the linked project without requiring additional flags.
Usage
Interactively links the current directory to an Alpic project. Prompts for project selection or creation if not already linked.
Extended Usage
Skip all prompts (useful in CI):
Link to an existing project by ID:
Create a new project whose app lives in a monorepo subdirectory (path is relative to the directory where you run the command):
When linking interactively, Root directory defaults to . (repository root). Alpic stores this path on the project so builds and deployments run from that folder inside the connected repository.
Options
Authentication is required. Run alpic login or set ALPIC_API_KEY before linking.
If the current directory is a git repository, link will offer to connect the project to a GitHub remote after
linking.