To create an OCI package, run:
gdcloud artifacts services package SOURCE DESTINATION
The SOURCE path must point to the service.yaml file.
The DESTINATION path must point to an empty directory.
[[["容易理解","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 artifacts services package\u003c/code\u003e command creates an OCI package from a service.yaml file.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires two arguments: \u003ccode\u003eSOURCE\u003c/code\u003e, which is the path to the service.yaml file, and \u003ccode\u003eDESTINATION\u003c/code\u003e, which is an empty directory.\u003c/p\u003e\n"],["\u003cp\u003eIt provides an example of how to run the command: \u003ccode\u003egdcloud artifacts services package SOURCE DESTINATION\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSeveral global flags are available for use with the command, including \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# gdcloud artifacts services package\n\nNAME\n----\n\ngdcloud artifacts services package - Create an OCI package based on a service.yaml file.\n\nSYNOPSIS\n--------\n\n gdcloud artifacts services package SOURCE DESTINATION [flags]\n\n### EXAMPLES\n\n To create an OCI package, run:\n\n gdcloud artifacts services package SOURCE DESTINATION\n\n The SOURCE path must point to the service.yaml file.\n The DESTINATION path must point to an empty directory.\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."]]