Repository Management
Important Note
xmake repo is only used for local package repository management within the current project, scoped to the current project.
If you need to manage repositories globally (add, remove, view repositories), you should use the xrepo CLI command, for example:
xrepo add-repo myrepo https://github.com/mygroup/myrepo- Add repository globallyxrepo rm-repo myrepo- Remove repository globallyxrepo list-repo- View all global repositories
For detailed documentation, see: Getting Started with Xrepo Commands
We can use xmake repo to manage repositories for the current project, and we also provide a more convenient, independent xrepo package manager command to install, uninstall, find, and manage packages globally.
$ xmake repo --add myrepo git@github.com:myrepo/xmake-repo.gitWe can also remove a repository that has already been added:
$ xmake repo --remove myrepoOr view all the added repositories:
$ xmake repo --listIf the remote repository has updates, you can manually perform a repository update to get more and the latest packages:
$ xmake repo -u