You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/guides/pages/quickstart/environment-setup.adoc
+8-56Lines changed: 8 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,22 +22,20 @@ To review these tools in more detail, as well as all other Starknet developer to
22
22
23
23
== Setting up your environment on MacOS and Linux
24
24
25
-
=== Installing Scarb and Starknet Foundry
26
-
27
-
28
-
On MacOS and Linux, Scarb and Starknet Foundry can be easily installed using the https://github.com/software-mansion/starkup[Starkup installer^] by running:
25
+
On MacOS and Linux, Scarb, Starknet Foundry and Starknet Devnet can be easily installed using the https://github.com/software-mansion/starkup[Starkup installer^] by running:
29
26
30
27
[source,terminal]
31
28
----
32
29
curl --proto '=https' --tlsv1.2 -sSf https://sh.starkup.sh | sh
33
30
----
34
31
35
-
and following the onscreen instructions. You can verify that Scarb and Starknet Foundry are installed correctly by running:
32
+
and following the onscreen instructions. You can verify that all three tools are installed correctly by running:
36
33
37
34
[source,terminal]
38
35
----
39
36
scarb --version
40
37
snforge --version && sncast --version
38
+
starknet-devnet --version
41
39
----
42
40
43
41
If the installation was successful, the result should resemble the following:
Starkup installs Scarb and Starknet Foundry Devnet on MacOS and Linux via the https://asdf-vm.com/[`asdf` version manager^], which allows to easily switch between their different versions, both globally and per project (see full details in the https://asdf-vm.com/manage/commands.html[`asdf` documentation^] or by running `asdf --help`). Alongside Scarb and Starknet Foundry, Starkup uses `asdf` to install additional useful tools, including the https://github.com/software-mansion/universal-sierra-compiler[Universal Sierra Compiler^], https://github.com/software-mansion/cairo-profiler[Cairo Profiler^], https://github.com/software-mansion/cairo-coverage[Cairo Coverage^], and https://github.com/software-mansion/cairols[CairoLS^].
57
+
Starkup installs Scarb, Starknet Foundry, and Starknet Devnet on MacOS and Linux via the https://asdf-vm.com/[`asdf` version manager^], which allows to easily switch between their different versions, both globally and per project (see full details in the https://asdf-vm.com/manage/commands.html[`asdf` documentation^] or by running `asdf --help`). Alongside Scarb and Starknet Foundry, Starkup uses `asdf` to install additional useful tools, including the https://github.com/software-mansion/universal-sierra-compiler[Universal Sierra Compiler^], https://github.com/software-mansion/cairo-profiler[Cairo Profiler^], https://github.com/software-mansion/cairo-coverage[Cairo Coverage^], and https://github.com/software-mansion/cairols[CairoLS^].
58
58
59
59
If you encounter any issues while using it or have any requests, please help by https://github.com/software-mansion/starkup/issues/new[submitting an issue^].
60
60
====
61
61
62
-
=== Installing Starknet Devnet
63
-
64
-
xref:#installing-scarb-and-snfoundry[Similar to Scarb and Starknet Foundry], it is highly recommended to install Starknet Devnet on MacOS and Linux via the `asdf` version manager. Luckily, if you installed Scarb and Starknet Foundry using the Starkup installer, you should already have `asdf` installed. To install Starknet Devnet using `asdf`:
65
-
66
-
. Verify that `asdf` is installed:
67
-
+
68
-
[source,terminal]
69
-
----
70
-
asdf --version
71
-
----
72
-
+
73
-
or install it by following the instructions in the link:https://asdf-vm.com/guide/getting-started.html[`asdf` documentation].
74
-
75
-
. Install the `asdf` Starknet Devnet plugin:
76
-
+
77
-
[source,terminal]
78
-
----
79
-
asdf plugin add starknet-devnet
80
-
----
81
-
82
-
. Install the latest version of Starknet Devnet:
83
-
+
84
-
[source,terminal]
85
-
----
86
-
asdf install starknet-devnet latest
87
-
----
88
-
89
-
. Set global version for Starknet Devnet:
90
-
+
91
-
[source,terminal]
92
-
----
93
-
asdf set -u starknet-devnet latest
94
-
----
95
-
96
-
. Restart the terminal and verify that Starknet Devnet is installed correctly:
97
-
+
98
-
[source,terminal]
99
-
----
100
-
starknet-devnet --version
101
-
----
102
-
103
-
If the installation was successful, the result should resemble the following:
104
-
105
-
[source,terminal]
106
-
----
107
-
starknet-devnet 0.4.1
108
-
----
109
-
110
62
== Setting up your environment on Windows
111
63
112
64
Setting up Scarb and Starknet Foundry on Windows requires configuring the Windows Subsystem for Linux (WSL) and installing the tools inside a Linux distribution such as Ubuntu.
0 commit comments