Skip to content

nodus convert

View Markdown

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

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.

nodus convert nodus.toml | nodus.json | nodus.training.json [flags]
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 -
-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")
--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)
  • nodus - Run compute Jobs on Nodus

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

Terminal window
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