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
|`ols install`| Install/align OpenLiteSpeed runtime and related packages |`--php81``--php82``--php83``--php84``--php85``--database``--config``--http-port``--https-port``--ssl-cert``--ssl-key``--no-listeners`|
35
-
|`ols site create <domain>`| Create a new site/vhost |`--wp``--le``--php81``--php82``--php83``--php84``--php85`|
36
-
|`ols site update <domain>`| Update an existing site (PHP target is required) |`--wp``--php81``--php82``--php83``--php84``--php85`|
37
-
|`ols site info <domain>`| Show site metadata and detected status |*(none)*|
38
-
|`ols site show <domain>`| Print OLS virtual host config (`vhconf.conf`) |*(none)*|
39
-
|`ols site list`| List managed sites discovered from OLS vhost directory |*(none)*|
40
-
|`ols site delete <domain>`| Remove site config/files and optionally keep DB |`--keep-db`|
41
-
42
-
Global options (apply to all commands): `--dry-run`, `--color`
43
-
44
-
### `ols site` subcommands and options
45
-
46
-
| Subcommand | Syntax | Options |
47
-
| --- | --- | --- |
48
-
|`create`|`ols site create <domain>`|`--wp``--le``--php81``--php82``--php83``--php84``--php85`|
49
-
|`update`|`ols site update <domain>`|`--wp` and exactly one of `--php81``--php82``--php83``--php84``--php85`|
50
-
|`info`|`ols site info <domain>`|*(none)*|
51
-
|`show`|`ols site show <domain>`|*(none)*|
52
-
|`list`|`ols site list`|*(none)*|
53
-
|`delete`|`ols site delete <domain>`|`--keep-db`|
54
-
55
-
### Install runtime once (required before provisioning)
56
-
57
-
```bash
58
-
sudo ols install
59
-
```
60
-
61
-
You can switch database engine:
62
-
63
-
```bash
64
-
sudo ols install --php83 --database mysql
65
-
sudo ols install --php85 --database none
66
-
```
67
-
68
-
Use config file defaults (recommended for first-run bootstrap):
sudo ols site create example.com --wp --le --php85
36
+
sudo ols site create example.com --wp --le
87
37
```
88
38
89
39
### Create a site with defaults (WordPress + PHP 8.5)
@@ -98,12 +48,6 @@ sudo ols site create example.com --wp
98
48
sudo ols site update example.com --php85
99
49
```
100
50
101
-
### Update a site and ensure WordPress + LiteSpeed Cache exist
102
-
103
-
```bash
104
-
sudo ols site update example.com --wp --php83
105
-
```
106
-
107
51
### Show site information
108
52
109
53
```bash
@@ -132,6 +76,33 @@ ols --dry-run site show example.com
132
76
ols --dry-run site list
133
77
```
134
78
79
+
## Command overview
80
+
81
+
| Command | Purpose | Common options |
82
+
| --- | --- | --- |
83
+
|`ols install`| Install/align OpenLiteSpeed runtime and related packages |`--php81``--php82``--php83``--php84``--php85``--database``--config``--http-port``--https-port``--ssl-cert``--ssl-key``--no-listeners`|
84
+
|`ols site create <domain>`| Create a new site/vhost |`--wp``--le``--php81``--php82``--php83``--php84``--php85`|
85
+
|`ols site update <domain>`| Update an existing site (PHP target is required) |`--wp``--php81``--php82``--php83``--php84``--php85`|
86
+
|`ols site info <domain>`| Show site metadata and detected status |*(none)*|
87
+
|`ols site show <domain>`| Print OLS virtual host config (`vhconf.conf`) |*(none)*|
88
+
|`ols site list`| List managed sites discovered from OLS vhost directory |*(none)*|
89
+
|`ols site delete <domain>`| Remove site config/files and optionally keep DB |`--keep-db`|
90
+
91
+
Global options (apply to all commands): `--dry-run`, `--color`
92
+
93
+
94
+
`ols site` subcommands and options
95
+
96
+
| Subcommand | Syntax | Options |
97
+
| --- | --- | --- |
98
+
|`create`|`ols site create <domain>`|`--wp``--le``--php81``--php82``--php83``--php84``--php85`|
99
+
|`update`|`ols site update <domain>`|`--wp` and exactly one of `--php81``--php82``--php83``--php84``--php85`|
100
+
|`info`|`ols site info <domain>`|*(none)*|
101
+
|`show`|`ols site show <domain>`|*(none)*|
102
+
|`list`|`ols site list`|*(none)*|
103
+
|`delete`|`ols site delete <domain>`|`--keep-db`|
104
+
105
+
135
106
## Development
136
107
137
108
### Build locally
@@ -151,3 +122,22 @@ For verbose output:
151
122
```bash
152
123
go test -v ./...
153
124
```
125
+
126
+
127
+
## FAQ
128
+
129
+
#### Custom the default config file
130
+
Use config file defaults (recommended for first-run bootstrap):
0 commit comments