spin provision [environment] [ -p|--port <port> -u|--user <user> -U|--upgrade ]
-u root to the command when you first run it. This will use the root user to connect and configure your other users. See our guide on Using Any Host for more details.Before you execute this command, you should have the following completed:
.spin.yml file should be configuredaddress property set-u root set in the command (or whatever your host's default sudo user is)address property, make sure you have SSH access to the server and it meets our server requirementsYou can learn more how servers work with Spin but depending on your set up, below shows what will happen when you run this command:
.spin.yml file with the actual IP address of the server that was just createdaddress property setThe following options are available to set when running this command.
| Option | Short | Default | Description |
|---|---|---|---|
environment | - | all | Optional. The target environment to provision (e.g., production, staging). |
--host | -h | The hostname or group of hosts you'd like to provision. | |
--port | -p | 22 | The port to SSH into the server with. |
--user | -u | The username of your HOST machine (run whoami in a new terminal) | The user to SSH into the server with. |
--upgrade | -U | Check for Ansible collection updates once per day. | Force upgrade the Ansible Collection on your machine before provisioning. |