Skip to content

Commit 36a997a

Browse files
authored
add starkup installation method (#2030)
Closes #2019
1 parent 20d9941 commit 36a997a

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

website/.vitepress/components/home/Download.vue

+18-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const platform = computed(() => {
1818
});
1919
2020
const QUICK = `curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh`;
21+
const STARKUP = `curl --proto '=https' --tlsv1.2 -sSf https://sh.starkup.dev | sh`;
2122
const ASDF = `
2223
asdf plugin add scarb
2324
asdf install scarb latest
@@ -32,9 +33,21 @@ asdf set -u scarb latest
3233
Run the following in your terminal, then follow the onscreen
3334
instructions
3435
</h2>
35-
<div>
36+
<div class="installation-method">
3637
<h3>
3738
Install via
39+
<a
40+
href="https://github.com/software-mansion/starkup"
41+
rel="noreferrer"
42+
target="_blank"
43+
>starkup</a
44+
>
45+
</h3>
46+
<Snippet :src="STARKUP" lang="shell" />
47+
</div>
48+
<div class="installation-method">
49+
<h3>
50+
Or via
3851
<a href="https://asdf-vm.com/" rel="noreferrer" target="_blank"
3952
>asdf</a
4053
>
@@ -81,6 +94,10 @@ h3 {
8194
text-align: center;
8295
}
8396
97+
.installation-method {
98+
margin-bottom: 1.5rem;
99+
}
100+
84101
.download-unix > .notes {
85102
font-size: 0.8em;
86103
margin-bottom: 0;

website/download.md

+17
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ If you are not sure if you have Scarb installed or not, you can run `scarb --ver
2121

2222
To download Git dependencies, Scarb requires a Git executable to be available in the `PATH` environment variable.
2323

24+
## Install via starkup installation script
25+
26+
Starkup is a tool that helps you install all the essential tools for Cairo development, including Scarb.
27+
This method only works on macOS and Linux.
28+
29+
Run the following in your terminal, then follow the onscreen instructions:
30+
31+
```shell
32+
curl --proto '=https' --tlsv1.2 -sSf https://sh.starkup.dev | sh
33+
```
34+
35+
Starkup uses asdf under the hood and will install it if not already present.
36+
For more information on asdf, including how to manage and switch between different Scarb versions, see the [Install via asdf](#install-via-asdf) section below.
37+
In addition to Scarb, Starkup also installs other useful tools, including [Starknet Foundry](https://github.com/starknet-community-team/starknet-foundry), [Universal Sierra Compiler](https://github.com/software-mansion/universal-sierra-compiler), [Cairo Profiler](https://github.com/software-mansion/cairo-profiler), [Cairo Coverage](https://github.com/software-mansion/cairo-coverage), [CairoLS](https://github.com/software-mansion/cairols) VSCode extension.
38+
39+
Check out the [Starkup repository on GitHub](https://github.com/software-mansion/starkup) for more information.
40+
2441
## Install via asdf
2542

2643
asdf is a CLI tool that can manage multiple language runtime versions on a per-project basis.

0 commit comments

Comments
 (0)