If you want to switch the PHP version in the command line of your Homestead Vagrant box, you can follow these steps:
1. SSH into your Homestead Vagrant box by running the following command from your project's root directory:
```
vagrant ssh
```
2. Once you are inside the Vagrant box, you can use the `update-alternatives` command to switch the PHP version. Run the following command to see the available PHP versions:
```
sudo update-alternatives --config php
```
3. The command will display a list of available PHP versions installed on your system. Each version will have a corresponding number associated with it. Enter the number of the PHP version you want to switch to and press Enter.
4. After selecting the PHP version, it will be set as the default version for the command line.
5. To verify the PHP version, you can run the following command:
```
php -v
```
That's it! You have now switched the PHP version in the command line of your Homestead Vagrant box. The selected PHP version will be used for any subsequent PHP command you run from the command line.