Forseti 2.0 provides a convenient command-line interface (CLI) client that you can use to operate the various functionalities in Forseti: build inventory, create models, use explain, perform scanning, and send notifications.
CLI users can be non-admin users, and should not have access to the highly elevated privileges that Forseti is permissioned with. To prevent CLI users from gaining Forseti’s privilege, the CLI is deployed to its own VM, and communicates with the Server via gRPC.
Access to the CLI VM is managed by OS Login roles.
When a CLI user has these roles, they gain SSH access to the CLI VM. Forseti Config enables you to set the CLI configuration.
For more information, see the client-server architecture of Forseti.
The following command outputs the current local configuration:
forseti config show
The following command resets the local configuration back to its original state:
forseti config reset
The following command will update the output format of the CLI to
forseti config format <FORMAT>
<FORMAT>defines the CLI output format as
The following command sets the IP address the CLI uses to communicate to the server:
forseti config endpoint <IP_ADDRESS>:50051