Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.0.0-6] - 2026-02-18

## [4.0.0-5] - 2026-02-06

## [4.0.0-4] - 2026-02-04
Expand Down Expand Up @@ -2173,7 +2175,8 @@ Frodo CLI 2.x automatically refreshes session and access tokens before they expi
- Fixed problem with adding connection profiles
- Miscellaneous bug fixes

[unreleased]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-5...HEAD
[unreleased]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-6...HEAD
[4.0.0-6]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-5...v4.0.0-6
[4.0.0-5]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-4...v4.0.0-5
[4.0.0-4]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-3...v4.0.0-4
[4.0.0-3]: https://github.com/rockcarver/frodo-cli/compare/v4.0.0-2...v4.0.0-3
Expand Down
136 changes: 107 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rockcarver/frodo-cli",
"version": "4.0.0-5",
"version": "4.0.0-6",
"type": "module",
"description": "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
"keywords": [
Expand Down Expand Up @@ -95,7 +95,7 @@
]
},
"devDependencies": {
"@rockcarver/frodo-lib": "4.0.0-6",
"@rockcarver/frodo-lib": "4.0.0-7",
"@types/colors": "^1.2.1",
"@types/fs-extra": "^11.0.1",
"@types/jest": "^29.2.3",
Expand Down Expand Up @@ -123,8 +123,8 @@
"fs-extra": "^11.1.1",
"jest": "^29.3.1",
"loglevel": "^1.9.1",
"log-update": "^4.0.0",
"map-stream": "^0.0.7",
"nanospinner": "^1.1.0",
"prettier": "^3.0.3",
"properties-reader": "^2.2.0",
"readline-sync": "^1.4.10",
Expand All @@ -133,6 +133,7 @@
"rimraf": "^6.0.1",
"sanitize-filename": "^1.6.3",
"slugify": "^1.6.5",
"tinyrainbow": "^3.0.3",
"tmp": "^0.2.3",
"ts-jest": "^29.1.4",
"tsup": "^8.1.0",
Expand Down
11 changes: 11 additions & 0 deletions src/cli/FrodoCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ const noCacheOption = new Option(
'Disable token cache for this operation.'
);

const useRealmPrefixOnManagedObjects = new Option(
'--use-realm-prefix-on-managed-objects',
'Set to true if you want to use the realm name as a prefix on managed object configuration, e.g. managed/alpha_user,\
managed/alpha_application or managed/bravo_organization. When false, the default behaviour of using managed/user \
etc. is retained. \
This option is ignored when the deployment type is "cloud".'
);

const flushCacheOption = new Option('--flush-cache', 'Flush token cache.');

const retryOption = new Option(
Expand Down Expand Up @@ -157,6 +165,7 @@ const defaultOpts = [
noCacheOption,
flushCacheOption,
retryOption,
useRealmPrefixOnManagedObjects,
];

const stateMap = {
Expand Down Expand Up @@ -226,6 +235,8 @@ const stateMap = {
state.setCurlirize(curlirize),
[noCacheOption.attributeName()]: (cache: boolean) =>
state.setUseTokenCache(cache),
[useRealmPrefixOnManagedObjects.attributeName()]: () =>
state.setUseRealmPrefixOnManagedObjects(true),
[flushCacheOption.attributeName()]: (flush: boolean) => {
if (flush) frodo.cache.flush();
},
Expand Down
Loading