Linux command
alr 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Search
alr search [package_name]
Show
alr show [package_name]
Get
alr get [package_name]
Initialize
alr init --bin [project_name]
Build
alr build
Run
alr run
说明
alr is the Alire package manager for the Ada programming language. It provides crate (package) management similar to Cargo for Rust or npm for Node.js, handling dependencies, building, and publishing Ada projects. Alire connects to the community-maintained crate index, enabling easy discovery and integration of Ada libraries and tools.
参数
- search _term_
- Search for crates matching term
- show _crate_
- Display information about a crate
- get _crate_
- Download and set up a crate
- init
- Initialize a new project
- build
- Build the current project
- run
- Build and run the current project
- with _crate_
- Add a dependency to current project
- publish
- Publish crate to the index
- update
- Update dependencies to latest versions
- --help
- Show help for command
FAQ
What is the alr command used for?
alr is the Alire package manager for the Ada programming language. It provides crate (package) management similar to Cargo for Rust or npm for Node.js, handling dependencies, building, and publishing Ada projects. Alire connects to the community-maintained crate index, enabling easy discovery and integration of Ada libraries and tools.
How do I run a basic alr example?
Run `alr search [package_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does search _term_ do in alr?
Search for crates matching term