Forrest logo
back to the nomad tool

nomad:tldr:4fab3

nomad: Run a job on the cluster.
$ nomad job run ${filename-nomad}
try on your machine

This command is used to execute a job file in the Nomad cluster manager.

Let's break down the command:

  • nomad: It is the command-line interface (CLI) for interacting with the Nomad cluster manager. This command is used to perform various operations on Nomad, such as running jobs, querying the status of jobs, etc.

  • job run: This is a specific command within the nomad CLI used to run a job. A job in Nomad is a declarative configuration file that describes the desired state of a task or group of tasks to be run in the cluster.

  • ${filename-nomad}: This is a placeholder indicating that the value inside the curly braces should be replaced with the actual filename of the job file you want to run. ${filename-nomad} suggests that the filename should end with .nomad as a common convention for Nomad job files.

So, when you run the command nomad job run ${filename-nomad}, make sure to replace ${filename-nomad} with the actual filename of your Nomad job file (with the extension .nomad), and the Nomad CLI will execute the job specified in that file on the Nomad cluster.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nomad tool