rockcarver / frodo-cli

A CLI to manage ForgeRock platform deployments supporting Identity Cloud tenants, ForgeOps deployments, and classic deployments.
MIT License
17 stars 14 forks source link

Fix config exports and create config command #335

Closed phalestrivir closed 7 months ago

phalestrivir commented 7 months ago

This PR goes in hand with the "Fix config exports and create config command" PR for the frodo-lib. This PR does three things:

  1. It fixes how IDM config exports are written to files during a full export such that they match how they are written when doing the IDM config export by itself.
  2. It updates IDM config exports to use the stringify() method from JsonUtils as opposed to using JSON.stringify() since all other exports use the stringify() method.
  3. It creates a new command known as "config" for managing the full cloud config instead of delegating it to admin commands. For example, instead of running "frodo admin export-full-cloud-config -a" as you would have done previously, you now would run "frodo config export -a".