## projects init

Initialize a new Stripe Projects workspace in the current directory. This creates project state files, an `AGENTS.md` context document for AI agents, and adds credential paths to `.gitignore` automatically.

Files created:
- `.projects/state.json`: Shared project state (safe to commit)
- `.projects/state.local.json`: Local machine associations (do not commit)
- `.projects/vault/vault.json`: Encrypted credential cache (do not commit)
- `.env`: Plaintext environment variables for local development (do not commit)
- `AGENTS.md`: LLM context file listing provider docs and env var names

**Command:** `stripe projects init`

### Arguments

- `<project-name>`
  Optional name for the project. Defaults to the current directory name.

### Flags

- `--from <url>`
  Initialize from a shared stack URL generated by `stripe projects share`. This provisions the same set of services into a new project.

### Examples

**Initialize a new project**

```sh
stripe projects init my-app
```

**Initialize from a shared stack URL**

```sh
stripe projects init --from https://projects.dev/s/abc123
```
