CLI User Operations

User specific operations include the custom settings for each user like creating a signature, folders, labels, and setting up their account preferences. These commands don't require any admin access and can be executed by any user in the organization.

Account details

The user mail account details help you to get and update information about the mail accounts and related configurations and settings of the user in the organization. The following are the details included in this section:

User Account

The User Account section help you to enable/ disable the external access modes for the account, like POP/ IMAP and Active Sync for the user. Further you can enable/ disable incoming/ outgoing for the account using these commands.

User Account

Function

Command

Purpose

Parameters reference link

Get all accounts of a useraccount listTo get the account details of the currently authenticated user.Account details
Get specific account detailsaccount inspect --accountid <acc_Id>To retrieve details of a specific account.Specific account details
Update mail account sequenceaccount update-sequenceTo update the sequence/ order of the mail accounts for processing new emails.Update mail account sequence
Update reply to addressaccount update-replytoTo update the Reply-To address for the particular account. Update reply to address
Resend verification for reply to addressaccount resend-replyto-verificationTo resend the verification for confirmation of the Reply-To address for the particular account. Resend verification for reply to address

Send Mail details

The Send Mail Details section helps you to get and update information about the send mail addresses (From Addresses) of the specific user accounts.

Send Mail details

Function

Command

Purpose

Parameters reference link

Add send mail detailsaccount add-sendmaildetailsTo add send mail details such as the display name and the email address of the user. Add send mail details
Update display nameaccount update-display-nameTo update the display name for a specific from email address for the user. Update display name
Update email addressaccount update-emailTo update the email address for the user.Update email address
Update display name and email addressaccount update-displaynameemailTo update the display name and email address for the user.Update display name and email address

User email forward details

The User Email Forward section helps you to get, add, or update the Email Forwarding details of the account.

User email forward details

Function

Command

Purpose

Parameters reference link

Add email forwardinguserManagement addMailForwardTo add automatic email forwarding for the account to a specific email address. Add email forwarding
Verify email forwardinguserManagement verifyMailForwardTo verify the email address to which the email forwarding is added.Verify email forwarding
Resend verification for email forwardinguserManagement resendMailForwardVerficationMailTo resend the verification link to the email address to enable Email Forwarding.Resend verification
Enable email forwardinguserManagement enableMailForwardTo enable email forwarding for a verified email address.Enable email forwarding
Disable email forwardinguserManagement disableMailForwardTo disable the existing Email Forwarding added to an email addressDisable email forwarding
Delete Zoho Mail copy in email forwardinguserManagement deleteZohoMailCopyTo delete the copyof the email in Zoho Mail inbox, after the email has been forwarded.Delete Zoho Mail copy
Delete email forwardinguserManagement deleteMailForwardTo remove the existing email forwarding for the account and delete the email address reference. Delete email forwarding

Vacation reply details

The Vacation Reply section helps you add, retrieve, or remove the Vacation Reply details of the account.

Vacation reply details

Function

Command

Purpose

Parameters reference link

Add vacation replyvacation addTo add a vacation reply for the account.Add vacation reply
Update vacation replyvacation updateTo update the vacation reply for the account.Update vacation reply
Delete vacation replyvacation deleteTo remove the vacation reply added to the account.Remove vacation reply

Folder details

The Folder details section helps you to get and update information about the Folder details of a particular user account.

Folder details

Function

Command

Purpose

Parameters reference link

Create a new folderfolders createCreate a new folder with the specified name and details, in the given path.  Create new folder
Get all foldersfolders listTo get the details of all the folders in a particular account along with the Folder Id of each folder.Retrieve folders list
Get a specific folderfolders inspectTo get the details of a particular folder, based on the Folder Id provided. Retrieve specific folder
Rename folderfolders renameTo rename a particular folder with the specified name. Rename folder
Move folderfolders moveTo move a folder to a different position in the folder tree.Move folder
Enable IMAP view for a folderfolders enable-imap-viewTo enable IMAP view for the folder, to make it accessible from the IMAP Clients.Enable IMAP view
Disable IMAP view for a folderfolders disable-imap-viewTo disable IMAP View for the the folder, to make it not accessible from the IMAP Clients.Disable IMAP view
Mark all emails in a folder as READfolders readTo mark all emails in the folder as Read.Mark emails as READ
Empty folderfolders emptyTo delete all emails in the folder.Empty folder
Delete folderfolders deleteTo delete the folder along with the emails and sub-folders.Delete folder

Label details

The Label details section helps you to get and update information about the label details of a particular user account.

Label details

Function

Command

Purpose

Parameters reference link

Create a new labellabels createTo create a new Label with the specified name and color. Create a new label
Get all label detailslabels listTo get the details of the labels in the account, along with the Label Id details.List all labels
Get a specific label detailslabels inspectTo get the details of a particular label, based on the Label Id. List specific label
Update a labellabels updateTo rename a particular label with the specified name and/or change the color of the label. Update a label
Delete a labellabels deleteTo delete the label and remove the tagging of that label from the emails. Delete a label

Email lists and details

The email lists and details section helps you retrieve messages from the user account and access them.

Email lists and details

Function

Command

Purpose

Parameters reference link

Send an emailmessage sendTo send an email specifying the From, To, Cc, Bcc,Subject, Encoding, and Email format. Send mail
Send an email with attachmentsmessage send --attachmentsTo send an email with attachments.Send mail with attachments
Upload attachmentsmessage upload-attachmentTo upload a file before attaching it with the email.Upload attachments
Save draft/templatemessage send --mode <draft/template>To save content as a draft or as a template.Save draft/template
Reply to an emailmessage replyTo send a reply to an email receivedReply to an email
Get all emails in a folder message listTo get the details of all or a specific set of emails in a folder based on view options.Retrieve emails in a folder
Get emails based on search conditionsmessage searchTo get the list of emails, from the account based on custom search conditions.Retrieve emails based on search
Get email headersmessage retrieve-headerTo get the email headers of a particular email message, based on the message id.Retrieve email headers
Get email contentmessage retrieve-contentTo get the content of a particular email message, based on the message id. Retrieve email content
Get original messagemessage retrieve-emlTo get the MIME representation of an email message.Retrieve original message.
Get meta data of a particular emailmessage inspectTo get the meta data details of a particular email message in the account, based on the message id.Retrieve meta data of an email
Get attachment infomessage list-attachmentTo get the attachment information of a particular email message in the account, based on the message id. Retrieve attachment info
Get email attachment contentmessage retrieve-attachmentTo get the content stream of attachments in an email.Retrieve email attachment content
Mark emails as readmessage readTo mark single/ multiple emails as read, based on the list of message ids passed as parameters.Mark emails as read
Mark emails as unreadmessage unreadTo mark single/ multiple emails as unread, based on the list of message ids passed as parametersMark emails as unread
Move emailmessage moveTo move a particular email or a group of emails from the existing folder to a different folder. Move email
Flag emailsmessage flagTo set one among the four available flags to a particular email or a group of emails.Flag emails
Apply labels to emailsmessage apply-labelTo apply a tag to a particular email or a group of emails. Apply labels
Remove labels from an emailmessage remove-labelTo remove a tag from a particular email or a group of emails. Remove labels
Remove all labels from emailsmessage remove-all-labelTo remove all tags from a particular email or a group of emails.Remove all labels
Archive an emailmessage archiveTo archive an email or multiple emails based on the message ids passed as parameters.Archive an email
Unarchive an emailmessage unarchiveTo unarchive an email or multiple emails based on the message ids passed as parameters.Unarchive an email
Mark email as spammessage spamTo mark a particular email or a group of emails as spam.Mark email as spam
Mark email as not spammessage unspamTo mark a particular email or a group of emails as not spam.Mark email as not spam
Delete emailmessage deleteTo delete a particular email or a group of emails.Delete email

Signature details

The Signature details section helps you to access and manage signatures in the user account.

Signature details

Function

Command

Purpose

Parameters reference link

Add user signaturesignature addTo add a specific signature.Add signature
Update user signaturesignature updateTo update a specific signature.Update signature
Delete user signaturesignature deleteTo delete all the available signatures or delete
a specific signature.
Delete signature

Threads details

The Threads details section helps you access and manage threads in the user account.

Threads details

Function

Command

Purpose

Parameters reference link

Flag threadthreads apply-flagTo apply a flag to single/multiple email threads.Flag thread
Move threadthreads moveTo move single/multiple threads.Move thread
Apply label to thread threads apply-labelTo apply label(s) to single/multiple email threads.Apply label
Remove label from thread threads remove-labelTo remove label(s) from single/multiple email threads. Remove label
Remove all labels from the thread threads remove-all-labelsTo remove all labels from single/multiple email threads.Remove all labels
Mark thread as READthreads readTo mark single/multiple email threads as read.Mark thread as READ
Mark thread as UNREADthreads unreadTo mark single/multiple email threads as unread.Mark thread as UNREAD
Mark thread as spamthreads spamTo mark single/multiple threads as spam.Mark thread as spam
Mark thread as not spamthreads not-spamTo mark single/multiple threads as not spam.Mark thread as not spam