Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command Reference

This section documents the foton command-line interface.

Command structure

The general command format is:

foton [GLOBAL_OPTIONS] <COMMAND> [COMMAND_OPTIONS] [ARGS...]

Run foton --help to see the complete command-line help.

Global options

--exit-on-lock

Exit immediately if the package database is locked by another operation.

--no-confirm

Skip interactive confirmation prompts.

--warnings-as-errors

Treat warnings as errors, causing the command to fail if any warning is emitted.

Commands

  • install: Install packages from package registries or manifest files
  • update: Update installed packages from package registries
  • uninstall: Uninstall packages recorded in the local package database
  • activate: Activate installed packages
  • deactivate: Deactivate installed packages
  • repair: Clean up packages left in incomplete states
  • list: List packages recorded in the local package database
  • info: Show detailed information about packages recorded in the local package database
  • search: Search packages in package registries
  • manifest: Work with package manifest files
  • font: Work with fonts managed by foton