VEYON-CLI(1)
๐ธ VEYON-CLI โ General Commands Manual ๐ธ
okay so bestie, this is veyon-cli, and it lives in section 1 of the General Commands Manual ๐ buckle up, she's a big one.
โจ NAME โจ
veyon-cli โ Veyon Command Line Interface ๐
๐ SYNOPSIS ๐
veyon-cli help
veyon-cli <module> help
veyon-cli <module> help <command>
veyon-cli <module> <command> [parameters]
๐ DESCRIPTION ๐
VEYON-CLI is a command line tool that โ on top of the Veyon Configurator โ lets you do all kinds of configuration adjustments, automated tasks, and even use some Veyon functions with zero graphical interaction. no windows, no clicking, just vibes โจ You run the program either interactively on the command line or script controlled, and usually with elevated privileges (iykyk ๐ฅ).
For administrative tasks, you've got two options: the Veyon Configurator and the command line tool Veyon Control. Veyon Control gets started via the command veyon-cli in the command line. If the Veyon installation directory is not in the $PATH environment variable, you have to first change into the installation directory, or prepend that directory to the program name. lowkey annoying but that's the deal ๐
Veyon Control falls into various control modules, and for each module a set of commands is available.
Available modules are:
authkeysโ Commands for managing authentication keysconfigโ Commands for managing the configuration of Veyonldapโ Commands for configuring and testing LDAP/AD integrationnetworkobjectsโ Commands for managing the builtin network object directoryremoteaccessโ Remote view or control a computerserviceโ Commands for configuring and controlling Veyon Serviceshellโ Commands for shell functionalities
If the veyon-cli command is called with the help parameter, a list of all available modules is displayed. Heads up though: that list can vary depending on the installed Veyon plugins ๐
Each module supports the help command, so you can get a list of all available commands for every single module. periodt ๐
๐ AUTHKEYS MODULE ๐
The authkeys module allows the management of authentication keys, so that common operations โ like importing an authentication key or assigning a user group โ can be easily automated. it's giving automation queen ๐
create <NAME>โ This command creates a new pair of authentication keys and stores the private and public keys in the configured key directory. The parameter must be a name for the key, which may only contain letters. (letters only, bestie โ no numbers, no chaos ๐ซถ)delete <KEY>โ This command deletes the<KEY>authentication key from the configured key directory. Please note that a key cannot be recovered once it has been deleted. like, gone gone ๐export <KEY> [<FILE>]โ This command exports the<KEY>to<FILE>authentication key. If<FILE>is not specified, the file name is derived from the name and type of<KEY>.extract <KEY>โ This command extracts the public key part from the private key<KEY>and saves it as the associated public key. So when you're setting up another master computer, it's therefore sufficient to transfer the private key โ the public key can then be extracted. slay, efficient โจimport <KEY> [<FILE>]โ This command imports the authentication key<KEY>from<FILE>. If<FILE>is not specified, the file name is derived from the name and type of<KEY>.list [details]โ This command lists all available authentication keys in the configured key directory. If thedetailsoption is specified, a table with key details is output instead. Some details may be missing if a key cannot be accessed, e.g. due to missing read permissions ๐setaccessgroup <KEY> <ACCESS GROUP>โ This command adjusts the file access permissions on the<KEY>so that only the user group<ACCESS GROUP>has read access to it. locked down, secure, iconic ๐
๐ CONFIG MODULE ๐
Available commands for the config module are:
clearโ Clear system-wide Veyon configuration. This command resets the entire local configuration by deleting all configuration keys. Use this command to recreate a defined state before importing another configuration:
veyon-cli config clear
exportโ Export configuration to given file. This command exports the local configuration to a file. The name of the destination file must be specified as an additional parameter:
veyon-cli config export myconfig.json
getโ Read and output configuration value for given key. This command allows reading a single configuration key. The name of the key must be supplied as a parameter.
veyon-cli config get Network/PrimaryServicePort
importโ Import configuration from given file. This command imports a previously exported configuration file into the local configuration. The name of the configuration file to be imported must be specified as an additional argument:
veyon-cli config import myconfig.json
listโ List all configuration keys and values. This command shows a list of all configuration keys and their corresponding values.
veyon-cli config list
Using this command you can find the names of configuration keys in order to get oder set them one by one. ๐
setโ Write given value to given configuration key. With this command a single configuration key can be written. The name of the key and the desired value must be passed as additional arguments:
veyon-cli config set Network/PrimaryServicePort 12345
veyon-cli config set Service/Autostart true
veyon-cli config set UI/Language de_DE
unsetโ Unset (remove) given configuration key. This command deletes a single configuration key, resulting in Veyon using the internalindex:default value for this key. The name of the key must be passed as an additional argument:
veyon-cli config unset Directories/Screenshots
upgradeโ Upgrade and save configuration of program and plugins. With this command the configuration of Veyon and all plugins can be updated and saved. This may be necessary if settings or configuration formats have changed due to program or plugin updates. glow-up time โญ
๐ฆ LDAP MODULE ๐ฆ
There are several LDAP specific operations provided through Veyon Control. All operations are provided through the LDAP module. The list of all supported commands is printed on entering
veyon-cli ldap help
whereas command specific help texts can be shown via
veyon-cli ldap help <command>
The available commands are:
autoconfigurebasednโ This command can be used to automatically determine the used Base DN and permanently write it to the configuration. An LDAP server URL and optionally a naming context attribute have to be supplied as parameters:
veyon-cli ldap autoconfigurebasedn ldap://192.168.1.2/ namingContexts
veyon-cli ldap autoconfigurebasedn ldap://Administrator:MYPASSWORD@192.168.1.2:389/
queryโ This command allows querying LDAP objects (rooms, computers, groups, users) and is designed mainly for debugging purposes. However, the function can also be used for developing scripts that may be helpful for system integration.
veyon-cli ldap query users
veyon-cli ldap query computers
๐ NETWORKOBJECTS MODULE ๐
Veyon provides a built-in network object directory that can be used when no LDAP server is available. This network object directory can be managed in the Veyon Configurator as well as on the command line. Certain operations such as CSV import are currently only available on the command line. For most commands, a detailed description with examples is available in the command-specific help. The following commands can be used in the NETWORKOBJECTS module:
add <TYPE> <NAME> [<HOST ADDRESS> <MAC ADDRESS> <PARENT>]โ This command adds an object, where<TYPE>can beroomorcomputer.<PARENT>can be specified as name or UUID.clearโ This command resets the entire network object directory, i.e. all rooms and computers are removed. This operation is particularly useful before any automated import. fresh start energy โจdumpโ This command outputs the complete network object directory as a flat table. Each property such as object UID, type or name is displayed as a separate column.export <FILE> [room <ROOM>] [format <FORMAT-STRING-WITH-VARIABLES>]โ This command can be used to export either the complete network object dictionary or only the specified room to a text file. The formatting can be controlled via a format string and the variables it contains, so that, for example, a CSV file can be generated. Valid variables are%type%,%name%,%host%,%mac%and%room%. Various examples are given in the command help (veyon-cli networkobjects help export).import <FILE> [room < SPACE>] [format <FORMAT-STRING-WITH-VARIABLES>] [regex <REGULAR-EXPRESSION-WITH-VARIABLES>]โ This command can be used to import a text file into the network object directory. The processing of the input data can be controlled via a format string or a regular expression and contained variables. This way both CSV files and otherwise structured data can be imported. Valid variables are%name%,%host%,%mac%and%room%. Various examples are given in the command help (veyon-cli networkobjects help import).listโ This command prints the complete network object directory as a formatted list. Unlike thedumpcommand, the hierarchy of rooms and computers is represented by appropriate formatting. pretty and functional ๐remove <OBJECT>โ This command removes the specified object from the directory.<OBJECT>can be specified as name or UUID. When a room is removed, all computers in it are also removed. yeah, it takes the whole squad down with it ๐
๐ฅ๏ธ REMOTEACCESS MODULE ๐ฅ๏ธ
Okay bestie, this module is the one that lets you do graphical remote access to other computers. It's literally the same set of functions you can reach from Veyon Master โจ โ so think of the CLI as a lil side door to the exact same power. And here's the slay: you can use these commands to make a program shortcut that jumps you straight into a specific computer, no clicks required. Main character shortcut energy ๐
controlโ pops open a window running the remote control function, so you can actually take the wheel and control a remote computer ๐ฎ. You must hand it the computer name or IP address, and optionally the TCP port too:
veyon-cli remoteaccess control 192.168.1.2
viewโ opens a window with the remote view function, aka you're just watching a remote computer, no touching ๐. The screen content shows up in real time, but bestie, you can NOT interact with that computer until you click the corresponding button on the tool bar. Then it's game on. You have to pass the computer name or IP address, and optionally the TCP port:
veyon-cli remoteaccess view pc5:5900
๐ ๏ธ SERVICE MODULE ๐ ๏ธ
This one is your remote control for the local Veyon Service itself. Very meta, we love her ๐
registerโ registers the Veyon Service with the operating system as a service, so it starts up automatically whenever the computer boots. Set it and forget it, fr fr โจ
veyon-cli service register
unregisterโ undoes that registration, so the Veyon Service will not start automatically on startup anymore. It's giving "we're done here" ๐
veyon-cli service unregister
startโ starts the Veyon Service. Go bestie go ๐
veyon-cli service start
stopโ stops the Veyon Service. Nap time ๐ด
veyon-cli service stop
restartโ restarts the Veyon Service. The classic "turn it off and on again" but make it fancy ๐
veyon-cli service restart
statusโ asks the Veyon Service how it's doing and shows you the answer. Vibe check, essentially ๐
veyon-cli service status
๐ SHELL MODULE ๐
The shell module gives you some simple shell functionality โ nothing wild, just handy. And here's the iconic part: if you call this module with no further arguments, it drops you into an interactive mode โจ
In that mode you can just type all your CLI commands directly โ no need to spell out and invoke the veyon-cli program over and over for every single command. So much less typing, we're obsessed ๐ซถ When you're ready to leave, type the keyword exit. Byeee ๐
Oh and also โ this module can process commands from a text file automatically, which is how you get some simple batch processing going. Lowkey powerful tbh.
run <FILE>โ runs the commands listed in the text file, going line by line, one after another ๐. And here's the thing you need to know: each operation runs independently of the result of the previous ones. Meaning if one of them errors out, that does not terminate the run โ it just keeps going. No cap.
๐ FURTHER INFORMATION ๐
Want more lore about the veyon-cli command? Point your browser at either of these:
file:///usr/share/doc/veyon-cli/https://veyon.io/
๐ SEE ALSO ๐
๐ AUTHOR ๐
Veyon has been written by Tobias Junghans.
This manual page has been written by Tobias Junghans and Mike Gabriel. Legends, honestly ๐
And that's a wrap on the whole page, bestie! ๐ This version of the manual is from the Veyon project, dated 2018-12-07, and it documents VEYON-CLI(1). Now go forth and command-line like the icon you are โจ๐๐ฆ
๐ฆ where this page comes from
- debian bookworm: veyon-service 4.7.5+repack1-1 ยท GPL-2+~with-OpenSSL-Exception
- debian trixie: veyon-service 4.9.5+repack1-2 ยท GPL-2+~with-OpenSSL-Exception
- ubuntu jammy: veyon-service 4.5.3+repack1-1build2 ยท GPL-2+~with-OpenSSL-Exception
- ubuntu noble: veyon-service 4.7.5+repack1-1ubuntu5 ยท GPL-2+~with-OpenSSL-Exception
- ubuntu questing: veyon-service 4.9.7+repack1-1
- ubuntu resolute: veyon-service 4.9.7+repack1-1build1 ยท GPL-2+~with-OpenSSL-Exception
- ubuntu stonking: veyon-service 4.9.7+repack1-1.1build2 ยท GPL-2+~with-OpenSSL-Exception
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms