Skip to main content

customer:add-address

Add a new address to an existing customer.

n98-magerun2.phar customer:add-address <email> <website> [--firstname="..."] [--lastname="..."] [--street="..."] [--city="..."] [--country="..."] [--postcode="..."] [--telephone="..."] [--default-billing] [--default-shipping]

Options:

OptionDescription
--firstnameCustomer first name
--lastnameCustomer last name
--streetStreet address
--cityCity
--countryCountry ID (e.g., US)
--postcodePostcode
--telephoneTelephone number
--default-billingSet address as default billing address
--default-shippingSet address as default shipping address

Example:

n98-magerun2.phar customer:add-address foo@example.com base --firstname="John" --lastname="Doe" --street="Main Street 1" --city="Berlin" --country="DE" --postcode="10117" --telephone="1234567890" --default-billing --default-shipping
note

This command was introduced with version 7.4.0.