Installation
Install repopo with your package manager.
As a development tool
Section titled “As a development tool”To run repopo in a repository, from scripts, Git hooks, or CI, install it as a dev dependency:
npm i -D repopopnpm add -D repopoyarn add -D repopoThen create a configuration file and run repopo check.
As a library
Section titled “As a library”To run policies from your own program with the programmatic API, or to publish policies for other repositories, install it as a regular dependency:
npm i repopopnpm add repopoyarn add repopoGlobally
Section titled “Globally”You can also install repopo globally to use the repopo command in any repository:
npm install --global repopo# orpnpm add --global repopoEach repository still needs its own repopo.config.ts, and that file must be able to import repopo.
The native engine
Section titled “The native engine”The repopo check-native command uses a Rust binary, repopo-core. When you install repopo, a postinstall script downloads a prebuilt binary for Linux (x64, arm64), macOS (x64, arm64), or Windows (x64). If the download fails, installation still succeeds. Only check-native needs the binary; repopo check doesn’t.
- Set
REPOPO_SKIP_POSTINSTALL=1to skip the download. - Point to your own build with
--binary-pathor theREPOPO_CORE_PATHenvironment variable.