CXX-20 add write commands

No additional tests yet.