---
title: Can I Add a Startup Script Using the Vultr API or CLI?
url: https://docs.vultr.com/support/products/orchestration/startup-scripts/can-i-add-a-startup-script-using-the-vultr-api-or-cli
description: Yes. The Vultr API and CLI can create, update, and delete startup scripts, and attach one to an instance at deploy time.
publish_date: 2025-11-20T17:54:20.577595Z
last_updated: 2026-10-26T23:29:36.347878Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt


Yes. Vultr provides full support for managing [Startup Scripts](https://docs.vultr.com/products/orchestration/startup-scripts) through both the **Vultr API** and **Vultr CLI**, allowing automation and integration with your deployment workflows.

## Using Vultr API

The [Startup Scripts API endpoints](https://www.vultr.com/api/#tag/startup) allow you to:

* Create, update, and delete startup scripts programmatically.
* Retrieve script details and list all scripts associated with your account.
* [Assign scripts to instances during deployment](https://www.vultr.com/api/#tag/instances/operation/create-instance) by specifying the `script_id` in your API request.

## Using Vultr CLI

The [Vultr CLI](https://docs.vultr.com/reference/vultr-cli/script) supports similar operations, including:

* Adding, updating, and removing startup scripts.
* Listing available scripts.
* [Deploying instances with a chosen startup script](https://docs.vultr.com/reference/vultr-cli/instance/create) by providing the `--script-id` flag during provisioning.

Managing startup scripts via the API or CLI enables repeatable, automated deployments and integrates with configuration management or CI/CD pipelines for seamless instance initialization.