Managing View

Use the viewctl utility to control and manage View. viewctl is installed in the base directory created during installation.

Options

  • -y: Automatically answer yes to all prompts
  • -cpu: Force CPU mode, ignore GPU detection
  • -h, --help: Show this help message and exit
  • -v, --version: Display version information

Commands

  • start : Start the View services
  • stop : Stop the View services
  • update : Update View to the latest version
  • dashboard: Show the dashboard URI
  • restart : Restart the View services
  • logs : Show View service logs
  • pull : Download the View containers
  • ps : Check the status of the View services
  • stats : Show resource usage statistics of View services
  • cleanup : Run docker system prune
    • -a : Use with cleanup to remove all images

Environment Variables

  • VIEW_AUTO_YES: Set to 'true' to automatically answer yes to all prompts
  • FORCE_CPU : Set to 'true' to force CPU mode and ignore GPU detection
  • OLLAMA_IMAGE : Override the default Ollama image
    • Default: 'ollama/ollama' or 'ghcr.io/amperecomputingai/ollama-ampere:0.0.6-ol9' for Ampere CPUs

Hint

To use the viewctl commands from anywhere, add the View directory to your PATH.
You can do this by adding the following line to your shell configuration file:

export PATH="$PATH:/path/to/View"

To make this permanent add that command to your local shell configuration files.

For bash users, add this line to ~/.bashrc
For zsh users, add this line to ~/.zshrc

For shell completion:

source /path/to/viewctl-completion.sh