LinuxCommandLibrary

haxelib

Manage Haxe libraries

TLDR

Search for a Haxe library

$ haxelib search [keyword]
copy

Install a Haxe library
$ haxelib install [libname]
copy

Install a specific version of a Haxe library
$ haxelib install [libname] [version]
copy

Upgrade all installed Haxe libraries
$ haxelib upgrade
copy

Install the development version of a library from a Git repository
$ haxelib git [libname] [git_url]
copy

Uninstall a Haxe library
$ haxelib remove [libname]
copy

Print a tree of locally installed Haxe libraries
$ haxelib list
copy

SYNOPSIS

haxelib [command] [options]

PARAMETERS

help
    Shows help message.

version
    Prints version information.

setup
    Configures haxelib for first use.

install <library> [<version>]
    Installs a library. Optionally specify a version.

remove <library>
    Removes a library.

path <library>
    Prints the path to a library. If called without a library, it prints all library paths.

list
    Lists all installed libraries.

userpath
    Print the user path for library installation.

dev <library> <path>
    Sets a library to use a development path.

release <library>
    Releases a library from development mode.

create <library>
    Creates a new library.

submit <library>
    Submits a library to the repository.

DESCRIPTION

haxelib is the command-line interface for managing Haxe libraries. It allows you to install, update, remove, and list libraries for your Haxe projects.
It simplifies dependency management by resolving dependencies and downloading necessary files from a central repository or a local directory.
It supports versioning allowing you to specify which versions of libraries your project requires.
Haxelib can also create new libraries, upload them to the repository, and handle various aspects of Haxe project configuration. Haxelib is fundamental tool for Haxe developers. A library contains code that can be used by a program. With haxelib, any project can be easily compiled to target many different platforms.

REPOSITORY

The main haxelib repository is located at haxelib.org. It contains libraries officially submitted by their authors. These libraries are considered stable and often well-maintained.

HISTORY

haxelib was created as a core part of the Haxe ecosystem to provide a centralized way to manage and share Haxe libraries. The necessity for a standardized package manager became evident as the Haxe community grew and the number of reusable libraries increased. Haxelib has evolved alongside the Haxe language, with new features and improvements added to support the expanding capabilities of Haxe and its target platforms. Over the years it has simplified the creation, usage and sharing of Haxe libraries.

Copied to clipboard