::: warning 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 repositoriesFor 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 [email protected]:myrepo/xmake-repo.git
We can also remove a repository that has already been added:
$ xmake repo --remove myrepo
Or view all the added repositories:
$ xmake repo --list
If the remote repository has updates, you can manually perform a repository update to get more and the latest packages:
$ xmake repo -u