By default, the mcdc CLI performs a version check once
every 24 hours. When you run the mcdc CLI and
a new version is available, a message is displayed which indicates that the
version of mcdc CLI that is available for you to upgrade
to. This version check requires an internet connection.
When needed, configure a proxy to access the internet:
The mcdc CLI sends pseudoanonymized usage information
that can help Google to prioritize discovery and assessment features and
improvements. These usage statistics are handled in accordance with
Google Cloud Privacy Notice. This
section describes how you can change whether usage statistics are sent to
Google at any time after you've installed the mcdc CLI.
Replace DATABASE_NAME with the path to the database
where the collected data is stored. Typically, it is in the same directory
where you installed the mcdc CLI.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Manage Migration Center discovery client CLI\n\nThis document describes how you can manage the Migration Center discovery client CLI.\n\nBefore you begin\n----------------\n\n- Complete the steps to [download the `mcdc` CLI](/migration-center/docs/download-collector-cli).\n\nAutomatic version check\n-----------------------\n\nBy default, the `mcdc` CLI performs a version check once\nevery 24 hours. When you run the `mcdc` CLI and\na new version is available, a message is displayed which indicates that the\nversion of `mcdc` CLI that is available for you to upgrade\nto. This version check requires an internet connection.\n\n- When needed, configure a proxy to access the internet:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePROXY\u003c/var\u003e with the IP address of the HTTP or HTTPS proxy.\n For example, `127.0.0.1:7777` or `socks5://127.0.0.1:1234`.\n- Deactivate the automatic version check by setting the\n `disable_version_checking` option:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set disable_version_checking true\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set disable_version_checking true\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\nManage configurations\n---------------------\n\nYou can manage the configuration properties by using the `config`\ncommand.\n\n- Print all configuration properties and their values:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config list\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config list\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n- Print the value of a configuration property:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config get PROPERTY_NAME\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config get PROPERTY_NAME\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePROPERTY_NAME\u003c/var\u003e with the name of the property\n for which you want to print the value.\n- Set a configuration property:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n- Reset a configuration property to its default value:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config unset proxy\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config unset proxy\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\nManage usage statistics\n-----------------------\n\nThe `mcdc` CLI sends pseudoanonymized usage information\nthat can help Google to prioritize discovery and assessment features and\nimprovements. These usage statistics are handled in accordance with\n[Google Cloud Privacy Notice](/terms/cloud-privacy-notice). This\nsection describes how you can change whether usage statistics are sent to\nGoogle at any time after you've installed the `mcdc` CLI.\n\n- Disable sending usage statistics:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set disable_usage_reporting true\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set disable_usage_reporting true\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n- Enable sending usage statistics:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set disable_usage_reporting false\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set disable_usage_reporting false\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\nDelete collected data from host machine\n---------------------------------------\n\n- After you've collected data and exported it to Migration Center or\n completed an offline assessment, you can delete the data from the local\n database:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc discover purge-db -db DATABASE_NAME\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe discover purge-db -db DATABASE_NAME\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n Replace \u003cvar translate=\"no\"\u003eDATABASE_NAME\u003c/var\u003e with the path to the database\n where the collected data is stored. Typically, it is in the same directory\n where you installed the `mcdc` CLI.\n\nWhat's next\n-----------\n\n- Learn how to [run an offline assessment](/migration-center/docs/run-offline-assessment)."]]