> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackshift.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# stackshift service attach

> Add an existing project to an application as a service

> [!NOTE]
>
> This page is generated from the StackShift CLI command definitions.

Add an existing project to an application as a service

### Synopsis

Add an existing project to an application as a service. The project can then use the application's databases and talk to its other services after its next deploy. Both flags take a name or an ID.

```
stackshift service attach --app APPLICATION --project PROJECT [flags]
```

### Examples

```
  stackshift service attach --app sofit-backend --project sofit-app-server
  stackshift service attach --app shop --project worker --role worker --service-name jobs
```

### Options

```
  -h, --help                  help for attach
      --role string           web, worker or cron
      --service-name string   name inside the application (defaults to the project name)
      --visibility string     public or private
```

### Options inherited from parent commands

```
      --api-url string       StackShift API URL
      --app string           application name or ID
      --color string         color output: auto, always, or never (default "auto")
      --debug                show request diagnostics
      --environment string   project environment
  -o, --output string        output format: table, json, yaml, or name (default "table")
      --profile string       configuration profile
      --project string       project name or ID
  -q, --quiet                suppress progress output
      --timeout duration     request timeout (default 30s)
      --token-file string    mode-0600 token file
      --token-stdin          read a CI token from stdin
  -y, --yes                  confirm risky operations
```

### SEE ALSO

* [stackshift service](https://docs.stackshift.cloud/cli-reference/stackshift_service.md)	 - Manage application services and bindings


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.