repo-manager command reference
Use this page to choose the repo-manager commands needed for Compliance Engine v2 policy development. The shared CLI reference provides command syntax, arguments, flags, and defaults.
Version and Configuration Profiles
Before working with a policy repository, complete Set up a development environment. Use the shared guides for:
- Installation and runtime requirements.
- Configuration files, including profile file locations and lookup precedence.
- Auto-update behavior and the changelog.
When switching between repositories or organizations, confirm that the selected configuration and authorization profile belong to the environment whose resources you intend to evaluate.
Authentication Commands
Use Authentication Commands to configure access and select the profile used for API-backed policy development. That reference covers profile creation, activation, listing, session refresh, and removal.
Complete authentication before capturing resource data or investigating a live object. For BigQuery access, follow Prepare BigQuery permissions.
Policy Test, Evaluate, and Generate Commands
Choose a command according to the question you need to answer:
| Development Task | Command Reference | Next Step |
|---|---|---|
| Does the logic match the expected fixture outcomes? | policies test | Investigate mismatches and runtime errors. |
| How does the policy handle a specific live resource? | policies evaluate-object | Inspect the resource inputs and resulting script. |
| What SQL does the logic produce? | policies generate | Review the generated script before executing it. |
| How can I obtain resource data for regression tests? | policies capture-test-data | Review the captured fixture and add expected outcomes. |
Follow Test and debug policies for the testing workflow, SQL investigation, and missing-data cases. A successful development test does not confirm that the production repository has deployed the change; continue with Deploy and maintain custom policies.
Schema Commands
Use Schema Commands when updating the repository schemas used to validate policy files. Then check descriptors, logic, and extract definitions against those schemas; see Policy files and YAML schema.
Type Commands
Use Type Commands when the repository needs CMDB object definitions for the resource types used by your logic. Consult that reference for import presets, explicit type selection, and removal behavior.
Use the imported definitions to check field and relationship API names when choosing an inputType or writing extracts. See Repository Structure for the role of the types directory.
Arguments, Flags, and Output
For repository selection and configuration options, use Global Options. For accepted policy and logic identifiers, report destinations, and execution settings, open the relevant policy subcommand above.
Check the installed command's help when confirming available options. Keep generated SQL, captured inputs, and test reports associated with the logic revision being investigated so you can compare behavior after changes.