Skip to content

Commit 4fcc4ff

Browse files
authored
Update ts_cli.md
1 parent 819fd54 commit 4fcc4ff

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

turbostack_configuration/ts_cli.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,49 @@ order: 20
33
---
44

55
# TS CLI
6+
7+
The TurboStack Command Line Interface (later referred to as TSCLI) is available on all TurboStack servers to provide you with an easy to use tool to manage the services on your server, even ones you would normally need root access for. Below is a short description of the various features.
8+
9+
10+
## TSCLI Commands
11+
The TSCLI tool uses levels of arguments to categorize functions. Every command starts with 'tscli' followed by the service you're managing, followed by the parameters for the function you're using as documented below.
12+
13+
Example:
14+
15+
tscli nginx reload
16+
This command will reload the NGINX service configuration
17+
18+
19+
20+
### NGINX Webserver
21+
[!badge icon="rocket" text="tscli nginx reload"] - Verifies the NGINX configuration and reloads it if it is valid. If it isn't valid you'll get an error with the issue reported.
22+
23+
### BlackFire php Profiler
24+
[!badge icon="rocket" text="tscli blackfire enable"] - Installs the Blackfire Profiler and restarts the PHP-FPM service(s).
25+
[!badge icon="rocket" text="tscli blackfire enable"] - Uninstalls the Blackfire Profiler and restarts the PHP-FPM service(s).
26+
[!badge icon="rocket" text="tscli blackfire reload"] - Restarts the Blackfire Profiler service, to apply changes to the configuration.
27+
28+
### Firewall
29+
30+
tscli firewall check
31+
32+
Returns info on wether the IP parameter is listed in the iptables. Please make sure to only use valid IP addresses.
33+
tscli firewall block
34+
35+
Adds a firewall rule to block a specific IP address as specified in the IP parameter.
36+
tscli firewall unblock
37+
38+
Removes an IP address from the firewall's deny list.
39+
php OpCache:
40+
41+
tscli opcache clear
42+
43+
Resets php's OpCache
44+
Varnish Cache:
45+
46+
tscli varnish clear
47+
48+
Clears everything from Varnish Cache's memory.
49+
tscli varnish reload
50+
51+
Reloads the Varnisch Cache configuration

0 commit comments

Comments
 (0)