dscl change <path> <key> <old val> <new val>

Replaces the given old value in the list of values of the given key with the new value in the specified record

Arguments

NameDescription
pathPath to the record
keyDirectory Service record attribute type
old valOld value of the key
new valNew value of the key