We are doing migration from dev to prod . How we can add all identity attrbutes at once

You can use config hub like @pattabhi mentioned, sp-config like @udayputta mentioned, you can also copy/edit the config using the VSCode plugin from dev to prod.