Update commands to use the new API.