salloc(1) --time%3D0%3A30%3A0 --ntasks%3D8 --mem-per-cpu%3D3600 --account%3Ddef-someprof
Obtain a SLURM job allocation (a set of nodes), execute a command, and then release the allocation when the command is finished
source manpages: salloc