Velsen
Main St, Anywhere, USA 00000
1-111-222-3333

Hide Menu
Alire index managent
An index is a directory containing release manifests (.toml files) that describe
available libraries (called crates), their versions, dependencies, and download origins.
	
The Community Index: By default, Alire connects to the official community-maintained Alire Index GitHub
    Repository, which catalogs hundreds of public Ada crates.
	
Private and Local Indexes: You can create and configure custom or private indexes (using a local directory
    or a remote Git repository) to host proprietary or unpublished internal libraries alongside or in place
	of the community catalog.
	
Commonly used commands:
  • % alr index --list list all currently configured indexes and their priority order

  • % alr index --add=URL_or_path --name=custom_name add a new remote or local index to your configuration

  • % alr index --before=name set the priority order of an added index relative to an existing one

  • % alr index --del=name remove a configured index by its name

  • % alr index --update-all manually synchronizes and updates all configured remote indexes

  • % alr index --check inspect index contents for unknown or invalid configuration values

  • % alr index --reset-community restore the default Alire community index or clears local modifications to it