{"id":43101,"date":"2026-03-02T08:31:00","date_gmt":"2026-03-02T07:31:00","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=43101"},"modified":"2026-03-02T10:27:44","modified_gmt":"2026-03-02T09:27:44","slug":"creating-an-oci-vm-with-the-command-line","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/","title":{"rendered":"Creating an Oracle Cloud Infrastructure VM Using the CLI"},"content":{"rendered":"\n<p>Oracle Cloud Infrastructure (OCI) provides an easy-to-use command line interface named <code>oci<\/code>, with which you can do a lot of administrative tasks. Let&#8217;s see in this blog how to create virtual machines in OCI with this.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-setting-up-oci-cli\">Setting up <code>oci-cli<\/code><\/h2>\n\n\n\n<p>If you are already connected to your OCI tenancy with the command line, you can skip this part. Otherwise, let&#8217;s begin.<\/p>\n\n\n\n<p>The first step is to install and configure the <code>oci-cli<\/code> utility. The full list of installation steps is available in the <a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/API\/SDKDocs\/cliinstall.htm\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a> and depends on the platform from which you want to administer OCI.<\/p>\n\n\n\n<p>On <strong>macOS<\/strong>, just run this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install oci-cli<\/code><\/pre>\n\n\n\n<p>Some <strong>Linux<\/strong> distributions (like OEL 7 or 8) come with the utility already installed. Otherwise, you can run the following command. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash -c \"$(curl -L https:\/\/raw.githubusercontent.com\/oracle\/oci-cli\/master\/scripts\/install\/install.sh)\"<\/code><\/pre>\n\n\n\n<p>Once this is installed, you need the connection information from your OCI account. You can finish the setup either by running the <code>oci setup config<\/code> command, which will ask for all the information needed, or by doing the following if you are not sure about the information required.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in the OCI interface, and go in your <em><strong>Profile &gt; User settings<\/strong><\/em><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"656\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png\" alt=\"\" class=\"wp-image-43114\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png 600w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1-274x300.png 274w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>In the <strong><em>User settings<\/em><\/strong> tab, click on <em><strong>Tokens and keys<\/strong><\/em>, and <em><strong>Add API key<\/strong><\/em><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"342\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_2-1024x342.png\" alt=\"\" class=\"wp-image-43115\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_2-1024x342.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_2-300x100.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_2-768x256.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_2-1536x513.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_2.png 1738w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Here, you have the option to <strong>generate a new key pair<\/strong> or to <strong>register an existing public key<\/strong>. Make sure to <strong>save the private key<\/strong> if you generate a new pair.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"334\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_3-1024x334.png\" alt=\"\" class=\"wp-image-43116\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_3-1024x334.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_3-300x98.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_3-768x251.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_3-1536x501.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_3-2048x669.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>After clicking on <strong><em>Add key<\/em><\/strong>, OCI will provide a configuration file that you can use.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"396\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-1024x396.png\" alt=\"\" class=\"wp-image-43125\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-1024x396.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-300x116.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-768x297.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-1536x595.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/Screenshot-2026-02-23-at-17.53.09.png 1638w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Edit this configuration file with the location of your private key and place it at <code>~\/.oci\/config<\/code><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; cat ~\/.oci\/config\n&#091;DEFAULT]\nuser=&lt;user_ocid&gt;\nfingerprint=&lt;fingerprint&gt;\ntenancy=&lt;tenancy_ocid&gt;\nregion=&lt;your_region&gt;\nkey_file=\/path\/to\/private_key.pem<\/code><\/pre>\n\n\n\n<p>And that&#8217;s it ! To test the connection, run the <code>oci iam region list<\/code> command. It should return a JSON document containing all the available regions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; oci iam region list\n{\n  \"data\": &#091;\n    {\n      \"key\": \"AMS\",\n      \"name\": \"eu-amsterdam-1\"\n    },\n    ...\n    {\n      \"key\": \"ZRH\",\n      \"name\": \"eu-zurich-1\"\n    }\n  ]\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-creating-your-first-vm-with-the-oci-cli\">Creating your first VM with the <code>oci<\/code> CLI<\/h2>\n\n\n\n<p>An OCI virtual machine is always created within a specific set of <strong>cloud components<\/strong>, for which you will have to retrieve the <strong>OCIDs<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Compartment<\/strong>: it can be the root compartment or any other compartment, but the user defined in the <code>.oci\/config<\/code> file should have access to it<\/li>\n\n\n\n<li><strong>Availability domain<\/strong>: depending on your OCI setup, you will have access to specific availability domains. We&#8217;ll see how to retrieve the correct one.<\/li>\n\n\n\n<li><strong>Subnet<\/strong>: public subnet in which the VM will be available.<\/li>\n\n\n\n<li><strong>Shape<\/strong>: shape of the VM.<\/li>\n\n\n\n<li><strong>Image<\/strong>: the OS image used to create the VM.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-retrieve-your-compartment-ocid\">Retrieve your compartment OCID<\/h4>\n\n\n\n<p>For the compartment, you can retrieve the list of all compartments with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; oci iam compartment list --all\n{\n  \"data\": &#091;\n    {\n      \"compartment-id\": \"compartment_ocid\",\n      \"defined-tags\": {\n        \"Oracle-Tags\": {\n          \"CreatedBy\": \"...\",\n          \"CreatedOn\": \"...\"\n        }\n      },\n      \"id\": \"compartment_ocid\",\n      \"inactive-status\": null,\n      \"is-accessible\": null,\n      \"lifecycle-state\": \"ACTIVE\",\n      \"name\": \"compartment_name\",\n      \"time-created\": \"...\"\n    },\n    ...\n}<\/code><\/pre>\n\n\n\n<p>If you know the name of the compartment you want to retrieve, you can get the OCID with this command. Just replace the <code>compartment_name<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; oci iam compartment list --compartment-id-in-subtree true -all --query \"data&#091;?name=='compartment_name'].id\" --raw-output\n&#091;\n  \"ocid.compartment...\"\n]<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-choose-an-availability-domain\">Choose an availability domain<\/h4>\n\n\n\n<p>If you don&#8217;t know it already, you can easily retrieve the availability domains available with the compartment OCID.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; oci iam availability-domain list --compartment-id ocid1.compartment.oc1... --query 'data&#091;].name' --raw-output\n&#091;\n  \"AlWD:EU-ZURICH-1-AD-1\"\n]<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-retrieve-the-subnet-ocid\">Retrieve the subnet OCID<\/h4>\n\n\n\n<p>In a basic configuration, you should use the OCID of the only public subnet available. Let&#8217;s display the subnet names and OCID to help you choose the correct one.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; oci network subnet list --compartment-id ocid1.compartment.oc1... --query \"data&#091;].{name:\\\"display-name\\\", ocid:id}\" --output table\n+--------------------+---------------------+\n| name               | ocid                |\n+--------------------+---------------------+\n| private subnet-vcn | ocid1.subnet.oc1... |\n| public subnet-vcn  | ocid1.subnet.oc1... |\n+--------------------+---------------------+<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-select-the-desired-shape\">Select the desired shape<\/h4>\n\n\n\n<p>You can list the available shapes with the <code>oci compute shape list<\/code> command. Because it contains a lot of useless information for us, we will filter it. Below is a display of all available shapes and whether they are resizable. Indeed, some shapes cannot be resized and come with specific CPU\/memory settings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; oci compute shape list --compartment-id ocid1.compartment.oc1... --query  \"data&#091;].{name:shape,resizable:\\\"is-flexible\\\"}\" --output table\n+------------------------+-----------+\n| name                   | resizable |\n+------------------------+-----------+\n| BM.Standard.E5.192     | False     |\n| BM.Standard.A1.160     | False     |\n| BM.Standard3.64        | False     |\n| BM.Standard2.52        | False     |\n| BM.Optimized3.36       | False     |\n| BM.Standard.E4.128     | False     |\n| BM.Standard.E3.128     | False     |\n| BM.Standard.E2.64      | False     |\n| BM.DenseIO2.52         | False     |\n| VM.Optimized3.Flex     | True      |\n| VM.Standard.E4.Flex    | True      |\n| VM.Standard.E3.Flex    | True      |\n| VM.Standard.A1.Flex    | True      |\n| VM.Standard2.1         | False     |\n| VM.Standard2.2         | False     |\n| VM.Standard2.4         | False     |\n| VM.Standard2.8         | False     |\n| VM.Standard2.16        | False     |\n| VM.Standard2.24        | False     |\n| VM.Standard.E2.1       | False     |\n| VM.Standard.E2.2       | False     |\n| VM.Standard.E2.4       | False     |\n| VM.Standard.E2.8       | False     |\n| VM.Standard.E2.1.Micro | False     |\n| VM.Standard3.Flex      | True      |\n| VM.DenseIO2.8          | False     |\n| VM.DenseIO2.16         | False     |\n| VM.DenseIO2.24         | False     |\n| VM.Standard.E5.Flex    | True      |\n+------------------------+-----------+<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-choose-a-specific-image\">Choose a specific image<\/h4>\n\n\n\n<p>Use the <code>oci compute image list<\/code> command to retrieve the available images inside your compartment. You might already have a name shape in mind, so just find the one you are interested in.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; oci compute image list --compartment-id ocid1.compartment.oc1... --query --query \"data&#091;].{name:\\\"display-name\\\",ocid:id}\" --all --output table\n+----------------------------------+--------------------+\n| name                             | ocid               |\n+----------------------------------+--------------------+\n| Windows-Server-2025-...          | ocid1.image.oc1... |\n| Oracle-Linux-9.7-2026.01.29-0    | ocid1.image.oc1... |\n| Oracle-Linux-8.10-2026.01.29-0   | ocid1.image.oc1... |\n| CentOS-8-Stream-2024.04.25-0     | ocid1.image.oc1... |\n| custom_image                     | ocid1.image.oc1... |\n+----------------------------------+--------------------+<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-build-your-first-virtual-machine\">Build your first virtual machine<\/h2>\n\n\n\n<p>You now have all the necessary information to create your own VM from the CLI ! Combine it together with the following flags, and you&#8217;re good to go:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--display-name<\/code>: Name of the virtual machine<\/li>\n\n\n\n<li><code>--assign-public-ip<\/code>: Whether to assign a public IP.<\/li>\n\n\n\n<li><code>--metadata<\/code>: Useful to add an ssh key to the default user.<\/li>\n\n\n\n<li><code>--shape-config<\/code>: If the shape you selected can be customized, you can select its attributes here, like <code>ocpus<\/code> or <code>memoryInGBs<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>At the end, we have the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oci compute instance launch \\\n    --compartment-id ocid1.compartment.oc1... \\\n    --availability-domain \"EiFV:EU-ZURICH-1-AD-1\" \\\n    --shape \"VM.Standard.E5.Flex\" \\\n    --shape-config '{\"ocpus\":1,\"memoryInGBs\":4}' \\\n    --subnet-id ocid1.subnet.oc1... \\\n    --image-id ocid1.image.oc1... \\\n    --display-name \"vm_dbi\" \\\n    --assign-public-ip true \\\n    --metadata '{\"ssh_authorized_keys\": \"ssh-rsa ssh_key_content== user@host\"}'<\/code><\/pre>\n\n\n\n<p>Of course, there are other options that you could use:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>--wait-for-state<\/code>: useful if you want to wait for the VM to be <code>RUNNING<\/code> before ending the command. It is very useful in combination with the <code>--query 'data.id'<\/code> option, which will give you the OCID of the newly created VM, that you can then use to retrieve its IP, among other things.<\/li>\n\n\n\n<li><code>--user-data-file<\/code>: this is especially useful if you want to add a custom <code>cloud-init.yaml<\/code> file for the VM setup.<\/li>\n\n\n\n<li><code>--boot-volume-size-in-gbs<\/code>: size of the boot volume, in GB.<\/li>\n<\/ul>\n\n\n\n<p>With this, you have everything you need for a basic VM creation in OCI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle Cloud Infrastructure (OCI) provides an easy-to-use command line interface named oci, with which you can do a lot of administrative tasks. Let&#8217;s see in this blog how to create virtual machines in OCI with this. Setting up oci-cli If you are already connected to your OCI tenancy with the command line, you can skip [&hellip;]<\/p>\n","protected":false},"author":152,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[955,2966],"tags":[2324,135,3870,1518,3876,1375,96,3872,2655],"type_dbi":[3874,3189,3871,3878,3877,3156,2728,3873,3875],"class_list":["post-43101","post","type-post","status-publish","format-standard","hentry","category-cloud","category-oci","tag-cli","tag-cloud","tag-compute","tag-create","tag-creation","tag-oci","tag-oracle","tag-shape","tag-vm","type-cli","type-cloud","type-compute","type-create","type-creation","type-oci","type-oracle","type-shape","type-vm"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Creating an Oracle Cloud Infrastructure VM Using the CLI - dbi Blog<\/title>\n<meta name=\"description\" content=\"Discover how to use the OCI command line interface to create Virtual Machines in the Oracle Cloud efficiently\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating an Oracle Cloud Infrastructure VM Using the CLI\" \/>\n<meta property=\"og:description\" content=\"Discover how to use the OCI command line interface to create Virtual Machines in the Oracle Cloud efficiently\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-02T07:31:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-02T09:27:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"656\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Julien Delattre\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Julien Delattre\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/\"},\"author\":{\"name\":\"Julien Delattre\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/764ab019cc9dec42655b4c6b9b8e474e\"},\"headline\":\"Creating an Oracle Cloud Infrastructure VM Using the CLI\",\"datePublished\":\"2026-03-02T07:31:00+00:00\",\"dateModified\":\"2026-03-02T09:27:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/\"},\"wordCount\":740,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png\",\"keywords\":[\"CLI\",\"Cloud\",\"compute\",\"create\",\"creation\",\"OCI\",\"Oracle\",\"shape\",\"VM\"],\"articleSection\":[\"Cloud\",\"OCI\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/\",\"name\":\"Creating an Oracle Cloud Infrastructure VM Using the CLI - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png\",\"datePublished\":\"2026-03-02T07:31:00+00:00\",\"dateModified\":\"2026-03-02T09:27:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/764ab019cc9dec42655b4c6b9b8e474e\"},\"description\":\"Discover how to use the OCI command line interface to create Virtual Machines in the Oracle Cloud efficiently\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png\",\"width\":600,\"height\":656},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating an Oracle Cloud Infrastructure VM Using the CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/764ab019cc9dec42655b4c6b9b8e474e\",\"name\":\"Julien Delattre\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/a97d00e680bbf237126e24b65281cbcb66cd20bd1ed2d14bf928991b2bf68eb5?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a97d00e680bbf237126e24b65281cbcb66cd20bd1ed2d14bf928991b2bf68eb5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a97d00e680bbf237126e24b65281cbcb66cd20bd1ed2d14bf928991b2bf68eb5?s=96&d=mm&r=g\",\"caption\":\"Julien Delattre\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/juliendelattre\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Creating an Oracle Cloud Infrastructure VM Using the CLI - dbi Blog","description":"Discover how to use the OCI command line interface to create Virtual Machines in the Oracle Cloud efficiently","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Creating an Oracle Cloud Infrastructure VM Using the CLI","og_description":"Discover how to use the OCI command line interface to create Virtual Machines in the Oracle Cloud efficiently","og_url":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/","og_site_name":"dbi Blog","article_published_time":"2026-03-02T07:31:00+00:00","article_modified_time":"2026-03-02T09:27:44+00:00","og_image":[{"width":600,"height":656,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png","type":"image\/png"}],"author":"Julien Delattre","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Julien Delattre","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/"},"author":{"name":"Julien Delattre","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/764ab019cc9dec42655b4c6b9b8e474e"},"headline":"Creating an Oracle Cloud Infrastructure VM Using the CLI","datePublished":"2026-03-02T07:31:00+00:00","dateModified":"2026-03-02T09:27:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/"},"wordCount":740,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png","keywords":["CLI","Cloud","compute","create","creation","OCI","Oracle","shape","VM"],"articleSection":["Cloud","OCI"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/","url":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/","name":"Creating an Oracle Cloud Infrastructure VM Using the CLI - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png","datePublished":"2026-03-02T07:31:00+00:00","dateModified":"2026-03-02T09:27:44+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/764ab019cc9dec42655b4c6b9b8e474e"},"description":"Discover how to use the OCI command line interface to create Virtual Machines in the Oracle Cloud efficiently","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2026\/03\/oci_setup_1-1.png","width":600,"height":656},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating an Oracle Cloud Infrastructure VM Using the CLI"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/764ab019cc9dec42655b4c6b9b8e474e","name":"Julien Delattre","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a97d00e680bbf237126e24b65281cbcb66cd20bd1ed2d14bf928991b2bf68eb5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a97d00e680bbf237126e24b65281cbcb66cd20bd1ed2d14bf928991b2bf68eb5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a97d00e680bbf237126e24b65281cbcb66cd20bd1ed2d14bf928991b2bf68eb5?s=96&d=mm&r=g","caption":"Julien Delattre"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/juliendelattre\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/43101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/152"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=43101"}],"version-history":[{"count":21,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/43101\/revisions"}],"predecessor-version":[{"id":43281,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/43101\/revisions\/43281"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=43101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=43101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=43101"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=43101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}