HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

alr — Ada package manager. Manage Ada toolchains, dependencies, tools, and libraries. More information: <h

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandadaalrclimanagepackagemanager

Problem

How to use the alr command: Ada package manager. Manage Ada toolchains, dependencies, tools, and libraries. More information: <https://alire.ada.dev/docs/#first-steps>.

Solution

alr — Ada package manager. Manage Ada toolchains, dependencies, tools, and libraries. More information: <https://alire.ada.dev/docs/#first-steps>.

Create a binary or library project:
alr init {{--bin|--lib}} {{project_name}}


Add a dependency to the project:
alr add {{crate}}


Run the compiled binary (no need to do build before):
alr run


Compile the project:
alr build {{--release|--development|--validation}}

Code Snippets

Create a binary or library project

alr init {{--bin|--lib}} {{project_name}}

Add a dependency to the project

alr add {{crate}}

Run the compiled binary (no need to do `build` before)

alr run

Compile the project

alr build {{--release|--development|--validation}}

Context

tldr-pages: common/alr

Revisions (0)

No revisions yet.