GO:0043163:   cell envelope organization
A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of the cell envelope, everything external to, but not including, the cytoplasmic membrane of bacteria, encompassing the periplasmic space, cell wall, and outer membrane if present.