mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5770] [bug]: CLI script does not save environment varaible #2255
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2255
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @billmartensson on GitHub (Jan 13, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5770
Is there an existing issue for this?
Platform
Desktop App
Browser
Chrome
Operating System
macOS
Bug Description
Have auth request that use post-request script to set environment session variable to be used in other requests.
Example from AWS cognito but not limited to that:
var jsonData = pw.response.body
pw.env.set("cognitoIdToken", jsonData.AuthenticationResult.IdToken);
Works in desktop. Can set header in other requests:
Authorization: Bearer <>
Does not work in CLI. Set variable does not update environment file.
Tried run local of type:
hopp test -e stageenv.json TestRun.json
In CLI variable is not set in requests after setting it but works in desktop.
In our use case it would work if variable wasnt actually written to file. Could just be updated in memory and cleared after run.
Deployment Type
Hoppscotch Cloud
Version
No response