install
Install packages from package registries or manifest files.
Usage
Install from package registries:
foton install [OPTIONS] [<PACKAGE>...]
Install from local manifest files:
foton install [OPTIONS] --manifest <MANIFEST>...
Arguments
<PACKAGE>
Package names, optionally with an exact version as <package-name>@<version>.
Required unless --manifest is specified.
This cannot be used together with --manifest.
Options
--manifest <MANIFEST>
Install packages defined in the given manifest files.
This option can be specified multiple times.
It cannot be used together with --registry, --pre-release or <PACKAGE>.
--registry <REGISTRY_ID>
Package registry IDs to resolve packages from.
Use a comma-separated list such as --registry local,foton.
This option is only available when installing by <PACKAGE>.
--no-confirm
Skip interactive confirmation prompts.
--warnings-as-errors
Treat warnings as errors, causing the command to fail if any warning is emitted.
--pre-release
Allow installing pre-release versions when resolving packages from registries.
Without this option, versions with a suffix such as 1.2.3-rc-1 are ignored
unless an exact version is specified.
This cannot be used together with --manifest.
Examples
foton install <package-name>
foton install <package-name>@<version>
foton install --registry <registry-id-1>,<registry-id-2> <package-name>
foton install --manifest <manifest-path>
Notes
- If the selected packages are already installed and nothing needs to change,
fotonreports that and exits without modifying the system. - When installing by package name, if a matching package is already installed
locally,
fotonkeeps that installed package as the selected result. Usefoton updatewhen you want to look for newer versions in package registries. - If an install does not complete cleanly, use
repairto clean up any packages it leaves behind. - If multiple selected package registries provide a matching package,
installdoes not choose one automatically; it fails and asks you to disambiguate. - Installing from a manifest file is useful for local testing before adding it to a package registry.