Karan Sharma

Interacting with Nomad using the CLI

1 minutes (140 words)

Some common commands which are used to interact with the jobs/allocations.

Please refer to CLI Docs to see the common Environment Variables to use in case you’re accessing a production Nomad cluster.

nomad job run file.nomad
nomad job stop -purge <job-name>
nomad job status <job-name>
nomad alloc status -stats <alloc-id>
nomad alloc logs -f -stderr <alloc-id>
nomad alloc exec -i -t -task <task-name> <alloc-id> /bin/bash

Tags: #Nomad