# nodus apply

> Create or update resources from manifests (client-side three-way merge)

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_apply/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus apply

Create or update resources from manifests (client-side three-way merge)

```plaintext
nodus apply -f FILE|DIR|- [flags]
```

### Examples

```plaintext
  nodus apply -f job.yaml
  nodus apply -f job.yaml --dry-run=server -o estimate
  nodus apply -f manifests/ --prune -l app=trainer
```

### Options

```plaintext
      --dry-run string[="server"]   server returns the estimate without creating; none, server or client (default "none")
  -f, --filename strings            Manifest files or directories; - reads stdin
  -h, --help                        help for apply
  -o, --output string               Output format: name, json, yaml, or estimate (with --dry-run=server)
      --prune                       Delete objects matching -l that the manifests no longer contain
  -R, --recursive                   Walk directories recursively
  -l, --selector string             Label selector for --prune
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus/) - Run compute Jobs on Nodus

### Tested examples

These invocations run in CI against the CLI’s fake API.

Terminal window

```sh
nodus apply -f keep.yaml --dry-run=client
nodus apply -f keep.yaml -f old.yaml -f other.yaml
nodus apply -f keep.yaml --prune -l app=trainer --dry-run=server
nodus apply -f keep.yaml --prune -l app=trainer --dry-run=client -o name
nodus apply -f keep.yaml --prune -l app=trainer
nodus apply -f jobs.yaml
nodus apply -f job.yaml
nodus apply -f job-v2.yaml
nodus apply -f job.yaml --dry-run=server -o estimate
nodus apply -f bad.yaml
nodus apply -f dev.yaml
nodus apply -f pool.yaml
```
