{"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-02T08:31:00","modified_gmt":"2026-03-02T07:31:00","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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 id=\"h-setting-up-oci-cli\" class=\"wp-block-heading\">Setting up <code>oci-cli<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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\/2026\/03\/oci_setup_1-1.png\" alt=\"\" class=\"wp-image-43114\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_1-1.png 600w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/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\/2026\/03\/oci_setup_2-1024x342.png\" alt=\"\" class=\"wp-image-43115\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_2-1024x342.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_2-300x100.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_2-768x256.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_2-1536x513.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_2.png 1738w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"nv-cv-m 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\/2026\/03\/oci_setup_3-1024x334.png\" alt=\"\" class=\"wp-image-43116\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_3-1024x334.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_3-300x98.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_3-768x251.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_3-1536x501.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_3-2048x669.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"nv-cv-m 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\/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\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-1024x396.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-300x116.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-768x297.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/Screenshot-2026-02-23-at-17.53.09-1536x595.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/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=\"nv-cv-d nv-cv-m 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 class=\"wp-block-paragraph\">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 id=\"h-creating-your-first-vm-with-the-oci-cli\" class=\"wp-block-heading\">Creating your first VM with the <code>oci<\/code> CLI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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=\"nv-cv-d nv-cv-m 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 id=\"h-retrieve-your-compartment-ocid\" class=\"wp-block-heading\">Retrieve your compartment OCID<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 id=\"h-choose-an-availability-domain\" class=\"wp-block-heading\">Choose an availability domain<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">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 id=\"h-retrieve-the-subnet-ocid\" class=\"wp-block-heading\">Retrieve the subnet OCID<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">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 id=\"h-select-the-desired-shape\" class=\"wp-block-heading\">Select the desired shape<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">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 id=\"h-choose-a-specific-image\" class=\"wp-block-heading\">Choose a specific image<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Use the <code>oci compute image list<\/code> command to retrieve the available images inside your compartment. You might already have an image name 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 \"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 id=\"h-build-your-first-virtual-machine\" class=\"wp-block-heading\">Build your first virtual machine<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You now have all the necessary information to create your 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=\"nv-cv-d nv-cv-m 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 class=\"wp-block-paragraph\">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 \"AlWD: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 class=\"wp-block-paragraph\">Of course, there are other options that you could use:<\/p>\n\n\n\n<ul class=\"nv-cv-d nv-cv-m 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 class=\"wp-block-paragraph\">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;&nbsp;<\/p>\n","protected":false},"author":152,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[955,2966],"tags":[2324,1518,96,2655],"class_list":["post-43101","post","type-post","status-publish","format-standard","category-cloud","category-oci","tag-cli","tag-create","tag-oracle","tag-vm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.8 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Creating an Oracle Cloud Infrastructure VM using the CLI - dbi services 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 services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-02T07:31:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/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:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\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\\\/0e990b04385bd7ff84b414bb8d92c544\"},\"headline\":\"Creating an Oracle Cloud Infrastructure VM using the CLI\",\"datePublished\":\"2026-03-02T07:31:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/creating-an-oci-vm-with-the-command-line\\\/\"},\"wordCount\":739,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"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\\\/2026\\\/03\\\/oci_setup_1-1.png\",\"keywords\":[\"CLI\",\"create\",\"Oracle\",\"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 services 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\\\/2026\\\/03\\\/oci_setup_1-1.png\",\"datePublished\":\"2026-03-02T07:31:00+00:00\",\"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\\\/2026\\\/03\\\/oci_setup_1-1.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/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\":\"Home\",\"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 services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"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\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0e990b04385bd7ff84b414bb8d92c544\",\"name\":\"Julien Delattre\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/JDE_Web-1-scaled.jpg\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/JDE_Web-1-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/JDE_Web-1-scaled.jpg\",\"caption\":\"Julien Delattre\"},\"description\":\"Julien Delattre, member of the Oracle Team Zurich, has more than five years of experience specializing in Oracle databases, plus expertise in MariaDB and MongoDB. Prior to dbi services, he was a Database Administrator at Atos in Angers, France, and a Data Scientist at Air France in Paris and Apurata in Lima. Julien holds a Master's degree in Computer Science, Data Science, and Statistics from Centrale Paris \\\/ Universit\u00e9 Paris-Saclay.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/julien-delattre\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Creating an Oracle Cloud Infrastructure VM using the CLI - dbi services 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 services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2026-03-02T07:31:00+00:00","og_image":[{"width":600,"height":656,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/03\/oci_setup_1-1.png","type":"image\/png"}],"author":"Julien Delattre","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","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\/0e990b04385bd7ff84b414bb8d92c544"},"headline":"Creating an Oracle Cloud Infrastructure VM using the CLI","datePublished":"2026-03-02T07:31:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/creating-an-oci-vm-with-the-command-line\/"},"wordCount":739,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"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\/2026\/03\/oci_setup_1-1.png","keywords":["CLI","create","Oracle","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 services 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\/2026\/03\/oci_setup_1-1.png","datePublished":"2026-03-02T07:31:00+00:00","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\/2026\/03\/oci_setup_1-1.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/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":"Home","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 services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"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":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0e990b04385bd7ff84b414bb8d92c544","name":"Julien Delattre","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/05\/JDE_Web-1-scaled.jpg","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/05\/JDE_Web-1-scaled.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/05\/JDE_Web-1-scaled.jpg","caption":"Julien Delattre"},"description":"Julien Delattre, member of the Oracle Team Zurich, has more than five years of experience specializing in Oracle databases, plus expertise in MariaDB and MongoDB. Prior to dbi services, he was a Database Administrator at Atos in Angers, France, and a Data Scientist at Air France in Paris and Apurata in Lima. Julien holds a Master's degree in Computer Science, Data Science, and Statistics from Centrale Paris \/ Universit\u00e9 Paris-Saclay.","url":"https:\/\/www.dbi-services.com\/blog\/author\/julien-delattre\/"}]}},"_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":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/43101\/revisions"}],"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"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}