spin maintain

Apply updates to your inventory of servers.

Usage

Usage for "spin maintain"

spin maintain [environment] [ -p|--port <port> -u|--user <user> -U|--upgrade ]

Spin Maintain Command

Checklist before executing this command

Before you execute this command, you should have the following completed:

  • You should have a running Ubuntu 22.04+ server with properly configured SSH access
  • The .spin.yml file should be configured

What this command does

The above command will:

  • Connect to your server(s)
  • Update the all operating system packages
  • Update Docker
  • Reboot the server (if needed)

Options

The following options are available to set when running this command.

OptionShortDefaultDescription
environment-allOptional. The target environment to maintain (e.g., production, staging).
--host-hThe hostname or group of hosts you'd like to apply updates to.
--port-p22The port to SSH into the server with.
--user-uThe username of your HOST machine (run whoami in a new terminal)The user to SSH into the server with.
--upgrade-UCheck for Ansible collection updates once per day.Force upgrade the Ansible Collection on your machine before applying updates.