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

Hide Menu
Alire commands
  • Update your project's release dependencies and re-resolves unpinned dependencies against the configured community crate.
    % alr update
    It updates your project-level dependencies, not the Alire toolchain or compiler itself (to update your toolchain, you typically use alr index --update-all followed by alr toolchain --select).

  • View or set active (default) versions of GNAt and GPR build.
    % alr toolchain view the defaults and installed versions of gnat and gprbuild
    % alr toolchain --select set gnat and gprbuild to the version you need

  • View or set a project environment variables.
    % alr printenv shows all environment variables
    % alr settings --global --set myenv_variable "/mypath" set it globally across all Alire projects
    % alr settings --set myenv_variable "/mypath" set it locally within your current project context

  • Create projects.
    % alr init --bin myproject executable project
    % alr init --lib mylibrary reusable library

  • Add public dependency "wolfssl" for encryption to myproject.
    % cd ../myproject
    % alr with wolfssl
    appends entry [[depends-on]] to file alire.toml

  • Add public dependency "gnatcoll_sqlite" to myproject.
    % cd ../myproject
    % alr with gnatcoll_sqlite
    appends entry [[depends-on]] to file alire.toml

  • Remove a dependency "gnatcoll_sqlite" from myproject.
    % cd ../myproject
    % alr with --remove gnatcoll_sqlite
    removes entry [[depends-on]] from file alire.toml

  • Use PIN to resolve path to local dependency dbsql in myproject.
    % cd ../myproject
    % alr pin dbsql --use=c:/ada/lib/packages/dbsql
    appends entries [[depends-on]] and [[pins]] to file alire.toml

  • Start GNATSTUDIO from the Alire command line.
    % cd ../myproject
    % alr edit
    This seemes to do a better job of resolving dependecies than starting it from the icon in the start menu