Update flatten management command