> ## 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 computers jobs wait

> Wait for a background command and exit with its exit code

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

Wait for a background command and exit with its exit code

### Synopsis

Exits with the job's own exit code. With --timeout it gives up with exit code 124 and leaves the job running.

```
stackshift computers jobs wait COMPUTER JOB [flags]
```

### Options

```
  -h, --help               help for wait
      --timeout duration   give up after this long and leave the job running; 0 waits forever
```

### 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
      --token-file string    mode-0600 token file
      --token-stdin          read a CI token from stdin
  -y, --yes                  confirm risky operations
```

### SEE ALSO

* [stackshift computers jobs](https://docs.stackshift.cloud/cli-reference/stackshift_computers_jobs.md)	 - List, follow, wait for and stop background commands


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