Skip to content

Commit 696690d

Browse files
committed
Update the Getting started pages for Swiftly
1 parent b01fa81 commit 696690d

File tree

2 files changed

+71
-46
lines changed

2 files changed

+71
-46
lines changed

install/linux/swiftly/index.md

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,65 @@
11
---
22
layout: page
3-
title: Getting Started with Swiftly
3+
title: Getting Started with Swiftly on Linux
44
---
55

6-
Download swiftly from the [install page](/install).
76

8-
Run the following command in your terminal, to configure swiftly for your account:
7+
If you are using Linux then you can download the archive:
98

109
```
11-
$ swiftly init
10+
curl -O https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
1211
```
1312

14-
Once swiftly is installed you can use it to install the latest available swift toolchain like this:
15-
13+
Extract the archive:
14+
```
15+
tar zxf swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
1616
```
17-
$ swiftly install latest
1817

19-
Fetching the latest stable Swift release...
20-
Installing Swift 6.0.1
21-
Downloaded 488.5 MiB of 488.5 MiB
22-
Extracting toolchain...
23-
Swift 6.0.1 installed successfully!
18+
Now run swiftly init to finish the installation:
19+
20+
```
21+
./swiftly init
22+
```
23+
Swiftly will install itself and download the latest available Swift toolchain. Follow the prompts for any additional steps. Once everything is done you can begin using swift.
2424

25+
```
2526
$ swift --version
2627
27-
Swift version 6.0.1 (swift-6.0.1-RELEASE)
28-
Target: x86_64-unknown-linux-gnu
28+
29+
Swift version 6.0.3 (swift-6.0.3-RELEASE)
30+
...
31+
32+
33+
$ swift build # Build with the latest (6.0.3) toolchain
2934
```
3035

31-
Or, you can install (and use) a swift release:
36+
You can install (and use) another release toolchain:
3237

3338
```
3439
$ swiftly install --use 5.10
3540
41+
3642
$ swift --version
3743
38-
Swift version 5.10 (swift-5.10-RELEASE)
39-
Target: x86_64-unknown-linux-gnu
40-
```
4144
42-
There's also an option to install the latest snapshot release and get access to the latest features:
45+
Swift version 5.10.1 (swift-5.10.1-RELEASE)
46+
...
47+
48+
49+
$ swift build # Build with the 5.10.1 toolchain
50+
```
4351

52+
Quickly test your package with the latest nightly snapshot to prepare for the next release:
4453
```
4554
$ swiftly install main-snapshot
55+
$ swiftly run swift test +main-snapshot # Run "swift test" with the main-snapshot toolchain
56+
$ swift build # Continue to build with my usual toolchain
57+
```
58+
59+
Uninstall this toolchain after you’re finished with it:
60+
61+
```
62+
$ swiftly uninstall main-snapshot
4663
```
4764

48-
> Note: This last example just installed the toolchain. You can run "swiftly use" to switch to it and other installed toolchahins when you're ready.
65+
[Learn more about Swiftly](https://www.swift.org/swiftly/documentation/swiftlydocs)

install/macos/swiftly/index.md

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,59 @@
11
---
22
layout: page
3-
title: Getting Started with Swiftly
3+
title: Getting Started with Swiftly on macOS
44
---
55

6-
Download swiftly from the [install page](/install).
7-
8-
Run the following command in your terminal, to configure swiftly for your account:
9-
6+
On macOS you can run download the pkg:
107
```
11-
$ swiftly init
8+
curl -O https://download.swift.org/swiftly/darwin/swiftly-{{ site.data.builds.swiftly_release.version }}.pkg
129
```
1310

14-
Once swiftly is installed you can use it to install the latest available swift toolchain like this:
11+
Run the pkg installer from the command-line like this:
12+
```
13+
installer -pkg swiftly-{{ site.data.builds.swiftly_release.version }}.pkg -target CurrentUserHomeDirectory
14+
```
1515

16+
Now run swiftly init to finish the installation:
17+
```
18+
/usr/local/bin/swiftly init
1619
```
17-
$ swiftly install latest
20+
Swiftly will install itself and download the latest available Swift toolchain. Follow the prompts for any additional steps. Once everything is done you can begin using swift.
21+
```
22+
$ swift --version
1823
19-
Fetching the latest stable Swift release...
20-
Installing Swift 6.0.1
21-
Downloaded 1355.3 MiB of 1355.3 MiB
22-
Installing package in user home directory...
23-
installer: Package name is Swift Open Source Xcode Toolchain
24-
installer: Upgrading at base path /Users/swift
25-
installer: The upgrade was successful.
26-
Swift 6.0.1 installed successfully!
2724
28-
$ swift --version
25+
Swift version 6.0.3 (swift-6.0.3-RELEASE)
26+
...
2927
30-
Apple Swift version 6.0.1 (swift-6.0.1-RELEASE)
31-
Target: arm64-apple-macosx15.0
32-
```
3328
34-
Or, you can install (and use) a swift release:
29+
$ swift build # Build with the latest (6.0.3) toolchain
30+
```
3531

32+
You can install (and use) another release toolchain:
3633
```
3734
$ swiftly install --use 5.10
3835
36+
3937
$ swift --version
4038
41-
Apple Swift version 5.10 (swift-5.10-RELEASE)
42-
Target: arm64-apple-macosx15.0
43-
```
4439
45-
There's also an option to install the latest snapshot release and get access to the latest features:
40+
Swift version 5.10.1 (swift-5.10.1-RELEASE)
41+
...
4642
43+
44+
$ swift build # Build with the 5.10.1 toolchain
45+
```
46+
47+
Quickly test your package with the latest nightly snapshot to prepare for the next release:
4748
```
4849
$ swiftly install main-snapshot
50+
$ swiftly run swift test +main-snapshot # Run "swift test" with the main-snapshot toolchain
51+
$ swift build # Continue to build with my usual toolchain
52+
```
53+
54+
Uninstall this toolchain after you’re finished with it:
55+
```
56+
$ swiftly uninstall main-snapshot
4957
```
5058

51-
> Note: This last example just installed the toolchain. You can run "swiftly use" to switch to it and other installed toolchahins when you're ready.
59+
[Learn more about Swiftly](https://www.swift.org/swiftly/documentation/swiftlydocs)

0 commit comments

Comments
 (0)