# Alepha - Cli Infra Lib

## Installation

Part of the `alepha` package. Import from `alepha/cli/infra-lib`.

```bash
npm install alepha
```

## Overview

Framework-agnostic platform deploy services.

Exports `InfraOrchestrator` + adapters + secret stores + the
`infraOptions` atom: everything needed to drive a deploy
programmatically. **No `$command` instances** and **no
`AppEntryProvider` / `ViteBuildProvider` dependency**, so consumers
importing this subpath don't pull in the CLI argv-parser or Vite.

Used by Lore Deploy (and other non-CLI deploy orchestrators) to
call `orchestrator.up({ ... })` directly. For CLI usage
(`alepha deploy`), import `AlephaCliInfraPlugin` from
`alepha/cli/infra`, which adds the command layer on top.

## API Reference

### Providers

- [`GitHubSecretStore`](https://latest.alepha.dev/docs/reference-providers-githubsecretstore.md) - GitHub Actions secret store backed by the `gh` CLI.
- [`InfraCacheProvider`](https://latest.alepha.dev/docs/reference-providers-infracacheprovider.md) - Caches cloud provider login state to avoid slow auth checks.
- [`MemorySecretStore`](https://latest.alepha.dev/docs/reference-providers-memorysecretstore.md) - In-memory implementation of SecretStoreProvider for testing.
- [`SecretStoreProvider`](https://latest.alepha.dev/docs/reference-providers-secretstoreprovider.md) - Abstract provider for managing secrets in an external store.
