# nodus patch

> Update fields of a resource with a merge or JSON patch

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

## nodus patch

Update fields of a resource with a merge or JSON patch

```plaintext
nodus patch KIND/NAME --patch PATCH [--type merge|json] [flags]
```

### Examples

```plaintext
  nodus patch job/x --patch '{"spec":{"maxCostUSD":"50.00"}}'
```

### Options

```plaintext
  -h, --help           help for patch
      --patch string   The patch document (JSON)
      --type string    merge or json (default "merge")
```

### 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 patch job/train --patch '{"spec":{"maxCostUSD":"50.00"}}'
```
