Back to plugins
Logo

system env

Version 1.0.0
Install Plugin

Overview

A simple insomnia plugin that allows access to system environment variables from within insomnia.

Examples

Example 1

Access a system environment variable within insomnia.

  1. Get a list of environment variables: ``` $ env

USERNAME=etauker HOME=/home/etauker ...


2. Provide the environment variable name in the template tag:
![Insomnia input screenshot](./images/insomnia-input-screenshot-system.png "Insomnia input screenshot with system environment variable")


### Example 2
Access custom environment variable within insomnia.  

1. Set the variable from the same shell that you use to open insomnia

$ SOME_TOKEN=3fc345d2-9dd8-48e8-a178-3c91c867cc41 insomnia

```

  1. Use the custom environment variable name the same way as in example 1: Insomnia input screenshot