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 servicesstop
: Stop the View servicesupdate
: Update View to the latest versiondashboard
: Show the dashboard URIrestart
: Restart the View serviceslogs
: Show View service logspull
: Download the View containersps
: Check the status of the View servicesstats
: Show resource usage statistics of View servicescleanup
: 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 promptsFORCE_CPU
: Set to 'true' to force CPU mode and ignore GPU detectionOLLAMA_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
Updated 25 days ago