---
title: "Get pre-launch script"
method: GET
path: "/api/v1/cvms/{cvm_id}/pre-launch-script"
tags: ["CVMs"]
---

# Get pre-launch script

`GET /api/v1/cvms/{cvm_id}/pre-launch-script`

Returns the shell script that runs before containers start.

## Path parameters

- `cvm_id` string, required

## Response `200`

Pre-launch shell script content

- string

## Other responses

- `401` — Authentication required
- `403` — CVM not in workspace
- `404` — CVM not found
- `422` — Validation Error

---

[API](https://skmtc.net/phala/apis/phala-cloud-api.md) · [All operations](https://skmtc.net/phala/apis/phala-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phala/phala-cloud-api/versions/83c6ae62e860/schema)
