swift run [executable] [arguments]
Build and run an executable product
Arguments
Name | Description |
---|---|
executable | The executable to run |
arguments | The arguments to pass to the executable |
Options
Name | Description |
---|---|
--help, -h, -help | Show help information |
--version | Show the version |
--skip-build | Skip building the executable product |
--build-tests | Build both source and test targets |
--repl | Launch Swift REPL for the package |