How to download the latest chromedriver for appium

Using CMD command
Can someone help ?

first link in search for MacOS → Installing ChromeDriver on macOS

The general algorithm might be slighly complicated as you need to know the version of the target chrome engine as well as the information about the destination operating system. To make it even more complicated Google has changed the API to fetch drivers since version 115. You may want to check appium-chromedriver/lib/storage-client/storage-client.js at master · appium/appium-chromedriver · GitHub for more details about the concrete implementation