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: content/collections/docs/ubuntu.md
+23-3
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,22 @@ Now you can check to make sure Composer is installed and configured correctly by
52
52
composer
53
53
```
54
54
55
+
## Install Statamic CLI
56
+
57
+
Next up, let's install the Statamic CLI. To do this, run the following command in your terminal:
58
+
59
+
```shell
60
+
composer global require statamic/cli
61
+
```
62
+
63
+
Upon installation, you can now use the `statamic new` command to spin up fresh Statamic sites with a CLI setup wizard 🧙♂️ to guide you through a variety of settings and options.
64
+
65
+
Our CLI is essentially a super fancy wrapper around the `composer create-project` command. You can choose to not install it, but only at your own annoyance.
66
+
55
67
56
68
## Create a new Statamic Application
57
69
58
-
Now we'll create a new Statamic application using the `composer create-project` command.
70
+
Now we'll create a new Statamic application using the `statamic new` command.
Alternatively, you could git clone an **existing project** instead of installing a new empty site.
85
+
If you run into a TTY error like `TTY mode requires /dev/tty to be read/writable`, you can simulate TTY by calling `script` and using the `--no-interaction` flag.
86
+
87
+
```
88
+
script -q -c "statamic new --no-interaction example.com"
89
+
```
74
90
:::
75
91
76
92
## Set Permissions
@@ -189,3 +205,7 @@ Now visit your IP Address or `https://example.com` (but like the actual domain)
189
205
That's pretty much it. Time for you to take it from here.
190
206
191
207
If this is your production server, you'll probably want to add cache expiry headers and so on, but those rules and what you cache to the browser are all up to you.
208
+
209
+
There are many other variables at play when building your own server. It's unrealistic to think we've covered them all here, or that this article won't get out of date at times as things change.
210
+
211
+
If you run into issues not covered here, you may want to read through [this discussion](https://github.com/statamic/cms/discussions/10487) where several folks work through many edge cases happening all at once.
0 commit comments