AppleScript that will read a CSV file containing (name, URL, username, password) data and import this to iCloud KeyChain via Safari.
Create a CSV without headers with data in the below order.
name,url,username,password
For example, import an entry for the user doggo at woof.org.
woof,woof.org,doggo,secretbonepass
Script editor must be given permission under System Preferences - Security & Privacy - Accessibility to run. Ensure you remove this after you have finished running the script.