How to use the dockerized client to execute your first scan
The thin client requires a Java Runtime Environment 1.8+ to run and does not include any standard SDK that is usually needed to produce the dependencies graph of your application. For example, if you want to analyse a Java project based on Maven, then Maven will have to be installed on your machine. The same happens if you want to analyse a .NET project: the .NET SDK will have to be installed and correctly configured on the machine you are running the client from. We expect developers to have their tools on their machines :) but in case they do not, please prefer using the dockerized version of the client, which includes also all the necessary tools.
This guide assumes you are working on a *nix environment: if you are using windows, please refer to the page "Use the thin client on Windows".
1. download the Java Thin Client from the Meterian cloud
2. set up the METERIAN_API_TOKEN environment variable with one of tokens available in the account, or create a new one. We also suggest you add this to your .bashrc
export METERIAN_API_TOKEN=your-token-uuid-here
3. launch the client once to validate everything is working properly
(note: the first time the thin client may also be downloaded)
All done! You can click on the link and see the final report in HTML. you can also ask the system to generate, for example, a console report adding to the command "--console-report" to see immediately all the information. To learn more about it, see the section "Command line parameters".
You can also setup a simple script that will automatically update your client if required: