{"id":25727,"date":"2018-10-15T19:08:12","date_gmt":"2018-10-15T15:08:12","guid":{"rendered":"https:\/\/www.msp360.com\/resources\/?page_id=25727"},"modified":"2020-09-08T14:41:16","modified_gmt":"2020-09-08T10:41:16","slug":"msp360-drive","status":"publish","type":"page","link":"https:\/\/www.msp360.com\/resources\/documentation\/cli-api\/msp360-drive\/","title":{"rendered":"\u0421loudBerry Drive Command Line Interface"},"content":{"rendered":"<p>\u0421loudBerry presents enhanced \u0421loudBerry <a href=\"https:\/\/www.msp360.com\/drive\/\" target=\"_blank\" rel=\"noopener noreferrer\">Drive<\/a> \u2013 application for Windows which allows mounting cloud storage as a local drive. Now \u0421loudBerry Drive can be installed and configured via the Windows Command Line interface.<!--more--><\/p>\n<section id=\"section-installation\" class=\"\">\n<h2>Installing \u0421loudBerry Drive<\/h2>\n<p>To perform actions listed in this paragraph properly you need to start the command-line interface with the \"<strong>Run as administrator<\/strong>\" option.<\/p>\n<ol>\n<li>Click on the Windows \"<strong>Start<\/strong>\" button.<\/li>\n<li>Type\u00a0<strong>cmd.exe<\/strong>\u00a0in the search line to run the Windows console, press \"<strong>Enter<\/strong>\".<\/li>\n<li><strong>Change your current folder<\/strong> to the folder with the \u0421loudBerry Drive installation file.<\/li>\n<li>Run installation by typing the following command:<code>CloudBerryDriveSetup_v[build_version].exe \/S<\/code><b>Note:<\/b> The file name depends on your version of \u0421loudBerry Drive.<\/li>\n<\/ol>\n<\/section>\n<section id=\"section-installation\" class=\"\">\n<h2>Activating \u0421loudBerry Drive<\/h2>\n<ol>\n<li>Click on the Windows \"<strong>Start<\/strong>\" button.<\/li>\n<li>Type\u00a0<strong>cmd.exe<\/strong>\u00a0in the search line to run the Windows console, press \"<strong>Enter<\/strong>\".<\/li>\n<li><strong>Change your current folder<\/strong> to the folder with the \u0421loudBerry Drive installation file.<code>cd \"C:\\Program Files\\CloudBerryLab\\CloudBerry Drive\"<\/code><\/li>\n<\/ol>\n<h3 id=\"section-online-activation\">Online Activation<\/h3>\n<p><b>Activate license<\/b>. (Email &amp; key are required):<\/p>\n<p><code>cbd.exe \/activatelicense -k \"license_key\" -e \"email\"<\/code>(where \"email\" is your email and \"license_key\" is the license key that you received when buying the product).<\/p>\n<h3 id=\"section-request-trial\">Request Trial<\/h3>\n<p><b>Request a trial license<\/b>. (Email &amp; key are required):<\/p>\n<p><strong>Change your current folder<\/strong> to the folder with the \u0421loudBerry Drive installation file.<code>cbd.exe \/activatelicense -e \"email\" -t<\/code><\/p>\n<h3 id=\"section-offline-activation\">Offline Activation<\/h3>\n<p>If you can't activate \u0421loudBerry Backup online you can use offline activation.<\/p>\n<ol>\n<li>Generate offline license request using your email and license key:<code>cbd.exe \/activatelicense -k \"license_key\" -e \"email\" -or<\/code>(where \"email\" is your email and \"license_key\" is the license key that you received when buying the product).As an output, you will get a service key.<\/li>\n<li>Send the service key to\u00a0<a href=\"mailto:support@msp360.com\">support@msp360.com<\/a>. You will receive the activation key by email.<\/li>\n<li>Activate license key<code>cbd.exe \/activatelicense -k \"license_key\" -e \"email\" -oa \"activationkey_received\"<\/code>For\u00a0time-limited<b> license<\/b>\u00a0you need to specify\u00a0<b>-expire<\/b>\u00a0parameter with the date you received by email:<code>cbd.exe \/activatelicense -k \"license_key\" -e \"email\" -oa \"activationkey_received\" -expire \"YYYY-MM-DD\"<\/code><\/li>\n<li>The product is activated.<\/li>\n<\/ol>\n<h3 id=\"section-release-license\">Release license<\/h3>\n<p><b>Release license (releaseLicense):<\/b><\/p>\n<p><code>cbd.exe \/releaseLicense<\/code><b>To release license in a silent mode, run the following command:<\/b><\/p>\n<p><code>cbd.exe \/silent \/releaselicense<\/code><\/p>\n<\/section>\n<section id=\"section-register-account\" class=\"\">\n<h2>Working with Storage Accounts<\/h2>\n<h3>Registering a Storage Account<\/h3>\n<p>To perform actions listed in this paragraph properly you need to start the command line interface\u00a0<strong>under the local user account<\/strong>.<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Click on the Windows \"<strong>Start<\/strong>\" button.<\/li>\n<li>Type\u00a0<strong>cmd.exe<\/strong>\u00a0in the search line to run the Windows console, press \"<strong>Enter<\/strong>\".<\/li>\n<li><strong>Change your current folder<\/strong> to the \u0421loudBerry Drive installation folder. Type:<code>cd \"C:\\Program Files\\CloudBerryLab\\CloudBerry Drive\"<\/code><\/li>\n<li>To register an Amazon S3 account, type:<code>cbd.exe addAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-st\u00a0<strong>S3<\/strong>\u00a0-ac\u00a0<strong>accesskey<\/strong>\u00a0-sk\u00a0<strong>secretkey<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To register an S3-like cloud storage account, type:<code>cbd.exe addAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-st\u00a0<strong>storageType<\/strong>\u00a0-ac\u00a0<strong>accesskey<\/strong>\u00a0-sk\u00a0<strong>secretkey<\/strong>\u00a0-sp\u00a0<strong>servicePoint<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To register an OpenStack-based cloud storage account, type:<code>cbd.exe addAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-st\u00a0<strong>storageType<\/strong>\u00a0-ac\u00a0<strong>username<\/strong>\u00a0-sk\u00a0<strong>apikey<\/strong>\u00a0-as\u00a0<strong>servicePoint<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To register a Windows Azure account, type:<code>cbd.exe addAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-st\u00a0<strong>Azure<\/strong>\u00a0-ac\u00a0<strong>account<\/strong>\u00a0-sk\u00a0<strong>sharedkey<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To register a Google Cloud Storage account, type:<code>cbd.exe addAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-st\u00a0<strong>Google<\/strong>\u00a0-ac\u00a0<strong>accesskey<\/strong>\u00a0-sk\u00a0<strong>secretkey<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><strong>IMPORTANT:<\/strong><\/p>\n<p>The parameter \"<strong>-d<\/strong>\" can be any of your choices.<\/p>\n<p><span style=\"font-size: 1.125rem; letter-spacing: 0px;\">The parameter <\/span>\"<strong>-st<\/strong>\" can be one of the following: S3, Azure, Google, Scality, Tiscali, DreamObjects, Seeweb, Walrus, Mezeo, OpenStack, RackSpace,\u00a0 HPCloud, Haylix.<\/p>\n<p>The parameter \"<strong>-ac<\/strong>\" is for accessKey, account, queryID or userName depending on storage you are registering. \"Access Key\" for Amazon S3 storage; \"Account\" for Azure storage; \"Query ID\" for Walrus storage; \"User Name\" for OpenStack, Rackspace, and HPCloud storage.<\/p>\n<p>The parameter \"<strong>-sk<\/strong>\" is for secretKey, sharedKey or apiKey depending on storage you are registering. \"Secret Key\" for Amazon S3 storage; \"Shared key\" for Azure storage; or \"Api Key\" for OpenStack, Rackspace, or HPCloud storage.<\/p>\n<p>The parameter \"<strong>-sp<\/strong>\" is for service point for AmazonS3-like storage accounts.<\/p>\n<p>The parameter \"<strong>-as<\/strong>\" is for authentication service for OpenStack-based cloud storage accounts.<\/p>\n<p>The parameter \"<strong>-ssl<\/strong>\" enables or disables SSL. By default SSL is set to \"no\".<\/p>\n<p><strong>Note<\/strong>: You can learn more about parameters for \"addAccount\" by entering the following command:\u00a0<span class=\"code-like\">cbd.exe addAccount -?<\/span><\/p>\n<\/section>\n<section id=\"section-edit-account\" class=\"\">\n<h3>Editing or Deleting a Storage Account<\/h3>\n<p>To perform actions listed in this paragraph properly you need to start the command line interface\u00a0<strong>under the local user account<\/strong>.<\/p>\n<ol>\n<li>Click on the Windows \"<strong>Start<\/strong>\" button.<\/li>\n<li>Type\u00a0<strong>cmd.exe<\/strong>\u00a0in the search line to run the Windows console, press \"<strong>Enter<\/strong>\".<\/li>\n<li><strong>Change your current folder<\/strong> to the \u0421loudBerry Drive installation folder. Type:<code>cd \"C:\\Program Files\\CloudBerryLab\\CloudBerry Drive\"<\/code><\/li>\n<li>To delete an account, type:<code>cbd.exe deleteAccount\u00a0<strong>accountName<\/strong><\/code><strong>Note:<\/strong>\u00a0you can delete multiple accounts with one command. To do this type names of accounts you want to delete separated with commas.<\/li>\n<li>To edit an Amazon S3 account, type:<code>cbd.exe editAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-n\u00a0<strong>new_display_name<\/strong>\u00a0-st\u00a0<strong>S3<\/strong>\u00a0-ac\u00a0<strong>accesskey<\/strong>\u00a0-sk\u00a0<strong>secretkey<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To edit an S3-like cloud storage account, type:<code>cbd.exe editAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-n\u00a0<strong>new_display_name<\/strong>\u00a0-st\u00a0<strong>storageType<\/strong>\u00a0-ac\u00a0<strong>accesskey<\/strong>-sk\u00a0<strong>secretkey<\/strong>\u00a0-sp\u00a0<strong>servicePoint<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To edit an OpenStack-based cloud storage account, type:<code>cbd.exe editAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-n\u00a0<strong>new_display_name<\/strong>\u00a0-st\u00a0<strong>storageType<\/strong>\u00a0-ac\u00a0<strong>username<\/strong>-sk\u00a0<strong>apikey<\/strong>\u00a0-as\u00a0<strong>servicePoint<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To edit a Windows Azure account, type:<code>cbd.exe editAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-n\u00a0<strong>new_display_name<\/strong>\u00a0-st\u00a0<strong>Azure<\/strong>\u00a0-ac\u00a0<strong>account<\/strong>\u00a0-sk\u00a0<strong>sharedkey<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code>To edit a Google Cloud Storage account, type:<code>cbd.exe editAccount -d\u00a0<strong>account_display_name<\/strong>\u00a0-n\u00a0<strong>new_display_name<\/strong>\u00a0-st\u00a0<strong>Google<\/strong>\u00a0-ac\u00a0<strong>accesskey<\/strong>\u00a0-sk\u00a0<strong>secretkey<\/strong>\u00a0-ssl\u00a0<strong>yes\/no<\/strong><\/code><\/li>\n<\/ol>\n<p><strong>Examples:<\/strong><\/p>\n<p>To change the display name of your account, type:<\/p>\n<p><code>cbd.exe editAccount -d\u00a0<strong>CurrentName<\/strong>\u00a0-n\u00a0<strong>NewName<\/strong><\/code>To turn on SSL, type:<code>cbd.exe editAccount -d\u00a0<strong>CurrentName<\/strong>\u00a0-ssl\u00a0<strong>yes<\/strong><\/code><strong>IMPORTANT:<\/strong><\/p>\n<p>Parameter \"<strong>-d<\/strong>\" can be any of your choices.<\/p>\n<p>Parameter \"<strong>-st<\/strong>\" can be one of the following: S3, Azure, Google, Scality, Dunkel, Tiscali,\u00a0 DreamObjects, Seeweb, Walrus, Mezeo, OpenStack, RackSpace,\u00a0 HPCloud, Haylix.<\/p>\n<p>The parameter \"<strong>-ac<\/strong>\" is for accessKey, account, queryID or userName depending on storage you are registering. \"Access Key\" for Amazon S3 storage; \"Account\" for Azure storage; \"Query ID\" for Walrus storage; \"User Name\" for OpenStack, Rackspace, and HPCloud storage.<\/p>\n<p>The parameter \"<strong>-sk<\/strong>\" is for secretKey, sharedKey or apiKey depending on storage you are registering. \"Secret Key\" for Amazon S3 storage; \"Shared key\" for Azure storage; or \"Api Key\" for OpenStack, Rackspace, or HPCloud storage.<\/p>\n<p>The parameter \"<strong>-sp<\/strong>\" is for service point for AmazonS3-like storage accounts.<\/p>\n<p>The parameter \"<strong>-as<\/strong>\" is for authentication service for OpenStack-based cloud storage accounts.<\/p>\n<p>The parameter \"<strong>-ssl<\/strong>\" enables or disables SSL. By default SSL is set to \"no\".<\/p>\n<p>The parameter \"<strong>-n<\/strong>\" is for a new display name.<\/p>\n<p><strong>Note<\/strong>: You can learn more about parameters for \"deleteAccount\" or \"editAccount\" by entering:\u00a0<strong>cbd.exe deleteAccount -?<\/strong>\u00a0or\u00a0<strong>cbd.exe editAccount -?<\/strong>.<\/p>\n<\/section>\n<section id=\"section-mapped-drive\" class=\"\">\n<h2>Creating a Mapped Drive<\/h2>\n<p>To perform actions listed in this paragraph properly you need to start the command line interface\u00a0<strong>under the local user account<\/strong>.<\/p>\n<ol>\n<li>Click on the Windows \"<strong>Start<\/strong>\" button.<\/li>\n<li>Type\u00a0<strong>cmd.exe<\/strong>\u00a0in the search line to run the Windows console, press \"<strong>Enter<\/strong>\".<\/li>\n<li><strong>Change your current folder<\/strong> to the \u0421loudBerry Drive installation folder. Type:<code>cd \"C:\\Program Files\\CloudBerryLab\\CloudBerry Drive\"<\/code><\/li>\n<li>Type:<code>cbd.exe\u00a0<strong>addDrive<\/strong>\u00a0-d\u00a0<strong>DriveLetter<\/strong>\u00a0-an\u00a0<strong>AccountName<\/strong>\u00a0-path\u00a0<strong>container\/folder<\/strong>\u00a0-label\u00a0<strong>VolumeLabel<\/strong><\/code><\/li>\n<li><strong>To mount<\/strong>\u00a0a mapped drive, type:<code>cbd.exe\u00a0<strong>mountDrive<\/strong>\u00a0DriveLetter<\/code><\/li>\n<\/ol>\n<p><strong>IMPORTANT:<\/strong><\/p>\n<p>The parameter \"<strong>-d<\/strong>\" is for any drive letter you prefer.<\/p>\n<p>The parameter \"<strong>-an<\/strong>\" is for the name of your registered cloud storage account.<\/p>\n<p>The parameter \"<strong>-path<\/strong>\" is for the path to your data container - bucket\/folder\/subfolder. You can specify the path using a slash.<\/p>\n<p>The parameter \"<strong>-label<\/strong>\" is for a mapped drive label. Specify any of your choices.<\/p>\n<p>The parameter \"<strong>-as<\/strong>\" specifies whether to mount the drive as a removable disk or as a network mapped drive. By default, the drive is mounted as a network mapped drive. Possible values: removable, network.<\/p>\n<p>The parameter \"<strong>-ss<\/strong>\" specifies if to mount the drive at system startup. By default, the drive is mounted on a startup. Possible values: yes, no.<\/p>\n<p>The parameter \"<strong>-ro<\/strong>\" specifies if to mount the drive for read-only access. Possible values: yes, no. The default setting is no.<\/p>\n<p>The parameter \"<strong>-rrs<\/strong>\" specifies if to use Reduced Redundancy Storage for Amazon S3 accounts. Possible values: yes, no. The default setting is no.<\/p>\n<p>The parameter \"<strong>-sse<\/strong>\" specifies if to use Server Side Encryption. Possible values: yes, no. Default setting is no.<\/p>\n<p><strong>Note<\/strong>: You can learn more about parameters for \"addDrive\" by entering the following command:\u00a0<strong>cbd.exe addDrive -?<\/strong><\/p>\n<p><strong>Example:<\/strong><\/p>\n<p><code>cbd.exe addAccount -d mys3 -st S3 -ac XXXXXXXXXXXXXXXXXXXX -sk XXXxxXXXXXXXxxXXXXXXxXXXXXXxxxXXXXXXXX<\/code><code>cbd.exe proxysettings -type auto<\/code><code>cbd.exe editAccount -d mys3 -ssl yes<\/code><code>cbd.exe addDrive -d Z -an mys3 -path mybucket\/reports -label myreports -rrs yes<\/code><code>cbd.exe mountDrive Z<\/code><\/p>\n<\/section>\n<section id=\"section-start-service\" class=\"\">\n<h2>Starting \u0421loudBerry Drive Service<\/h2>\n<p>To perform actions listed in this paragraph properly you need to start the command-line interface with the \"<strong>Run as administrator<\/strong>\" option.<\/p>\n<ol>\n<li>Click on the Windows \"<strong>Start<\/strong>\" button.<\/li>\n<li>Type\u00a0<strong>cmd.exe<\/strong>\u00a0in the search line to run the Windows console, press \"<strong>Enter<\/strong>\".<\/li>\n<li><strong>Change your current folder<\/strong> to the \u0421loudBerry Drive installation folder. Type:<code>cbd.exe \/startservice<\/code><\/li>\n<\/ol>\n<p>Now if you have done everything correctly you shall be able to use your cloud storage account as a mapped drive.<\/p>\n<\/section>\n<section id=\"section-additional\" class=\"\">\n<h2>Additional Commands<\/h2>\n<p>\u0421loudBerry Drive has additional CLI commands that allow controlling \u0421loudBerry Drive service via the Windows Command-Line. Using these commands you can stop the activity of \u0421loudBerry Drive, restart the service, mount and unmount mapped drive.<\/p>\n<p><strong>To stop<\/strong> \u0421loudBerry Drive service, type:<\/p>\n<p><code>cbd.exe \/<strong>stopservice<\/strong><\/code><strong>To restart<\/strong> \u0421loudBerry Drive service, type:<\/p>\n<p><code>cbd.exe \/<strong>restartservice<\/strong><\/code><strong>To unmount<\/strong>\u00a0the drive, type:<\/p>\n<p><code>cbd.exe\u00a0<strong>unmountDrive<\/strong>\u00a0DriveLetter<\/code><strong>Note<\/strong>: Replace \"<strong>DriveLetter<\/strong>\" with the letter of your mounted drive (e.g. Z or G)<\/p>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u0421loudBerry presents enhanced \u0421loudBerry Drive \u2013 application for Windows which allows mounting cloud storage as a local drive. Now \u0421loudBerry Drive can be installed and configured via the Windows Command Line interface.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":25713,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-template-cli.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-25727","page","type-page","status-publish","hentry","types-cli"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/pages\/25727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=25727"}],"version-history":[{"count":0,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/pages\/25727\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/pages\/25713"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=25727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}