Replace C:\VS2022Layout with your desired destination path.
Add --includeOptional if you also want optional components (larger size). microsoft visual studio 2022 community offline installer