To create a Harbor instance, run:
gdcloud harbor instances create example-instance \
--project=example-project \
--initial-harbor-project=foo
--initial-harbor-project-enable-vulnerability-scanning=true
選用旗標
--initial-harbor-project string Initial Harbor project created along with the Harbor instance. If omitted, an initial Harbor project is not created.
--initial-harbor-project-enable-vulnerability-scanning Enable vulnerability scanning for the initial Harbor project. Only evaluated if --initial-harbor-project was used. (default true)
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud harbor instances create\u003c/code\u003e command is used to create a new Harbor instance.\u003c/p\u003e\n"],["\u003cp\u003eAn initial Harbor project can be created concurrently with the Harbor instance using the \u003ccode\u003e--initial-harbor-project\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003eVulnerability scanning for the initial Harbor project can be enabled or disabled using the \u003ccode\u003e--initial-harbor-project-enable-vulnerability-scanning\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires specifying the instance name and also the project under which the instance will be created.\u003c/p\u003e\n"]]],[],null,["# gdcloud harbor instances create\n\nNAME\n----\n\ngdcloud harbor instances create - Create a Harbor instance.\n\nSYNOPSIS\n--------\n\n gdcloud harbor instances create INSTANCE_NAME [flags]\n\n### EXAMPLES\n\n To create a Harbor instance, run:\n\n gdcloud harbor instances create example-instance \\\n --project=example-project \\\n --initial-harbor-project=foo\n --initial-harbor-project-enable-vulnerability-scanning=true\n\n### OPTIONAL FLAGS\n\n --initial-harbor-project string Initial Harbor project created along with the Harbor instance. If omitted, an initial Harbor project is not created.\n --initial-harbor-project-enable-vulnerability-scanning Enable vulnerability scanning for the initial Harbor project. Only evaluated if --initial-harbor-project was used. (default true)\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]