This issue, including its title, is merely copied over verbatim from a backend repo. It was more appropriate to post here. I am not the original author.
The following script generates an error:
vers init
vers run --vm-alias web-socket-server
# Point HEAD to the newly created VM
vers checkout web-socket-server
vers execute web-socket-server "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash"
Usage:
vers execute <vm-id|alias> <command> [args...] [flags]
Even without specifying the VM alias, an error still occurs where vers execute ... does not recognize the HEAD VM is set to web-socket-server after doing vers checkout web-socket-server (this might be a separate issue).