"use strict";(self.webpackChunkelementary_public_docs=self.webpackChunkelementary_public_docs||[]).push([[5794],{15680:(e,n,l)=>{l.d(n,{xA:()=>p,yg:()=>d});var a=l(96540);function o(e,n,l){return n in e?Object.defineProperty(e,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[n]=l,e}function r(e,n){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),l.push.apply(l,a)}return l}function i(e){for(var n=1;n=0||(o[l]=e[l]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(o[l]=e[l])}return o}var c=a.createContext({}),s=function(e){var n=a.useContext(c),l=n;return e&&(l="function"==typeof e?e(n):i(i({},n),e)),l},p=function(e){var n=s(e.components);return a.createElement(c.Provider,{value:n},e.children)},g="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return a.createElement(a.Fragment,{},n)}},y=a.forwardRef((function(e,n){var l=e.components,o=e.mdxType,r=e.originalType,c=e.parentName,p=t(e,["components","mdxType","originalType","parentName"]),g=s(l),y=o,d=g["".concat(c,".").concat(y)]||g[y]||u[y]||r;return l?a.createElement(d,i(i({ref:n},p),{},{components:l})):a.createElement(d,i({ref:n},p))}));function d(e,n){var l=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var r=l.length,i=new Array(r);i[0]=y;var t={};for(var c in n)hasOwnProperty.call(n,c)&&(t[c]=n[c]);t.originalType=e,t[g]="string"==typeof e?e:o,i[1]=t;for(var s=2;s{l.r(n),l.d(n,{assets:()=>s,contentTitle:()=>t,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>p});var a=l(58168),o=(l(96540),l(15680)),r=l(96763);const i={sidebar_position:1},t="\u529f\u80fd\u4ecb\u7ecd",c={unversionedId:"CLI/Introduction",id:"CLI/Introduction",title:"\u529f\u80fd\u4ecb\u7ecd",description:"\u4ec0\u4e48\u662f SCO CLI\uff1f",source:"@site/docs/CLI/Introduction.md",sourceDirName:"CLI",slug:"/CLI/Introduction",permalink:"/help/docs/CLI/Introduction",draft:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/CLI/Introduction.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"cn_CLI",next:{title:"\u4e91\u76d8\u8d44\u6e90\u5b9e\u4f8b\u76f8\u5173\u7ba1\u7406",permalink:"/help/docs/CLI/SCO_Refrence/ABS/overview"}},s={},p=[{value:"\u4ec0\u4e48\u662f SCO CLI\uff1f",id:"\u4ec0\u4e48\u662f-sco-cli",level:2},{value:"SCO CLI \u4f18\u70b9",id:"sco-cli-\u4f18\u70b9",level:2},{value:"\u5982\u4f55\u4f7f\u7528 SCO CLI",id:"\u5982\u4f55\u4f7f\u7528-sco-cli",level:2},{value:"\u5b89\u88c5",id:"\u5b89\u88c5",level:3},{value:"Linux/macOS \u5b89\u88c5",id:"linuxmacos-\u5b89\u88c5",level:4},{value:"Windows \u5b89\u88c5",id:"windows-\u5b89\u88c5",level:4},{value:"\u521d\u59cb\u5316",id:"\u521d\u59cb\u5316",level:3},{value:"\u914d\u7f6e\u7ba1\u7406",id:"\u914d\u7f6e\u7ba1\u7406",level:3},{value:"\u521b\u5efa\u914d\u7f6e",id:"\u521b\u5efa\u914d\u7f6e",level:4},{value:"\u6fc0\u6d3b\u914d\u7f6e",id:"\u6fc0\u6d3b\u914d\u7f6e",level:4},{value:"\u5217\u51fa\u914d\u7f6e",id:"\u5217\u51fa\u914d\u7f6e",level:4},{value:"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027",id:"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027",level:4},{value:"\u67e5\u770b\u914d\u7f6e\u5c5e\u6027",id:"\u67e5\u770b\u914d\u7f6e\u5c5e\u6027",level:4},{value:"\u5220\u9664\u914d\u7f6e",id:"\u5220\u9664\u914d\u7f6e",level:4},{value:"\u914d\u7f6e\u5c5e\u6027\u7ba1\u7406",id:"\u914d\u7f6e\u5c5e\u6027\u7ba1\u7406",level:3},{value:"\u5217\u51fa\u914d\u7f6e\u5c5e\u6027",id:"\u5217\u51fa\u914d\u7f6e\u5c5e\u6027",level:4},{value:"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027",id:"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027-1",level:4},{value:"\u53d6\u6d88\u914d\u7f6e\u5c5e\u6027",id:"\u53d6\u6d88\u914d\u7f6e\u5c5e\u6027",level:4},{value:"\u7ec4\u4ef6\u7ba1\u7406",id:"\u7ec4\u4ef6\u7ba1\u7406",level:3},{value:"\u5217\u51fa\u7ec4\u4ef6",id:"\u5217\u51fa\u7ec4\u4ef6",level:4},{value:"\u5b89\u88c5\u7ec4\u4ef6",id:"\u5b89\u88c5\u7ec4\u4ef6",level:4},{value:"\u5347\u7ea7\u7ec4\u4ef6",id:"\u5347\u7ea7\u7ec4\u4ef6",level:4},{value:"\u79fb\u9664\u7ec4\u4ef6",id:"\u79fb\u9664\u7ec4\u4ef6",level:4},{value:"\u66f4\u65b0\u7ec4\u4ef6\u5217\u8868",id:"\u66f4\u65b0\u7ec4\u4ef6\u5217\u8868",level:4}],g=(u="DownLoadCliLink",function(e){return r.warn("Component "+u+" was not imported, exported, or provided by MDXProvider as global scope"),(0,o.yg)("div",e)});var u;const y={toc:p},d="wrapper";function m(e){let{components:n,...l}=e;return(0,o.yg)(d,(0,a.A)({},y,l,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"\u529f\u80fd\u4ecb\u7ecd"},"\u529f\u80fd\u4ecb\u7ecd"),(0,o.yg)("h2",{id:"\u4ec0\u4e48\u662f-sco-cli"},"\u4ec0\u4e48\u662f SCO CLI\uff1f"),(0,o.yg)("p",null,"CLI\uff0c\u5168\u79f0 Command Line Interface\uff0c\u4e2d\u6587\u540d\u4e3a\u547d\u4ee4\u884c\u754c\u9762\u3002\u5b83\u662f\u4e00\u79cd\u4e0e\u8ba1\u7b97\u673a\u4ea4\u4e92\u7684\u65b9\u5f0f\uff0c\u901a\u8fc7\u8f93\u5165\u547d\u4ee4\u548c\u53c2\u6570\u6765\u6267\u884c\u5404\u79cd\u64cd\u4f5c\u3002\n\u5546\u6c64\u5927\u88c5\u7f6e\u547d\u4ee4\u884c\u5de5\u5177\u670d\u52a1\uff08SenseCore Command Line Interface\uff0cSCO CLI\uff09\u662f\u4e3a\u5927\u88c5\u7f6e\u53d1\u5e03\u7684OPEN API\u63d0\u4f9b\u7684\u547d\u4ee4\u884c\u7ba1\u7406\u5de5\u5177\u3002"),(0,o.yg)("h2",{id:"sco-cli-\u4f18\u70b9"},"SCO CLI \u4f18\u70b9"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("strong",{parentName:"li"},"\u7075\u6d3b\u6027"),"\uff1a")),(0,o.yg)("p",null,"SCO CLI\u5141\u8bb8\u7528\u6237\u8fdb\u884c\u9ad8\u5ea6\u5b9a\u5236\u5316\u7684\u64cd\u4f5c\uff0c\u800c\u4e0d\u53d7\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u7684\u9650\u5236\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u81ea\u7531\u7ec4\u5408\u547d\u4ee4\uff0c\u5b9e\u73b0\u5404\u79cd\u5404\u6837\u7684\u529f\u80fd\u3002"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("strong",{parentName:"li"},"\u6548\u7387"),"\uff1a")),(0,o.yg)("p",null,"\u4e0d\u9700\u8981\u5904\u7406\u590d\u6742\u7684\u56fe\u5f62\u754c\u9762\uff0cCLI\u6bd4GUI\u66f4\u5feb\u3002\u65e0\u8bba\u662f\u6587\u4ef6\u64cd\u4f5c\u3001\u7f51\u7edc\u8fde\u63a5\u8fd8\u662f\u7a0b\u5e8f\u542f\u52a8\uff0cSCO CLI\u90fd\u80fd\u5feb\u901f\u54cd\u5e94\u3002"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("strong",{parentName:"li"},"\u8de8\u5e73\u53f0\u6027"),"\uff1a")),(0,o.yg)("p",null,"SCO CLI\u652f\u6301\u591a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u56e0\u6b64\u66f4\u5bb9\u6613\u8de8\u5e73\u53f0\u4f7f\u7528\u3002\u65e0\u8bba\u5728Windows\u3001Linux\u8fd8\u662fmacOS\u4e0a\u5de5\u4f5c\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u7684\u547d\u4ee4\u3002"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("strong",{parentName:"li"},"\u5f3a\u5927\u7684\u811a\u672c\u529f\u80fd"),"\uff1a")),(0,o.yg)("p",null,"SCO CLI\u652f\u6301\u811a\u672c\u7f16\u7a0b\uff0c\u8fd9\u610f\u5473\u7740\u60a8\u53ef\u4ee5\u5c06\u591a\u4e2a\u547d\u4ee4\u7ec4\u5408\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u811a\u672c\u3002\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u81ea\u52a8\u5316\u8bb8\u591a\u91cd\u590d\u7684\u4efb\u52a1\uff0c\u63d0\u9ad8\u6548\u7387\u3002"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("strong",{parentName:"li"},"\u6613\u4e8e\u81ea\u5b9a\u4e49"),"\uff1a")),(0,o.yg)("p",null,"SCO CLI\u7684\u53e6\u4e00\u4e2a\u4f18\u70b9\u662f\u5b83\u975e\u5e38\u5bb9\u6613\u81ea\u5b9a\u4e49\u3002\u60a8\u53ef\u4ee5\u4fee\u6539\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u521b\u5efa\u81ea\u5df1\u7684\u522b\u540d\uff0c\u751a\u81f3\u53ef\u4ee5\u7f16\u5199\u81ea\u5df1\u7684\u547d\u4ee4\u3002"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("strong",{parentName:"li"},"\u4e30\u5bcc\u7684\u5de5\u5177\u5e93"),"\uff1a")),(0,o.yg)("p",null,"SCO CLI\u6709\u8bb8\u591a\u5185\u7f6e\u7684\u5de5\u5177\u548c\u547d\u4ee4\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5b8c\u6210\u5404\u79cd\u4efb\u52a1\uff0c\u5982\u6587\u4ef6\u64cd\u4f5c\u3001\u7f51\u7edc\u7ba1\u7406\u3001\u8fdb\u7a0b\u63a7\u5236\u7b49\u3002\u800c\u4e14\uff0c\u7531\u4e8e\u5f00\u6e90\u793e\u533a\u7684\u8d21\u732e\uff0c\u8fd8\u6709\u8bb8\u591a\u7b2c\u4e09\u65b9\u5de5\u5177\u53ef\u4f9b\u4f7f\u7528\u3002"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("strong",{parentName:"li"},"\u5b89\u5168\u6027"),"\uff1a")),(0,o.yg)("p",null,"SCO CLI\u7684\u64cd\u4f5c\u8bb0\u5f55\u53ef\u4ee5\u88ab\u4fdd\u5b58\uff0c\u8fd9\u4f7f\u5f97\u5ba1\u8ba1\u548c\u8ffd\u8e2a\u53d8\u5f97\u5bb9\u6613\u3002\u53e6\u5916\uff0cCLI\u7684\u6743\u9650\u7ba1\u7406\u4e5f\u975e\u5e38\u4e25\u683c\uff0c\u53ef\u4ee5\u5e2e\u52a9\u9632\u6b62\u672a\u7ecf\u6388\u6743\u7684\u8bbf\u95ee\u3002"),(0,o.yg)("h2",{id:"\u5982\u4f55\u4f7f\u7528-sco-cli"},"\u5982\u4f55\u4f7f\u7528 SCO CLI"),(0,o.yg)("h3",{id:"\u5b89\u88c5"},"\u5b89\u88c5"),(0,o.yg)("p",null,"sco \u652f\u6301\u4ee5\u4e0b\u7cfb\u7edf\uff1alinux/amd64\u3001linux/arm64\u3001darwin/amd64\u3001darwin/arm64\u3001windows/amd64\u3002"),(0,o.yg)("h4",{id:"linuxmacos-\u5b89\u88c5"},"Linux/macOS \u5b89\u88c5"),(0,o.yg)("p",null,"\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 sco\uff1a"),(0,o.yg)(g,{mdxType:"DownLoadCliLink"},(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-bash"},"curl -sSfL {seoUrl}/registry/sco/install.sh | sh && export PATH=~/.sco/bin:$PATH\n"))),(0,o.yg)("p",null,"\u5b89\u88c5\u6210\u529f\u4e4b\u540e\uff0c\u4f1a\u6709\u5982\u4e0b\u7c7b\u4f3c\u7684\u63d0\u793a\u4fe1\u606f\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-bash"},"SenseCore Command Line Interface: \nVersion: v1.0.1-dev.34.gf8dc37c\nGo Version: go version go1.21.1 linux/amd64\nGit Commit: f8dc37cef6005a3a7adcc03c94cd149bd63ec822\nBuild Time (UTC): 2023-12-18 01:08:04\n")),(0,o.yg)("blockquote",null,(0,o.yg)("p",{parentName:"blockquote"},"\u6ce8\u610f\uff1a\u5982\u679c\u4f60\u7684\u9ed8\u8ba4shell\u662fbash\uff0c\u9700\u8981\u5b89\u88c5\u81ea\u52a8\u8865\u5168\u5de5\u5177 ",(0,o.yg)("a",{parentName:"p",href:"https://github.com/scop/bash-completion"},(0,o.yg)("strong",{parentName:"a"},"bash-completion")),"\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4 ",(0,o.yg)("inlineCode",{parentName:"p"},"type _init_completion")," \u68c0\u67e5 bash-completion \u662f\u5426\u5df2\u5b89\u88c5\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\u5b83\u3002\u4f9d\u636e\u5305\u7ba1\u7406\u5de5\u5177\u7684\u5b9e\u9645\u60c5\u51b5\uff0c\u4f60\u9700\u8981\u5728 bash \u914d\u7f6e\u6587\u4ef6\u4e2d\u5bfc\u5165\uff08source\uff09 ",(0,o.yg)("inlineCode",{parentName:"p"},"bash_completion")," \u6587\u4ef6\u3002"),(0,o.yg)("ul",{parentName:"blockquote"},(0,o.yg)("li",{parentName:"ul"},"\u57fa\u4e8e Debian \u7684\u53d1\u884c\u7248\uff1aapt-get install bash_completion"),(0,o.yg)("li",{parentName:"ul"},"\u57fa\u4e8e Red Hat \u7684\u53d1\u884c\u7248\uff1ayum install bash-completion"),(0,o.yg)("li",{parentName:"ul"},"maxOS \u7cfb\u7edf\uff1abrew install bash-completion@2"))),(0,o.yg)("blockquote",null,(0,o.yg)("p",{parentName:"blockquote"},"bash-completion \u6709\u4e24\u4e2a\u7248\u672c\uff1av1 \u548c v2\u3002v1 \u5bf9\u5e94 Bash 3.2\uff08\u4e5f\u662f macOS \u7684\u9ed8\u8ba4\u5b89\u88c5\u7248\u672c\uff09\uff0c v2 \u5bf9\u5e94 Bash 4.1+\u3002\u4e3a\u4e86\u5728 macOS \u4e0a\u4f7f\u7528 sco \u8865\u5168\u529f\u80fd\uff0c\u4f60\u5fc5\u987b\u8981\u5b89\u88c5\u548c\u4f7f\u7528 Bash 4.1+\uff08\u4e5f\u5c31\u662f Bash 4.1 \u6216\u66f4\u65b0\u7684\u7248\u672c\uff09\u548c bash-completion v2\u3002")),(0,o.yg)("h4",{id:"windows-\u5b89\u88c5"},"Windows \u5b89\u88c5"),(0,o.yg)("p",null,"\u6253\u5f00 PowerShell\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 sco\uff1a"),(0,o.yg)(g,{mdxType:"DownLoadCliLink"},(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"Invoke-WebRequest '{seoUrl}/registry/sco/install.ps1' -UseBasicParsing | Select-Object -Expand Content | powershell ; $Env:Path += [IO.Path]::PathSeparator + \"$Env:USERPROFILE\\.sco\\bin\"\n"))),(0,o.yg)("p",null,"\u5b89\u88c5\u6210\u529f\u4e4b\u540e\uff0c\u4f1a\u6709\u5982\u4e0b\u7c7b\u4f3c\u7684\u63d0\u793a\u4fe1\u606f\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"SenseCore Command Line Interface: \nVersion: v1.0.1-dev.34.gf8dc37c\nGo Version: go version go1.21.1 linux/amd64\nGit Commit: f8dc37cef6005a3a7adcc03c94cd149bd63ec822\nBuild Time (UTC): 2023-12-18 01:08:04\n")),(0,o.yg)("blockquote",null,(0,o.yg)("p",{parentName:"blockquote"},"PowerShell \u4e0b\u7684\u6267\u884c\u7b56\u7565\u95ee\u9898\uff0c\u53c2\u8003\uff1a",(0,o.yg)("a",{parentName:"p",href:"https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4"},"about_Execution_Policies"),"\u3002")),(0,o.yg)("h3",{id:"\u521d\u59cb\u5316"},"\u521d\u59cb\u5316"),(0,o.yg)("p",null,"\u5b89\u88c5 sco \u4e4b\u540e\uff0c\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco init")," \u6765\u5b8c\u6210 sco \u7684\u521d\u59cb\u5316\u6b65\u9aa4\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco init")," \u6765\u66f4\u6539\u8bbe\u7f6e\u6216\u521b\u5efa\u65b0\u7684\u914d\u7f6e\u3002"),(0,o.yg)("p",null,(0,o.yg)("inlineCode",{parentName:"p"},"sco init")," \u4f1a\u5b8c\u6210\u4ee5\u4e0b\u914d\u7f6e\uff1a"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},"\u914d\u7f6e AccessKey ID \u548c AccessKey Secret"),(0,o.yg)("li",{parentName:"ul"},"\u9009\u62e9\u53ef\u7528\u533a")),(0,o.yg)("h3",{id:"\u914d\u7f6e\u7ba1\u7406"},"\u914d\u7f6e\u7ba1\u7406"),(0,o.yg)("p",null,"\u914d\u7f6e\u662f\u4e00\u7ec4\u6307\u5b9a\u7684 sco \u5c5e\u6027\u3002\u8fd9\u4e9b\u5c5e\u6027\u662f\u952e\u503c\u5bf9\uff0c\u5206\u6210\u591a\u4e2a\u90e8\u5206\uff0c\u7528\u4e8e\u7ba1\u7406 sco \u7684\u884c\u4e3a\u3002"),(0,o.yg)("p",null,"\u914d\u7f6e\u5b58\u50a8\u5728\u7528\u6237\u914d\u7f6e\u76ee\u5f55\u4e2d\u3002Linux \u548c MacOS \u7cfb\u7edf\u4e0a\uff0c\u9ed8\u8ba4\u7528\u6237\u914d\u7f6e\u76ee\u5f55\u4e3a ",(0,o.yg)("inlineCode",{parentName:"p"},"~/.config/sco"),"\u3002Windows \u7cfb\u7edf\u4e0a\uff0c\u9ed8\u8ba4\u7528\u6237\u914d\u7f6e\u76ee\u5f55\u4e3a ",(0,o.yg)("inlineCode",{parentName:"p"},"%USERPROFILE%\\.config\\sco"),"\u3002"),(0,o.yg)("p",null,"\u5982\u679c\u60a8\u6709\u591a\u4e2a\u914d\u7f6e\uff0c\u53ef\u4ee5\u9009\u62e9\u5728\u8fd9\u4e9b\u914d\u7f6e\u4e4b\u95f4\u5207\u6362\u3002\u60a8\u4e5f\u53ef\u4ee5\u5728\u5728\u8fd0\u884c\u547d\u4ee4\u65f6\uff0c\u901a\u8fc7 ",(0,o.yg)("inlineCode",{parentName:"p"},"--profile")," \u6807\u5fd7\u6307\u5b9a\u5176\u5b83\u7684\u914d\u7f6e\u3002"),(0,o.yg)("h4",{id:"\u521b\u5efa\u914d\u7f6e"},"\u521b\u5efa\u914d\u7f6e"),(0,o.yg)("p",null,"\u5982\u679c\u9700\u8981\u521b\u5efa\u914d\u7f6e\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config profiles create"),"\u3002\u914d\u7f6e\u521b\u5efa\u4e4b\u540e\u4f1a\u9ed8\u8ba4\u6fc0\u6d3b\u3002"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-bah"},"sco config profiles create [NAME]\n")),(0,o.yg)("h4",{id:"\u6fc0\u6d3b\u914d\u7f6e"},"\u6fc0\u6d3b\u914d\u7f6e"),(0,o.yg)("p",null,"\u5982\u679c\u60a8\u6709\u591a\u4e2a\u914d\u7f6e\uff0c\u53ea\u80fd\u6709\u4e00\u4e2a\u914d\u7f6e\u5904\u4e8e\u6fc0\u6d3b\u72b6\u6001\u3002"),(0,o.yg)("p",null,"\u5982\u679c\u9700\u8981\u6fc0\u6d3b\u65b0\u7684\u914d\u7f6e\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"scon config profiles activate"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco config profiles activate [NAME]\n")),(0,o.yg)("p",null,(0,o.yg)("inlineCode",{parentName:"p"},"sco config list")," \u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u67e5\u770b\u5f53\u524d\u5df2\u6fc0\u6d3b\u914d\u7f6e\u7684\u5c5e\u6027\u3002"),(0,o.yg)("p",null,"\u5982\u679c\u9700\u8981\u66f4\u6539\u67d0\u4e2a\u547d\u4ee4\u6267\u884c\u65f6\u7684\u914d\u7f6e\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,o.yg)("inlineCode",{parentName:"p"},"--profile")," \u6807\u8bc6\uff1a"),(0,o.yg)("p",null,(0,o.yg)("inlineCode",{parentName:"p"},"sco srm subscriptions list --profile [PROFILE_NAME]")),(0,o.yg)("h4",{id:"\u5217\u51fa\u914d\u7f6e"},"\u5217\u51fa\u914d\u7f6e"),(0,o.yg)("p",null,"\u5982\u679c\u9700\u8981\u5217\u51fa sco \u7684\u6240\u6709\u914d\u7f6e\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config profiles list"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco config profiles list\n")),(0,o.yg)("p",null,"sco \u4f1a\u5217\u51fa\u6240\u6709\u914d\u7f6e\u5e76\u663e\u793a\u54ea\u4e2a\u914d\u7f6e\u5904\u4e8e\u6fc0\u6d3b\u72b6\u6001\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"NAME IS_ACTIVE USERNAME ACCESS_KEY_ID ZONE\ndefault False user1 6DF253F796E24CBF99FF16F678F85627 cn-sh-01a\nprofile-1 False user1 FB328F12D1AB4CC7B31464133A68C2C4 cn-sh-01b\nprofile-2 True user1 5C03F435FB264B94BDEB440B067EE2DD cn-sh-01b\n\n")),(0,o.yg)("h4",{id:"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027"},"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027"),(0,o.yg)("p",null,"\u5982\u9700\u8bbe\u7f6e\u548c\u53d6\u6d88\u8bbe\u7f6e\u5f53\u524d\u6fc0\u6d3b\u914d\u7f6e\u4e2d\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config set")," \u548c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config unset"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco config set subscription [SUBSCRIPTION_NAME]\nsco config unset subscription\n")),(0,o.yg)("h4",{id:"\u67e5\u770b\u914d\u7f6e\u5c5e\u6027"},"\u67e5\u770b\u914d\u7f6e\u5c5e\u6027"),(0,o.yg)("p",null,"\u5982\u9700\u67e5\u770b\u914d\u7f6e\u4e2d\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config profiles describe"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco config profiles describe [PROFILE_NAME]\n")),(0,o.yg)("p",null,"\u5982\u679c\u9700\u8981\u67e5\u770b\u5f53\u524d\u6fc0\u6d3b\u914d\u7f6e\u4e2d\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config list"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco config list\n")),(0,o.yg)("p",null,"sco \u4f1a\u663e\u793a\u914d\u7f6e\u5c5e\u6027\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"access_key_id = '6DF253F796E24CBF99FF16F678F85627'\naccess_key_secret = '******'\nusername = 'user1'\nzone = 'cn-sh-01a'\n\nYour active profile is: [default]\n")),(0,o.yg)("h4",{id:"\u5220\u9664\u914d\u7f6e"},"\u5220\u9664\u914d\u7f6e"),(0,o.yg)("p",null,"\u5982\u9700\u5220\u9664\u914d\u7f6e\uff0c\u8bf7\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config profiles delete"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco config profiles delete [PROFILE_NAME]\n")),(0,o.yg)("p",null,"\u60a8\u65e0\u6cd5\u76f4\u63a5\u5220\u9664\u5f53\u524d\u6fc0\u6d3b\u914d\u7f6e\u3002\u5982\u679c\u9700\u8981\u5220\u9664\u5f53\u524d\u6fc0\u6d3b\u914d\u7f6e\uff0c\u9700\u8981\u5148\u901a\u8fc7 ",(0,o.yg)("inlineCode",{parentName:"p"},"sco cofnig profiles activate")," \u547d\u4ee4\u6fc0\u6d3b\u5176\u5b83\u7684\u914d\u7f6e\u3002"),(0,o.yg)("h3",{id:"\u914d\u7f6e\u5c5e\u6027\u7ba1\u7406"},"\u914d\u7f6e\u5c5e\u6027\u7ba1\u7406"),(0,o.yg)("p",null,"\u914d\u7f6e\u5c5e\u6027\u7528\u6765\u7ba1\u7406 sco \u7684\u884c\u4e3a\u3002sco \u4e2d\u7684\u4e00\u4e9b\u6807\u5fd7\u4e0e sco \u7684\u914d\u7f6e\u5c5e\u6027\u8bed\u4e49\u76f8\u540c\u3002\u6bd4\u5982 sco \u652f\u6301 ",(0,o.yg)("inlineCode",{parentName:"p"},"--subscription")," \u6807\u5fd7 \u548c ",(0,o.yg)("inlineCode",{parentName:"p"},"subscription")," \u5c5e\u6027\u3002\u5f53\u4e24\u8005\u90fd\u8bbe\u7f6e\u65f6\uff0c\u6807\u5fd7\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u5c5e\u6027\u3002"),(0,o.yg)("h4",{id:"\u5217\u51fa\u914d\u7f6e\u5c5e\u6027"},"\u5217\u51fa\u914d\u7f6e\u5c5e\u6027"),(0,o.yg)("p",null,"\u5982\u679c\u9700\u8981\u67e5\u770b\u5f53\u524d\u6fc0\u6d3b\u914d\u7f6e\u4e2d\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config list"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco config list\n")),(0,o.yg)("p",null,"sco \u4f1a\u663e\u793a\u914d\u7f6e\u5c5e\u6027\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"access_key_id = '6DF253F796E24CBF99FF16F678F85627'\naccess_key_secret = '******'\nusername = 'user1'\nzone = 'cn-sh-01a'\n\nYour active profile is: [default]\n")),(0,o.yg)("h4",{id:"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027-1"},"\u8bbe\u7f6e\u914d\u7f6e\u5c5e\u6027"),(0,o.yg)("p",null,"\u5982\u9700\u8bbe\u7f6e\u5f53\u524d\u6fc0\u6d3b\u914d\u7f6e\u4e2d\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config set"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco config set subscription [SUBSCRIPTION_NAME]\n")),(0,o.yg)("p",null,"\u5982\u9700\u8bbe\u7f6e ",(0,o.yg)("inlineCode",{parentName:"p"},"core")," \u90e8\u5206\u4e4b\u5916\u7684\u5c5e\u6027\uff0c\u60a8\u5fc5\u987b\u5148\u6307\u5b9a\u76f8\u5e94\u90e8\u5206\uff0c\u540e\u8ddf\u82f1\u6587\u53e5\u70b9\uff0c\u7136\u540e\u518d\u6307\u5b9a\u5c5e\u6027\u540d\u79f0\u3002\u6bd4\u5982\u8bbe\u7f6e ",(0,o.yg)("inlineCode",{parentName:"p"},"aec2")," \u90e8\u5206\u7684 ",(0,o.yg)("inlineCode",{parentName:"p"},"subscription")," \u5c5e\u6027\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco config set aec2.subscription [SUBSCRIPTION_NAME]\n")),(0,o.yg)("h4",{id:"\u53d6\u6d88\u914d\u7f6e\u5c5e\u6027"},"\u53d6\u6d88\u914d\u7f6e\u5c5e\u6027"),(0,o.yg)("p",null,"\u5982\u9700\u53d6\u6d88\u5f53\u524d\u6fc0\u6d3b\u914d\u7f6e\u4e2d\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528 ",(0,o.yg)("inlineCode",{parentName:"p"},"sco config unset"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco config unset subscription\n")),(0,o.yg)("h3",{id:"\u7ec4\u4ef6\u7ba1\u7406"},"\u7ec4\u4ef6\u7ba1\u7406"),(0,o.yg)("p",null,"sco \u7ec4\u4ef6\u63d0\u4f9b\u4e86\u5bf9\u5e94 sco \u5b50\u4ea7\u54c1\u7684\u547d\u4ee4\u884c\u64cd\u4f5c\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u5217\u51fa\u3001\u5b89\u88c5\u3001\u66f4\u65b0\u548c\u79fb\u9664 sco \u7ec4\u4ef6\u3002"),(0,o.yg)("h4",{id:"\u5217\u51fa\u7ec4\u4ef6"},"\u5217\u51fa\u7ec4\u4ef6"),(0,o.yg)("p",null,"\u5982\u9700\u67e5\u770b\u53ef\u7528\u7684\u7ec4\u4ef6\u4ee5\u53ca\u5f53\u524d\u5b89\u88c5\u7684\u7ec4\u4ef6\u7684\u5217\u8868\uff0c\u8bf7\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco components list"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-shell"},"sco components list\n")),(0,o.yg)("h4",{id:"\u5b89\u88c5\u7ec4\u4ef6"},"\u5b89\u88c5\u7ec4\u4ef6"),(0,o.yg)("p",null,"\u5982\u9700\u5b89\u88c5 sco \u7ec4\u4ef6\uff0c\u8bf7\u8fd0\u884c ",(0,o.yg)("inlineCode",{parentName:"p"},"sco components install"),"\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco components install [COMPONENT_NAME] \n")),(0,o.yg)("p",null,"\u4f60\u4e5f\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u6765\u4e00\u6b21\u5b89\u88c5\u6240\u6709\u7ec4\u4ef6\u3002"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco components install all\n")),(0,o.yg)("h4",{id:"\u5347\u7ea7\u7ec4\u4ef6"},"\u5347\u7ea7\u7ec4\u4ef6"),(0,o.yg)("p",null,"\u4f7f\u7528 ",(0,o.yg)("inlineCode",{parentName:"p"},"sco components upgrade")," \u547d\u4ee4\u5c06\u6240\u6709\u5df2\u5b89\u88c5\u7684\u7ec4\u4ef6\u5347\u7ea7\u4e3a\u6700\u65b0\u7248\u672c\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco components upgrade\n")),(0,o.yg)("h4",{id:"\u79fb\u9664\u7ec4\u4ef6"},"\u79fb\u9664\u7ec4\u4ef6"),(0,o.yg)("p",null,"\u4f7f\u7528 ",(0,o.yg)("inlineCode",{parentName:"p"},"sco components remove")," \u547d\u4ee4\u79fb\u9664\u6307\u5b9a\u7684\u7ec4\u4ef6\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco components remove [COMPONENT_NAME] \n")),(0,o.yg)("h4",{id:"\u66f4\u65b0\u7ec4\u4ef6\u5217\u8868"},"\u66f4\u65b0\u7ec4\u4ef6\u5217\u8868"),(0,o.yg)("p",null,"\u4f7f\u7528 ",(0,o.yg)("inlineCode",{parentName:"p"},"sco components update")," \u547d\u4ee4\u6765\u66f4\u65b0 sco \u7ec4\u4ef6\u5217\u8868\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"sco components update\n")))}m.isMDXComponent=!0}}]);