oci

Oracle Cloud 命令行接口

补充说明

oci 是 Oracle Cloud Infrastructure CLI,按服务组织命令,例如 oci compute、oci os、oci ce。它依赖 profile、tenancy OCID、region 和认证方式。

常用示例

oci setup config
oci iam user list
oci compute instance list --compartment-id <compartment-ocid>
oci compute instance launch \
  --compartment-id <compartment-ocid> \
  --availability-domain <ad> \
  --shape VM.Standard.E4.Flex \
  --image-id <image-ocid>
oci os object put --bucket-name my-bucket --file ./app.zip
oci os object get --bucket-name my-bucket --name app.zip --file ./app.zip
oci ce cluster create-kubeconfig \
  --cluster-id <cluster-ocid> --file ~/.kube/config
oci --profile prod --output table compute instance list \
  --compartment-id <compartment-ocid> --all

易错点与排错

相关命令