reminix.json
reminix.json customizes a script. You can publish a folder without
one (see Publishing a folder).
Add it when you want more than the defaults:
- a form with labels and examples for its inputs, and a box of several lines for long text
- a description and tags
- the hosts and secrets it may use
- a longer timeout
- how to run and install code the folder doesn’t describe
The file sits beside the code. reminix upload and reminix publish
read it, and reminix init "<command>" writes a first one for you. To
publish on every merge, see
Publish from GitHub.
{ "slug": "unlock-account", "name": "Unlock an account", "description": "Lets a customer sign in again after too many attempts.", "command": "python unlock.py {email}", "inputSchema": { "type": "object", "required": ["email"], "properties": { "email": { "type": "string", "title": "Customer email", "examples": ["jane@example.com"] } } }, "hosts": ["api.yourapp.com"], "tags": ["support", "accounts"]}The script
Section titled “The script”These fields name and describe the script. The first publish creates
the script. When reminix.json has no name, the first publish takes
one from pyproject.toml or package.json, or else from the folder.
| Field | Description |
|---|---|
slug | The script's id in URLs and commands. It's 2 to 64 lowercase letters, digits and dashes, starts with a letter, and is unique in the workspace. |
name | The name people see in the app. |
description | What the script does, in a sentence or two. |
From the API's Create a script.
Each version
Section titled “Each version”These fields say how the script runs. Every upload, with
reminix upload or reminix publish, sends them as a new version.
| Field | Description |
|---|---|
command | The command a run executes. Each {name} in it is an input, and Reminix drops a part inside [ … ] when its inputs are empty. Reminix runs the command as arguments, never through a shell. If you leave it out, Reminix works it out from the folder, or returns 400 saying what to add. |
install | A command that replaces the usual install. The usual install puts Python packages from requirements.txt, or else pyproject.toml, into .deps, and installs package.json with npm. Your command runs in the folder, and it can reach the package registries. |
inputSchema | The inputs, as JSON Schema. If you leave it out, each {name} in the command becomes a required text input, or an optional one inside [ … ]. A text input with "format": "multiline" gets a box of several lines in the run form. |
outputSchema | What the script returns on standard output, as JSON Schema. |
hosts | The only hosts the script can reach, over HTTPS. If you leave it out, the script has no network access. |
secrets | The secrets to attach to requests to some of hosts, by name. In each environment, the secret's value must allow at least one of those hosts. |
envVars | Secrets the script reads as environment variables. Each secret must allow this with allowEnvVar. |
timeoutSeconds | How long a run can take, in seconds. The default is 30. With more than 30, the script's runs are long runs. A long run returns 202 at once. It shows a live log and progress, and you can cancel it. Long runs need the Pro plan or above. |
tags | If given, these become the script's tags. |
From the API's Upload a version.
The CLI fills in the rest. It sends the source, which is the folder’s
files without installed dependencies, caches or .env files. It also
sends the README.md beside reminix.json, and the script’s page
shows it.
Settings the file locks
Section titled “Settings the file locks”A setting in reminix.json belongs to the file. The latest version’s
file decides which settings it locks.
| The script’s | When reminix.json sets it |
When it doesn’t |
|---|---|---|
| Name | Each upload sets it from the file. It can’t change in the app or with PATCH /v1/scripts/{slug}. |
It keeps the name from the first publish, or the one you set. |
| Description | The same as the name. | You can change it with PATCH /v1/scripts/{slug}. |
| Tags | The same. The app shows them with “Set in reminix.json”. | You can change them in the app’s Edit settings. |
To change a locked setting, edit reminix.json and publish again. To
manage it in the app instead, remove it from reminix.json and publish.
A change to a locked setting with PATCH /v1/scripts/{slug} returns
409 conflict and names the file. A script’s setInFile lists its locked
settings.
These never come from the file, so you change them in the app or the API:
- who can see and run the script, and its teams
- which runs need approval
- schedules and triggers
- environments and secret values
More on each field
Section titled “More on each field”commandand its{name}placeholders: The commandinputSchemaandoutputSchema: Inputs, output and the log, Defaults and examples and Long textinstall: Dependencies and the machinehostsandsecrets: Calling APIs and Secretstags: Finding scriptstimeoutSeconds: Long runs