# Generic CI

Integrating Meterian into your CI platform is very simple and it requires very few .steps.\
In this section we will explain the different type of integrations.

The only prerequisite is a Meterian API Token

{% hint style="info" %}
To retrieve a Meterian API Token visit the [Meterian Dashboard](https://www.meterian.com/account); in your account select the tab "Tokens" and create a new one, or use an existing one.

API tokens are available only on paid account. To upgrade your subscription, please [contact us](mailto:support@meterian.io).
{% endhint %}

**Set the METERIAN\_API\_TOKEN**

* Specify a secret variable named “METERIAN\_API\_TOKEN” in the “Environment” section of your CI platform

### **Integration with Meterian-Docker-Scanner**

**Easy version**

*Pre-requisites: Docker, Bash and WGet*

In the CI taks / Pipeline add this snippet:

```
wget -q https://raw.githubusercontent.com/MeterianHQ/meterian-scanner-docker/master/scripts/meterian-docker-ci

bash meterian-docker-ci [Meterian CLI Options]

```

**Advanced version**

*Pre-requisites: Docker*

In the CI taks / Pipeline add this snippet:

```
docker pull --quiet meterian/cli
docker run --rm --volume ${PWD}:/workspace --env METERIAN_API_TOKEN=$METERIAN_API_TOKEN meterian/cli [Meterian CLI Options]
```

&#x20;**What does it do?**

The latest version of the [Meterian Dockerized client ](/the-client/the-meterian-client-dockerized.md)will be downloaded into the CI machine and it will run the Meterian analysis against your project\ <br>

### **Integration with the Meterian Client**

*Pre-requisites: Java8, Languages package managers*

In the CI tasks / Pipeline add this snippet:

```
wget -N https://www.meterian.io/downloads/meterian-cli.jar

java -jar meterian-cli.jar [Meterian CLI Options]
```

**What does it do?**

The latest version of the [Meterian Thin Client](/the-client/client.md) will be downloaded to the workspace of your CI task and it will run the Meterian analysis against your project.

{% hint style="info" %}
The Meterian Thin Client is a Java native application written in Java8, so you will need a suitable JRE installed to your CI environment.

It also requires the package managers for the projects languages:

for example for a NodeJS application it will need to be running in a working NodeJS/NPM installation compatible with your project. This rule applies to every platform.<br>
{% endhint %}

Learn more about the Meterian Client [here](/the-client/client.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meterian.io/ci-server-integrations/generic-ci.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
