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
OPTIONAL FLAGS
--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)
GDCLOUD WIDE FLAGS
These flags are available to all commands: --configuration, --format, --help, --project, --quiet.
[[["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-25 UTC."],[[["\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."]]