Command line interface#

To use the CLI, three authentication parameters are required

pyslurmutils <command> --url=... --user=... --token=...

Alternatively they can be provided as environment variables

export SLURM_URL=...
export SLURM_USER=...
export SLURM_TOKEN=...

pyslurmutils <command>

Check token and client-server API compatibility

pyslurmutils check

List all my recent jobs (e.g. monitor with a 1 second interval)

pyslurmutils status -m 1

Cancel jobs

pyslurmutils cancel 5942999 5943022