# Module OpamClient.API

    module API: sig .. end

OPAM API.

    val init : OpamTypes.repository ->
           OpamTypes.compiler ->
           jobs:int ->
           OpamTypes.shell -> OpamTypes.filename -> [ `ask | `no | `yes ] -> unit

Initialize the client a consistent state.

    val list : print_short:bool ->
           filter:[ `all | `installable | `installed | `roots ] ->
           order:[ `depends | `normal ] ->
           exact_name:bool ->
           case_sensitive:bool ->
           ?depends:OpamTypes.atom list ->
           ?reverse_depends:bool ->
           ?recursive_depends:bool ->
           ?depopts:bool -> ?depexts:string list -> string list -> unit

Display all available packages that matches any of the regexps.

    val info : fields:string list ->
           raw_opam:bool -> where:bool -> OpamTypes.atom list -> unit

Display a general summary of a collection of packages.

    val install : OpamTypes.atom list -> bool option -> bool -> unit

Install the given list of packages. Second argument, if not None, specifies that given packages should be added or removed from the roots. Third argument installs all dependencies but not the packages themselves

    val reinstall : OpamTypes.atom list -> unit

Reinstall the given set of packages.

    val update : repos_only:bool -> string list -> unit

Refresh the available packages.

    val upgrade : OpamTypes.atom list -> unit

Find a consistent state where most of the installed packages are upgraded to their latest version, within the given constraints. An empty list means upgrade all installed packages.

    val fixup : unit -> unit

Recovers from an inconsistent universe

    val remove : autoremove:bool -> force:bool -> OpamTypes.atom list -> unit

Remove the given list of packages.

    module CONFIG: sig .. end

Config API.

    module REPOSITORY: sig .. end

Repository API

    module SWITCH: sig .. end

Switch API

    module PIN: sig .. end

Pin API