Environments and Variables - amitsri/rostyman-releases GitHub Wiki

Environments & Variables

Manage variables per collection with environment-based overrides.

Opening Environments

  • Click Environments (globe icon) in the left sidebar
  • Or use the environment selector dropdown in a request tab

Creating an Environment

  1. Open the Environments tab
  2. Click New Environment
  3. Give it a name (e.g., "Development", "Staging", "Production")
  4. Add variables to the table

Each collection has its own set of environments.

Variable Types

Type Description
Text Plain string value
Secret Masked value (shown as ••••••••)
Number Numeric value
Boolean True or false
JSON Structured JSON data

Variable Fields

Field Description
Key Variable identifier — use in requests as {{key}}
Initial Value Default/template value (persists across sessions)
Current Value Runtime value (can be modified by scripts, resets on restart)
Description Optional helper text
Enabled Toggle to include/exclude the variable

Using Variables

Reference variables anywhere in your requests with double curly braces:

  • URL: https://{{base_url}}/api/users
  • Headers: Authorization: Bearer {{token}}
  • Body: { "api_key": "{{api_key}}" }

Variables resolve in this order (highest priority first):

  1. Request-level variables
  2. Environment variables
  3. Collection variables
  4. Global variables

Table Editing

  • Click any cell to edit inline
  • Enter to save, Escape to cancel
  • Tab / Shift+Tab to navigate between cells
  • Drag the grip handle to reorder rows
  • Copy All / Paste / Clear All buttons in the toolbar