# ccp link



{/* Generated by scripts/sync-cli-reference.ts */}

Link a local App file to an already deployed App

```text
Usage: ccp link [OPTIONS] [DIRECTORY]
```

| Argument        | Type or values | Default | Parser environment variable | Description                                  |
| --------------- | -------------- | ------- | --------------------------- | -------------------------------------------- |
| directory       | path           | —       | —                           | Path to a directory containing an App        |
| --org-id        | text           | —       | —                           | Organization ID (skips org selection prompt) |
| --app, --app-id | text           | —       | —                           | App ID (skips app selection prompt)          |
| --help, -h      | flag           | —       | —                           | Print help                                   |

## Example [#example]

```bash
ccp link
```

## Global options [#global-options]

Set `CCP_CONTEXT` to choose a named context. An explicit `--context` takes precedence. See [organization selection](/docs/ccp/organizations) for organization defaults.

| Argument  | Type or values | Default | Parser environment variable | Description                                         |
| --------- | -------------- | ------- | --------------------------- | --------------------------------------------------- |
| --context | text           | —       | —                           | Select a developer context from \~/.ccp/config.toml |
