Install Additional Platforms through Command Line

The tvOS and watchOS platforms aren't installed by default using Xcode 14. This poses a problem for continuous integration if Xcode was installed with only the default platforms (iOS and macOS). Is it possible to install additional platforms through the command line?

Install Additional Platforms through Command Line
 
 
Q