Yubikey/OTP Validation by command line


I want to configure the privacyidea only by command line (without web interface), and I can create users and enroll the yubikey, however, how can I test the login with the yubikey? It is possible?

“login” is a bit vague here.
privacyIDEA can validate a token. This can be done by sending an HTTP request to privacyIDEA.
You could e.g. use the nice command line tool httpie to call the /validate/check endpoint.

If this is not, what you are looking for, please be a bit more precise about what you want to do.