# Script Usage

## Commands

### **Mainnet installation**

* **Install PayRam on the mainnet (production environment):**

  ```bash
  bash <(curl -fsSL https://payram.com/setup_payram.sh) --mainnet
  ```

***

### **Testnet installation**

* **Install PayRam on the testnet (Development environment):**

  ```bash
  bash <(curl -fsSL https://payram.com/setup_payram.sh) --testnet
  ```

***

### Update

* To update the PayRam container to the latest version, run the following command:

  ```bash
  bash <(curl -fsSL https://payram.com/setup_payram.sh) --update
  ```

***

### Reset

* To completely reset the PayRam server configuration and perform a clean uninstallation, including the removal of all Docker images, run the following command:

  ```bash
  bash <(curl -fsSL https://payram.com/setup_payram.sh) --reset
  ```

***

### Restart

* To restart the PayRam server and refresh all active services without removing any data or configurations, run the following command.This will safely restart PayRam, helping to resolve issues such as unprocessed blocks or inactive services

```bash
bash <(curl -fsSL https://payram.com/setup_payram.sh) --restart
```
