Share cups printers with google cloud print
cloudprint [OPTION]...
The cloudprint script makes locally defined CUPS printers available to a Google account, enabling local or remote printing from such services as the Chrome browser, Chrome OS devices, or Android devices.
This is a lower-level command. Cloud Print services would normally be managed through the cloudprint service.
The cloudprint utility is linked as cloudprintd for the cloudprint-service package.
-a <account_file>
path to Google account ident data (default ~/.cloudprintauth). The format of the file is not public.
-c
establish credentials to the service, then exit.
-d
run in daemon mode.
-f
fast poll, if notifications aren't working.
-i regexp
include local printers matching regular expression from the start of the printer name.
-l
log out of the Google account. This deletes the account identification file, requiring reauthentication the next time cloudprint is run.
-p <pid_file>
path to PID file in daemon mode (default cloudprint.pid).
-u
store username/password in addition to login token to avoid authentication expiration.
-v
verbose logging.
-x regexp
exclude local printers matching regular expression from the start of the printer name.
-h
display help
cloudprint will prompt for a username and password if the information has not been provided.
If two-factor authentication is enabled for the account, then an application-specific password must be used.
~/.cloudprintauth
Default location for storing account authentication credentials
~/.cloudprintauth.sasl
Default location for storing internal authentication tokens