← 返回命令列表

Linux command

haxelib 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install a library

haxelib install [library]

Install a specific version

haxelib install [library] [version]

Install from a zip file

haxelib install [file.zip]

Update a single library

haxelib update [library]

Update all installed libraries

haxelib update

List installed libraries

haxelib list

Search for libraries

haxelib search [query]

Remove a library

haxelib remove [library]

Use a git repository as a library

haxelib git [library] [https://github.com/user/repo.git]

Point a library at a local development directory

haxelib dev [library] [path/to/source]

说明

haxelib is the package manager for the Haxe programming language. It installs, updates, and removes libraries from the central registry at `lib.haxe.org`, and also supports installing libraries from git or mercurial repositories or local zip archives. The `dev` command points a library at a local working copy, which is the standard workflow for developing a library and testing it inside another project. The `newrepo` command creates a per-project library directory so each project can pin its own dependency versions.

FAQ

What is the haxelib command used for?

haxelib is the package manager for the Haxe programming language. It installs, updates, and removes libraries from the central registry at `lib.haxe.org`, and also supports installing libraries from git or mercurial repositories or local zip archives. The `dev` command points a library at a local working copy, which is the standard workflow for developing a library and testing it inside another project. The `newrepo` command creates a per-project library directory so each project can pin its own dependency versions.

How do I run a basic haxelib example?

Run `haxelib install [library]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more haxelib examples?

This page includes 10 examples for haxelib, plus related commands for nearby Linux tasks.