# nodus convert

> Turn a 0.x nodus.toml or training file into manifests for nodus apply

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

## nodus convert

Turn a 0.x nodus.toml or training file into manifests for nodus apply

### Synopsis

convert maps a 0.x nodus.toml or nodus.json onto a Job (a Pipeline when it has stages), and a nodus.training.json onto a TrainingRuntime and a TrainingJob. Every field that does not carry over is named on stderr; nothing is sent to the API.

```plaintext
nodus convert nodus.toml | nodus.json | nodus.training.json [flags]
```

### Examples

```plaintext
  nodus convert nodus.toml > job.yaml && nodus apply -f job.yaml
  nodus convert nodus.training.json --image ghcr.io/acme/trainer@sha256:... | nodus apply -f -
```

### Options

```plaintext
  -h, --help            help for convert
      --image string    Trainer image for a nodus.training.json runtime
      --name string     metadata.name for the manifests (default: the file's directory name)
  -o, --output string   Output format: yaml or json (default "yaml")
```

### 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 convert nodus.toml
nodus convert --name 'Train Eval' nodus.toml
nodus convert -o json payload/nodus.json
nodus convert --image ghcr.io/acme/trainer@sha256:0123 training/nodus.training.json
```
