Skip to content

Command Line Interface

Isty001 edited this page Jan 26, 2021 · 5 revisions

Clib's command line interface has multiple utilities to install, and build your dependencies. For further options see -h of the given command.

clib init

You can create a basic clib.json with it.

clib install

Installs a package.

Usages:

  • clib install clibs/http-get.c@0.3.0 - Installs the 0.3.0 version of clibs/http-get.c
  • clib install will look for a clib.json in the current directory, and install the dependencies defined there.

clib update

Almost same as clib install, but the caching is disable to force updating each package.

clib uninstall

Can be used to uninstall executables. Executes the uninstall script defined in clib.json as seen here or defaults to make uninstall.

clib upgrade

Upgrades clib to the latest released tag by default, or to the one provided by --tag.

clib configure

It executes the configure script in a clib.json as seen here.

clib build

This will execute make for a package with -C set to the Makefile specified in a clib.json as seen here.

clib search

Packages added to the registry can be searched by this command.