/ride Command

/ride is a command that was added in the 1.19.4 (23w03a) update. It allows entities to mount or dismount other entities.

Syntax
The syntax of the command is very simple : This version of the command makes an entity mount another entity. But there also is this version of the command : Which makes the entity dismount from any entity it is riding.

The arguments are any players, a mob's UUID or any of the target selectors (E.g @a @p)

Misc.

 * The target selector must be in single type, meaning that it cannot be things like @e which selects every entity.