Skip to content

Commit eabac05

Browse files
committed
[install] Add Swiftly to the install page under beta/preview
1 parent b0fba54 commit eabac05

File tree

5 files changed

+131
-2
lines changed

5 files changed

+131
-2
lines changed

_includes/install/_linux_platforms_tabs.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## Toolchain Installer
2+
<ul class="grid-level-0">
3+
<li class="grid-level-1 featured">
4+
<h3>Swiftly (beta)</h3>
5+
<p class="description">
6+
Command line tool for installing, managing, and switching between Swift.org toolchains.
7+
</p>
8+
<!-- <br>
9+
<p>To install swiftly, run the following command in your terminal.</p>
10+
<pre><code>
11+
$ curl -s https://download.swift.org/linux/swiftly > /usr/local/bin/swiftly
12+
</code></pre> -->
13+
<h4>License: <a href="https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt">Apache-2.0</a> | PGP: <a href="https://download.swift.org/linux/swiftly.sig">Signature</a></h4>
14+
<a href="https://download.swift.org/linux/swiftly" class="cta-secondary">Download</a>
15+
<a href="/install/linux/swiftly" class="cta-secondary">Instructions</a>
16+
</li>
17+
</ul>
18+
19+
## Alternate installation options
20+
121
<p id="platforms">Select Linux platform:</p>
222

323
<div class="interactive-tabs os">

install/linux/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ title: Install Swift
44
---
55

66
{% include install/_os_tabs.md linux="true" %}
7-
87
{% include install/_linux_platforms_tabs.md %}

install/linux/swiftly/index.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
layout: page
3+
title: Getting Started with Swiftly
4+
---
5+
6+
Download swiftly from the [install page](/install).
7+
8+
Run the following command in your terminal, to configure swiftly for your account:
9+
10+
```
11+
$ swiftly init
12+
```
13+
14+
Once swiftly is installed you can use it to install the latest available swift toolchain like this:
15+
16+
```
17+
$ swiftly install latest
18+
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!
24+
25+
$ swift --version
26+
27+
Swift version 6.0.1 (swift-6.0.1-RELEASE)
28+
Target: x86_64-unknown-linux-gnu
29+
```
30+
31+
Or, you can install (and use) a swift release:
32+
33+
```
34+
$ swiftly install --use 5.10
35+
36+
$ swift --version
37+
38+
Swift version 5.10 (swift-5.10-RELEASE)
39+
Target: x86_64-unknown-linux-gnu
40+
```
41+
42+
There's also an option to install the latest snapshot release and get access to the latest features:
43+
44+
```
45+
$ swiftly install main-snapshot
46+
```
47+
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.

install/macos/index.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,19 @@ title: Install Swift
55

66
{% include install/_os_tabs.md macos="true" %}
77

8-
## Latest Release (Swift {{ site.data.builds.swift_releases.last.name }})
8+
## Toolchain Installer
9+
<ul class="grid-level-0">
10+
<li class="grid-level-1 featured">
11+
<h3>Swiftly (beta)</h3>
12+
<p class="description">
13+
Command line tool for installing, managing, and switching between Swift.org toolchains.
14+
</p>
15+
<a href="https://download.swift.org/macos/swiftly.pkg" class="cta-secondary">Download</a>
16+
<a href="/install/macos/swiftly" class="cta-secondary">Instructions</a>
17+
</li>
18+
</ul>
919

20+
## Latest Release (Swift {{ site.data.builds.swift_releases.last.name }})
1021
<ul class="grid-level-0 grid-layout-2-column">
1122
<li class="grid-level-1">
1223
<h3>Xcode</h3>

install/macos/swiftly/index.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
layout: page
3+
title: Getting Started with Swiftly
4+
---
5+
6+
Download swiftly from the [install page](/install).
7+
8+
Run the following command in your terminal, to configure swiftly for your account:
9+
10+
```
11+
$ swiftly init
12+
```
13+
14+
Once swiftly is installed you can use it to install the latest available swift toolchain like this:
15+
16+
```
17+
$ swiftly install latest
18+
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!
27+
28+
$ swift --version
29+
30+
Apple Swift version 6.0.1 (swift-6.0.1-RELEASE)
31+
Target: arm64-apple-macosx15.0
32+
```
33+
34+
Or, you can install (and use) a swift release:
35+
36+
```
37+
$ swiftly install --use 5.10
38+
39+
$ swift --version
40+
41+
Apple Swift version 5.10 (swift-5.10-RELEASE)
42+
Target: arm64-apple-macosx15.0
43+
```
44+
45+
There's also an option to install the latest snapshot release and get access to the latest features:
46+
47+
```
48+
$ swiftly install main-snapshot
49+
```
50+
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.

0 commit comments

Comments
 (0)