Skip to content

Commit

Permalink
Create TurboStackCLI.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTerreur authored Apr 18, 2024
1 parent cbaf815 commit f538fb7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions TurboStack App/TurboStackCLI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
order: 20
---

# TurboStack CLI
The TurboStack Command Line Interface (later referred to as TSCLI) is available on all TurboStack nodes to provide you with an easy to use tool to manage the services on your environment, even ones you would normally need root access for. Below is a short description of the various features.

## TSCLI Commands
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.

### NGINX Webserver
[!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.

### BlackFire php Profiler
[!badge icon="rocket" text="tscli blackfire enable"] - Installs the Blackfire Profiler and restarts the PHP-FPM service(s).

[!badge icon="rocket" text="tscli blackfire enable"] - Uninstalls the Blackfire Profiler and restarts the PHP-FPM service(s).

[!badge icon="rocket" text="tscli blackfire reload"] - Restarts the Blackfire Profiler service, to apply changes to the configuration.

### Firewall
[!badge icon="rocket" text="tscli firewall check"] - Returns info on wether the IP parameter is listed in the iptables. Please make sure to only use valid IP addresses.

[!badge icon="rocket" text="tscli firewall block"] - Adds a firewall rule to block a specific IP address as specified in the IP parameter.

[!badge icon="rocket" text="tscli firewall unblock"] - Removes an IP address from the firewall's deny list.

### PHP OpCache
[!badge icon="rocket" text="tscli opcache clear"] - Resets php's OpCache.

### Varnish Cache
[!badge icon="rocket" text="tscli varnish clear"] - Clears everything from Varnish Cache's memory.

[!badge icon="rocket" text="tscli varnish reload"] - Reloads the Varnisch Cache configuration



0 comments on commit f538fb7

Please sign in to comment.