Start a new project with the package manager

swift

swift package init

click the source code to copy install swift on any operating system with command-not-found.com