-
Notifications
You must be signed in to change notification settings - Fork 43
Command line interface
Annif provides a command line interface (CLI) for administrative tasks such as training and evaluating projects and also sharing them via the 🤗 Hugging Face Hub. The documentation for CLI commands is available on ReadTheDocs for:
Tip
You can also run annif --help
or annif <command> --help
in your terminal to see available commands and options.
Annif CLI commands supports tab-key completion in bash, zsh and fish shells for commands and options and project id, vocabulary id and path parameters.
To enable the completion support in your current terminal session use annif completion
command with the option according to your shell to produce the completion script and source it. For example, run
source <(annif completion --bash)
To enable the completion support in all new sessions first add the completion script in your home directory:
annif completion --bash > ~/.annif-complete.bash
Then make the script to be automatically sourced for new terminal sessions by adding the following to your ~/.bashrc
file (or in some alternative startup file):
source ~/.annif-complete.bash
For details and usage for other shells see Click documentation.
- 🧑💻 Introduction & Getting Started
- 🚀 Deployment
- 🖥️ User Interfaces
- ⚙️ Preprocessing & Supporting Features
- 🎯 Optimization Techniques
- 🧩 Backends
- 🛠️ Development & Contribution
- 🆘 Troubleshooting & Support