spin latest
Run a one-off container to perform a task with the latest version of the container type you specify. This is great when you need to run composer or npm commands outside of a project directory.
Usage
Usage for "spin latest"
spin latest [OPTIONS] SERVICE COMMAND
Options
php: Run the latest stable version of PHPnode: Run the latest stable LTS version of Node
Example
Example of running a container for "composer install" with PHP
spin latest php php my_script.php
The above command will run the latest stable version of php, then run the command php my_script.php inside the container. The php in the command is duplicated because one is the service name name of php and the other is the command to run php inside the container.