for your edition:
c:\VS2022Offline\vs_setup.exe --add all --quiet
Creating an offline installer involves a two-step process using the Visual Studio Bootstrapper Download & Layout:
Open a as an Administrator and navigate to your download folder. Run a command to download only the workloads you need to save time and disk space. For .NET Desktop & Web Development (approx. 10–20 GB):