clio deps to show a Clio project dependencies:
clio deps~> stdlib: latest~> rethinkdb: 2.3.3
You can install from a url (compressed package), a git repository (@version eg.
@1.2.2 is supported) or from the official Clio repository. For a list of packages that exist in the official repository you can visit the official package index repo.
clio deps add to fetch and install the dependencies.
To install from the master branch of a Github repository:
clio deps add github.com/clio-lang/rethinkdb
To install from a specific branch of a Github repository:
clio deps add github.com/foo/bar@tagname
For example this,
clio deps add email@example.com
installs the .zip file listed at https://github.com/clio-lang/rethinkdb/releases/tag/v2.3.3 (https://github.com/clio-lang/rethinkdb/archive/v2.3.3.zip).
To install from a generic URL:
clio deps add https://a-domain.com/path/to/content.zip
To install from a specific Github tag URL:
clio deps add https://firstname.lastname@example.org
If a package is listed in the Clio packages repository, you can just use its name:
clio deps add package_name
You can choose to install a particular tag using this syntax:
clio deps add package_name@tag_id
For example to install greeter:
clio deps add greeter
If you want to add an npm package, you can pass
--npm flag to this command:
clio deps add --npm express
To fetch all of the dependencies listed in the package config file:
clio deps get