Skip to main content

repo-manager CLI Reference

Use this reference to find the main repo-manager commands and options.

For the latest command output in your installed version, run:

repo-manager --help

Syntax

repo-manager [OPTIONS] [COMMAND]

Global Options

OptionDescription
--auto-updateTrigger an update check immediately.
--no-auto-updateSuppress the update check for the current command.
-b, --backend=BACKENDSet the API backend. Valid values: PRODUCTION, LOCAL. Default: PRODUCTION.
-c, --config=PATHSet the configuration folder path. Default: .ca.
-r, --repository=PATHSet the repository root path.
-h, --helpShow help and exit.
-V, --versionPrint version information and exit.

Command Summary

CommandPurpose
authManage authorization profiles.
envShow information about the current environment.
docsManage auto-generated documentation from the repository.
policiesWork with Compliance Engine policies.
schemaManage schema files in the repository.
aiGenerate context information for LLM workflows.
uiRun the repo-manager UI.
soqlConvert SOQL queries to BigQuery SQL.
sectionsExport framework sections.
typesImport or remove Salesforce SObject type data.
mcpStart MCP servers.
gen-manpageGenerate AsciiDoc man pages.
cleanupRemove generated and imported repository files.

Authentication Commands

Use auth commands to manage Cloudaware authorization profiles.

repo-manager auth [OPTIONS] [COMMAND]

auth add

Add a new authorization profile for connecting to Salesforce.

repo-manager auth add [OPTIONS]
OptionDescription
-n, --name=NAMEName of the profile to add.
-t, --token=TOKENOAuth token obtained from Cloudaware Admin.
-a, --activeSet the profile as active after creation.
--no-activeAdd the profile without making it active.
-s, --sandboxConfigure the profile for a Salesforce sandbox org.
--no-sandboxConfigure the profile for a production Salesforce org.

auth activate

Set the active profile for subsequent commands.

repo-manager auth activate --name NAME

auth list

List configured authorization profiles.

repo-manager auth list

auth refresh-session

Refresh the current session for the active authorization profile.

repo-manager auth refresh-session

auth remove

Remove an authorization profile.

repo-manager auth remove --name NAME

Environment

Show information about the current environment.

repo-manager env

Documentation Commands

Use docs commands to generate or clean up repository documentation.

repo-manager docs [OPTIONS] [COMMAND]

docs generate

Generate documentation for the repository.

repo-manager docs generate [OPTIONS]
OptionDescription
-f, --format=<arg1>Output format. Valid values: MD, MDX.
-r, --renderer=<arg2>Documentation renderer. Valid values: NONE, CLOUDAWARE, DOCUSAURUS.
-t, --threads=<arg3>Number of worker threads. Default: CPU_COUNT/2.
-w, --watchWatch the repository and update generated documentation when files change.

docs cleanup

Remove generated documentation files from the repository.

repo-manager docs cleanup

Policy Commands

Use policies commands to generate scripts, run tests, evaluate objects, capture test data, and import policy statistics.

repo-manager policies [OPTIONS] [COMMAND]

policies generate

Generate a BigQuery script for a policy.

repo-manager policies generate <kind> <id>
ArgumentDescription
kindScript kind. Valid values: FULL, DEBUG, CAPTURE_TEST_DATA, TESTS.
idPolicy ID or Logic ID.

policies test

Run tests for a policy, logic item, folder, all policies, or unit tests.

repo-manager policies test [OPTIONS] <id>
Option or ArgumentDescription
--format=<arg1>Output format. Valid values: NONE, JUNIT.
--output-dir=<arg2>Output directory for reports. Default for JUNIT: REPO/target/surefire-reports.
-t, --threads=<arg3>Number of worker threads. Default: 1; maximum: 5.
idPolicy ID/path, Logic ID/path, folder ID/path, all, or unit-tests.

policies capture-test-data

Capture test-data.json for a policy from data available in Cloudaware.

repo-manager policies capture-test-data [OPTIONS] <id>
Option or ArgumentDescription
-o, --output-file=PATHOutput file path. Default: POLICY_DIR/test-data.json.
idPolicy ID/path or Logic ID/path.

policies evaluate-object

Evaluate one Cloudaware object against one policy.

repo-manager policies evaluate-object [OPTIONS] <id> <caUuid>
Option or ArgumentDescription
-e, --executeExecute the received script immediately. Default: false.
-c, --command=<arg3>Command used for immediate execution. Default: node.
-w, --wrapper=<arg4>Wrapper for the received script. Use __CONTENT__ to substitute script content.
idPolicy ID/path or Logic ID/path.
caUuidCloudaware UUID of the object to test.

policies import-stats

Import statistics for the latest policy runs into a file.

repo-manager policies import-stats

Schema Commands

Use schema commands to manage schema files in the repository.

repo-manager schema [OPTIONS] [COMMAND]

schema update

Update repository schema files.

repo-manager schema update

AI Commands

Use ai commands to generate context information for LLM-based workflows.

repo-manager ai [OPTIONS] [COMMAND]

ai context generate

Generate context information for LLMs.

repo-manager ai context generate [OPTIONS]
OptionDescription
-o, --output-directory=PATHOutput directory. Default: tmp/llm-context.

SOQL Commands

Use soql commands to convert SOQL queries into BigQuery SQL.

repo-manager soql [OPTIONS] [COMMAND]

soql convert

Convert a SOQL query.

repo-manager soql convert [OPTIONS] queryText
Option or ArgumentDescription
-i, --input-file=<arg0>Input file containing the SOQL query.
-o, --output-file=<arg1>Output file for the converted query.
queryTextSOQL query text to convert.

Section Commands

Use sections commands to export framework sections.

repo-manager sections [OPTIONS] [COMMAND]

sections export

Export framework sections to a file.

repo-manager sections export [OPTIONS]
OptionDescription
-f, --format=FORMATExport format. Supported formats include DEFAULT_CSV, EXCEL, JSONL, BIGQUERY, RFC4180, TDF, and database-specific CSV or text formats.
-o, --output-directory=PATHOutput directory. Default: tmp.

Type Commands

Use types commands to import or remove Salesforce SObject type data.

repo-manager types [OPTIONS] [COMMAND]

types import

Import Salesforce SObject type data.

repo-manager types import [OPTIONS]
OptionDescription
-p, --preset=PRESETImport one or more presets. Valid values: REFERENCED, CLOUDAWARE, STANDARD, EXTRA.
-t, --type=TYPESalesforce type API name to import. Can be specified multiple times.
--exclude-custom-fieldsExclude custom fields from imported types.
--exclude-custom-typesExclude custom types from imported types.

types delete

Remove imported Salesforce SObject type data.

repo-manager types delete

MCP Commands

Use mcp commands to start MCP servers for AI tools.

repo-manager mcp [OPTIONS] [COMMAND]

mcp cloudaware

Start the Cloudaware MCP server with stdio transport.

repo-manager mcp cloudaware [OPTIONS]
OptionDescription
-p, --port=<arg0>Start an HTTP server on the specified port. If this option is omitted, the server starts with stdio transport.

UI

Run the repo-manager UI.

repo-manager ui

Man Page Generation

Generate AsciiDoc man pages for repo-manager commands.

repo-manager gen-manpage [OPTIONS] [@<filename>...]
Option or ArgumentDescription
-d, --outdir=<outdir>Directory where generated AsciiDoc files are written. If omitted, files are written to the current directory.
-t, --template-dir=<template-dir>Directory for customizable man page template files.
-f, --forceOverwrite existing man page templates.
--no-forceDo not overwrite existing templates. This is the default behavior.
-v, --verboseIncrease verbosity. Can be specified multiple times.
@<filename>...One or more argument files containing options.

To convert generated AsciiDoc files to man page format, use asciidoctor:

asciidoctor --backend=manpage --source-dir=SOURCE_DIR --destination-dir=DESTINATION *.adoc

Cleanup

Remove generated and imported files and directories from the repository.

repo-manager cleanup