Clones all the repositories specified by a Leeroy config.
Install the dotnet global tool from NuGet:
dotnet tool install --global CloneLeeroy
If you were using the clone-leeroy
npm package, uninstall it with:
npm uninstall -g clone-leeroy
The npm clone-leeroy
would always create a SolutionInfo.cs
and SolutionInfo.h
file whenever it ran.
Since most projects are moving away from that and instead using Directory.Build.props
, that legacy
behavior is now opt-in. To create those files (e.g., for a first-time clone), run
clone-leeroy --solution-info-csharp --solution-info-header [ProjectName]
In the parent folder of the cloned repositories, run:
clone-leeroy <project name>
To save the project name as the default for this folder, run:
clone-leeroy --save <project name>
From then on, you just need to run clone-leeroy
to clone that project.
CloneLeeroy clones the configuration repo to %LOCALAPPDATA%\CloneLeeroy\Configuration
and reads the configuration
files from there. You can edit files in that folder to test a configuration change locally before pushing it.
CloneLeeroy supports tab completion on the command line. To enable it, follow the steps here to install dotnet-suggest
and add a script to your shell profile.
To test suggestions while developing the application, create %USERPROFILE%\.dotnet-suggest-registration.txt
containing the line C:\Full\Path\To\bin\Debug\net5.0\CloneLeeroy.exe
. Then restart your shell.
Now running .\CloneLeeroy.exe <TAB>
will provide suggestions.