Since version 3, it is possible to upgrade the agent version remotely, from the wazuh manager.
On the server where wazuh manager is installed, run the following command:
./agent_upgrade -a AGENT -f /opt/ossec-manager/var/upgrade/wazuh_agent_v3.13.3_linux_x86_64.wpk
Instead of AGENT please enter the agent ID.