# Install NGINX Agent Type of document: How-to guide Product: NGINX Instance Manager > Install NGINX Agent on each F5 WAF for NGINX instance to connect it to F5 NGINX Instance Manager. --- To onboard your F5 WAF for NGINX instances to F5 NGINX Instance Manager, install and configure NGINX Agent on each instance. 1. Use SSH to connect to an F5 WAF for NGINX instance. Repeat these steps for each instance you want to onboard. 1. Download the NGINX Agent package from your NGINX Instance Manager host and run the installation script. You can group instances that use the same version of F5 WAF for NGINX by including the optional `--instance-group` flag in the install command. **Note:** Make sure `gpg` is installed on your system before continuing. You can install NGINX Agent using command-line tools like `curl` or `wget`. If your NGINX Instance Manager host doesn't use valid TLS certificates, you can use the insecure flags to bypass verification. Here are some example commands: #### curl - **Secure:** ```bash curl https:///install/nginx-agent | sudo sh ``` - **Insecure:** ```bash curl --insecure https:///install/nginx-agent | sudo sh ``` To add the instance to a specific instance group during installation, use the `--instance-group` (or `-g`) flag: ```shell curl https:///install/nginx-agent -o install.sh chmod u+x install.sh sudo ./install.sh --instance-group ``` By default, the install script uses a secure connection to download packages. If it can’t establish one, it falls back to an insecure connection and logs this message: ```text Warning: An insecure connection will be used during this nginx-agent installation ``` To enforce a secure connection, set the `--skip-verify` flag to false: ```shell curl https:///install/nginx-agent -o install.sh chmod u+x install.sh sudo ./install.sh --skip-verify false ``` #### wget - **Secure:** ```shell wget https:///install/nginx-agent -O - | sudo sh -s --skip-verify false ``` - **Insecure:** ```shell wget --no-check-certificate https:///install/nginx-agent -O - | sudo sh ``` To add your instance to a group during installation, use the `--instance-group` (or `-g`) flag: ```shell wget https:///install/nginx-agent -O install.sh chmod u+x install.sh sudo ./install.sh --instance-group ``` **Note:** - [Configure NGINX Agent](/nim/waf-integration/configuration/onboard-instances/configure-nginx-agent.md)