Secara default, CLI mcdc melakukan pemeriksaan versi sekali
setiap 24 jam. Saat Anda menjalankan mcdc CLI dan
versi baru tersedia, pesan akan ditampilkan yang menunjukkan bahwa
versi mcdc CLI yang tersedia untuk Anda upgrade
telah tersedia. Pemeriksaan versi ini memerlukan koneksi internet.
Jika diperlukan, konfigurasikan proxy untuk mengakses internet:
mcdc CLI mengirimkan informasi penggunaan pseudoanonimitas
yang dapat membantu Google memprioritaskan fitur dan peningkatan
penemuan serta penilaian. Statistik penggunaan ini ditangani sesuai dengan
Google Cloud Pemberitahuan Privasi. Bagian ini menjelaskan cara mengubah apakah statistik penggunaan dikirim ke Google kapan saja setelah Anda menginstal CLI mcdc.
Ganti DATABASE_NAME dengan jalur ke database
tempat data yang dikumpulkan disimpan. Biasanya, file ini berada di direktori yang sama dengan tempat Anda menginstal CLI mcdc.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-11 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)."]]