Create Customer Address Programmatically in Magento 2.

You can create Customer address using Programmatically for any existing customer in Magento.

For Create Customer address, you must have a customer created in Magento store. Based on existing customer id, We can create customer address programmatically.

You need to refer below code snippet to create customer address,

AddressRepositoryInterface used to save Customer address Programmatically.

You need to pass Customer id $customerId dynamically in the above function for creating a customer address.

You can see the new Customer address from the admin panel.
Go To Admin panel, Login with credentials,
Click on Left navigation, Customers -> All Customers
Click Your Customers and Check the Addresses tab from left.
You can see a new customer address.