--- title: "getInitScriptDetail" slug: "cli-vserver-initscript-getinitscriptdetail" tags: ["VPC", "Server"] updated: 2026-09-17T10:08:33Z published: 2026-09-17T10:08:33Z canonical: "cli.ncloud-docs.com/cli-vserver-initscript-getinitscriptdetail" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getInitScriptDetail Available in VPC Get details of an init script. ## Syntax The `getInitScriptDetail` syntax is as follows: ``` ./ncloud vserver getInitScriptDetail \ --initScriptNo \ [--regionCode ] \ [--output ] ``` ## Options This section describes the options available when running `getInitScriptDetail`. ### Required options The following options are required for `getInitScriptDetail`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--initScriptNo` | String | Required | Init script number - See [getInitScriptList](/docs/en/cli-vserver-initscript-getinitscriptlist). | ### Common options For information about the options common to all `vserver` subcommands, see [Server (VPC) options](/docs/en/cli-vserver#%EC%98%B5%EC%85%98). ## Examples If the request to view details of an init script is successful, the script's identification information and content are returned. ### Command The command example is as follows: ``` ./ncloud vserver getInitScriptDetail \ --initScriptNo 12345678 \ --regionCode KR \ --output json ``` ### Output The output example is as follows: ``` { "getInitScriptDetailResponse": { "totalRows": 1, "initScriptList": [ { "initScriptNo": "12345678", "initScriptName": "test-init-script-01", "createDate": "2026-05-14T14:08:35+0900", "initScriptDescription": "Test init script for documentation", "initScriptContent": "#!/bin/bash\necho \"Hello from init script\"\nsudo apt-get update -y", "osType": { "code": "LNX", "codeName": "LINUX" } } ], "requestId": "c3d4e5f6-a7b8-9012-cdef-345678901234", "returnCode": "0", "returnMessage": "success" } } ```