QuickInfraQuickInfraDocs
Open Console
manage

Custom Scripts

Custom Scripts give you a centralised library of shell scripts that can be executed directly on your servers through the Deployment section. Write them manually, or let QuickInfra's built-in AI generate them for you in seconds.

What are Custom Scripts?

Custom Scripts are reusable automation scripts stored inside QuickInfra and available for execution across your infrastructure. Think of them as your team's shared playbook — server configuration routines, software installation sequences, cleanup jobs, health checks, and anything else you would otherwise run manually over SSH.

QuickInfra supports a wide range of script types to cover every layer of your infrastructure automation stack — Linux Shell for server configuration, Ansible for configuration management and orchestration, CloudFormation for AWS infrastructure as code, PowerShell for Windows server automation, and custom Terraform scripts for provisioning cloud resources across any provider.

Once a script is saved, it becomes available in the Deployment section where it can be attached to a deployment project and executed on target servers automatically. This eliminates the need to maintain separate script repositories or manually copy files to servers.

Note:Scripts created here are reusable across multiple deployment projects. Update a script once and every project referencing it picks up the change automatically.
Custom Scripts creation form with AI Generator in QuickInfra
The Custom Scripts form — write scripts manually or use the AI Generator to create them from a plain-English prompt.

Two Ways to Create a Script

QuickInfra gives you two modes when creating or editing a script — Manual Entry and the AI Generator. Both produce the same output: a saved, executable script in your library.

Manual Entry

1
Open the Scripts list
Navigate to Manage → Custom Scripts. You will see all existing scripts with their name, type, status, and tags. Click New to create a fresh script.
2
Fill in Basic Information
Enter a Script Name that clearly identifies what the script does. Select the Script Type — choose from Linux Shell, Ansible, CloudFormation, PowerShell, or Terraform depending on your use case. Set the Status to Active so it is available in deployments. Add a brief Description and optional Script Tagssuch as aws, ubuntu, or nginx for easier filtering later.
3
Write your script
In the Generated Script Output editor, type or paste your shell script directly. The editor supports full script syntax. You can add script parameters in the Script Parameters field if your script accepts runtime arguments.
4
Save the script
Click Save. The script is immediately available in your library and can be referenced from any deployment project.

AI Generator

The AI Generator is a built-in assistant powered by Claude that writes shell scripts for you based on a plain-English description. It is particularly useful when you need a script quickly or are unsure of the exact syntax for a complex operation.

1
Switch to AI Generator mode
On the script form, click the AI Generator tab at the top. You will see the AI Controls panel appear on the right side of the screen.
2
Select an AI model
Choose your preferred AI model from the dropdown. Claude 3.7 Sonnet is selected by default and recommended for the most accurate and production-ready script output.
3
Describe what you need
In the AI Prompt field, describe the script in plain English. For example: "Install Nginx on Ubuntu 22.04, enable it on startup, and open port 80 on the firewall."Be as specific as possible — the more context you give, the better the output.
4
Execute AI and review
Click Execute AI. With Enable Streaming Response turned on, you will see the script appear in the output editor in real time. Review the generated code carefully before saving — edit any section that needs adjustment.
Tip:You can use the AI Generator to edit an existing script too — paste the current script into the prompt context and describe the changes you need. The AI will rewrite it accordingly.
Warning:Always review AI-generated scripts before executing them on production servers. The AI Generator is a productivity tool — final responsibility for script safety rests with you.

Managing Existing Scripts

From the Custom Scripts list you can view, edit, and configure any saved script. Use the search and tag filters to find scripts quickly across a large library. Inactive scripts remain in the list but are not available for selection in deployment projects.

Key Things to Know

  • Scripts are executed on target servers via the Deployment Projects section — they cannot be run directly from this screen.
  • Use Script Tags to categorise scripts by technology or purpose for faster discovery.
  • The AI Generator runs on a pre-configured AI account provided by QuickInfra — no setup required. Support for bringing your own AI model is coming in a future update.
  • Script Parameters allow you to pass dynamic values at execution time without editing the script itself.
  • Deleting a script that is referenced by an active deployment project will cause that project to fail — deactivate instead of delete.
Previous
Cloud Accounts
Next
VM Instances