Update installed packages:
xbps-install -Su
Sync index and install new package:
xbps-install -S <package_name>
Search available repositories for packages:
xbps-query -Rs <search_pattern>
Search for locally-installed packages:
xbps-query -s <search_pattern>
Remove package recursively, clean cache and remove orphans:
xbps-remove -ROo <package_name>