Skip to content

support HARPER_CLI_* env vars#391

Open
ldt1996 wants to merge 2 commits intomainfrom
fix/cli-harper-env-vars
Open

support HARPER_CLI_* env vars#391
ldt1996 wants to merge 2 commits intomainfrom
fix/cli-harper-env-vars

Conversation

@ldt1996
Copy link
Copy Markdown
Contributor

@ldt1996 ldt1996 commented Apr 21, 2026

UPDATE:

After some discussions, the agreement is that we'll prefer HARPER_ prefixed env vars , but we accept both versions

fixes HdbError: Harper properties file at path /Users/lavinia/.nvm/versions/node/v24.14.1/lib/node_modules/harper/dist/hdb_boot_properties.file does not exist

@ldt1996 ldt1996 requested a review from a team as a code owner April 21, 2026 15:14
Comment thread bin/cliOperations.js Outdated
async function cliOperations(req) {
if (!req.target) {
req.target = process.env.CLI_TARGET;
req.target = process.env.CLI_TARGET || process.env.HARPER_CLI_TARGET;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these HARPER_CLI_* env vars? Why aren't the CLI_TARGET* env vars sufficient?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It began with a user setting HARPER_CLI_TARGET in a GH Actions workflow. We discussed on the slack thread, and Kris confirmed we want to move toward HARPER_-prefixed env vars

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K, just checking. We should add a ticket these new env vars.

@ldt1996 ldt1996 changed the title accept HARPER_CLI_TARGET as alias for CLI_TARGET support HARPER_CLI_* env vars Apr 21, 2026
@ldt1996 ldt1996 changed the title support HARPER_CLI_* env vars support HARPER_CLI_* env vars Apr 21, 2026
Copy link
Copy Markdown
Member

@kriszyp kriszyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but were you going to add some logging to indicate if the CLI was connecting to local vs a target?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants