Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 0.0.13 - 2025-12-08

- fix: string/number comparison issue

## 0.0.11 - 2025-11-24

- fix: typos in 'reforge generate --help'
Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $ npm install -g @reforge-com/cli
$ reforge COMMAND
running command...
$ reforge (--version)
@reforge-com/cli/0.0.12 darwin-arm64 node-v22.12.0
@reforge-com/cli/0.0.13 darwin-arm64 node-v24.4.1
$ reforge --help [COMMAND]
USAGE
$ reforge COMMAND
Expand Down Expand Up @@ -91,7 +91,7 @@ EXAMPLES
$ reforge create my.new.string --type json --value="{\"key\": \"value\"}"
```

_See code: [src/commands/create.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/create.ts)_
_See code: [src/commands/create.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/create.ts)_

## `reforge download`

Expand Down Expand Up @@ -124,7 +124,7 @@ EXAMPLES
$ reforge download --environment=test --sdk-key=YOUR_SDK_KEY
```

_See code: [src/commands/download.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/download.ts)_
_See code: [src/commands/download.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/download.ts)_

## `reforge generate`

Expand Down Expand Up @@ -194,7 +194,7 @@ EXAMPLES
$ reforge generate --targets node-ts -o ./dist # combine with targets
```

_See code: [src/commands/generate.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/generate.ts)_
_See code: [src/commands/generate.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/generate.ts)_

## `reforge generate-new-hex-key`

Expand All @@ -217,7 +217,7 @@ EXAMPLES
$ reforge generate-new-hex-key
```

_See code: [src/commands/generate-new-hex-key.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/generate-new-hex-key.ts)_
_See code: [src/commands/generate-new-hex-key.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/generate-new-hex-key.ts)_

## `reforge get [NAME]`

Expand Down Expand Up @@ -250,7 +250,7 @@ EXAMPLES
$ reforge get my.config.name --environment=production
```

_See code: [src/commands/get.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/get.ts)_
_See code: [src/commands/get.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/get.ts)_

## `reforge info [NAME]`

Expand Down Expand Up @@ -281,7 +281,7 @@ EXAMPLES
$ reforge info my.config.name
```

_See code: [src/commands/info.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/info.ts)_
_See code: [src/commands/info.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/info.ts)_

## `reforge interactive`

Expand All @@ -299,7 +299,7 @@ EXAMPLES
$ reforge
```

_See code: [src/commands/interactive.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/interactive.ts)_
_See code: [src/commands/interactive.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/interactive.ts)_

## `reforge list`

Expand Down Expand Up @@ -336,7 +336,7 @@ EXAMPLES
$ reforge list --feature-flags
```

_See code: [src/commands/list.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/list.ts)_
_See code: [src/commands/list.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/list.ts)_

## `reforge login`

Expand Down Expand Up @@ -364,7 +364,7 @@ EXAMPLES
$ reforge login --profile myprofile
```

_See code: [src/commands/login.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/login.ts)_
_See code: [src/commands/login.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/login.ts)_

## `reforge logout`

Expand All @@ -387,7 +387,7 @@ EXAMPLES
$ reforge logout
```

_See code: [src/commands/logout.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/logout.ts)_
_See code: [src/commands/logout.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/logout.ts)_

## `reforge mcp`

Expand Down Expand Up @@ -420,7 +420,7 @@ EXAMPLES
$ reforge mcp --url http://local-launch.goatsofreforge.com:3003/api/v1/mcp
```

_See code: [src/commands/mcp.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/mcp.ts)_
_See code: [src/commands/mcp.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/mcp.ts)_

## `reforge override [NAME]`

Expand Down Expand Up @@ -459,7 +459,7 @@ EXAMPLES
$ reforge override my.double.config --value=3.14159
```

_See code: [src/commands/override.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/override.ts)_
_See code: [src/commands/override.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/override.ts)_

## `reforge profile`

Expand All @@ -482,7 +482,7 @@ EXAMPLES
$ reforge profile
```

_See code: [src/commands/profile.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/profile.ts)_
_See code: [src/commands/profile.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/profile.ts)_

## `reforge schema NAME`

Expand Down Expand Up @@ -516,7 +516,7 @@ EXAMPLES
$ reforge schema my-schema --get
```

_See code: [src/commands/schema.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/schema.ts)_
_See code: [src/commands/schema.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/schema.ts)_

## `reforge serve DATA-FILE`

Expand Down Expand Up @@ -552,7 +552,7 @@ EXAMPLES
$ reforge serve ./reforge.test.588.config.json --port=3099
```

_See code: [src/commands/serve.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/serve.ts)_
_See code: [src/commands/serve.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/serve.ts)_

## `reforge set-default [NAME]`

Expand Down Expand Up @@ -596,7 +596,7 @@ EXAMPLES
$ reforge set-default my.config.name --env-var=MY_ENV_VAR_NAME --environment=production
```

_See code: [src/commands/set-default.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/set-default.ts)_
_See code: [src/commands/set-default.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/set-default.ts)_

## `reforge whoami`

Expand All @@ -619,7 +619,7 @@ EXAMPLES
$ reforge whoami
```

_See code: [src/commands/whoami.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/whoami.ts)_
_See code: [src/commands/whoami.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/whoami.ts)_

## `reforge workspace`

Expand All @@ -642,7 +642,7 @@ EXAMPLES
$ reforge workspace
```

_See code: [src/commands/workspace.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.12/src/commands/workspace.ts)_
_See code: [src/commands/workspace.ts](https://github.com/ReforgeHQ/cli/blob/v0.0.13/src/commands/workspace.ts)_
<!-- commandsstop -->

## Local Development
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packageManager": "yarn@4.11.0",
"name": "@reforge-com/cli",
"version": "0.0.12",
"version": "0.0.13",
"author": "Jeffrey Chupp @semanticart",
"bugs": {
"url": "https://github.com/ReforgeHQ/cli/issues"
Expand Down
6 changes: 2 additions & 4 deletions src/util/encryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ export async function makeConfidentialValue(
// Check environment-specific config first
if (keyConfig.environments && environmentId) {
/* eslint-disable @typescript-eslint/no-explicit-any */
const envConfig = (keyConfig.environments as any[]).find(
(env: any) => env.id === Number.parseInt(environmentId, 10),
)
const envConfig = (keyConfig.environments as any[]).find((env: any) => String(env.id) === String(environmentId))
/* eslint-enable @typescript-eslint/no-explicit-any */
const ruleValue = envConfig?.rules?.[0]?.value

Expand Down Expand Up @@ -174,7 +172,7 @@ export async function makeConfidentialValue(
// If we have an env var, resolve it
if (envVar && !secretKey) {
secretKey = process.env[envVar]
command.verboseLog(`Using env var ${envVar} to encrypt secret`)
command.log(`Encrypting with key from env var: ${envVar}`)

if (typeof secretKey !== 'string') {
return failure(`Failed to create secret: env var ${envVar} is not present`, {
Expand Down