Skip to main content

Overview

sutro.config.json links a local folder to a Sutro Project and Application. CLI commands that operate on a project, such as sutro dev, sutro validate, sutro publish, sutro status, and sutro openapi, read this file from the current working directory. Create the file with:

File format

Example:
Fields: entryFile must point to a file inside the project directory.

Creating config

Create a new Project and Application:
Create a new Application inside an existing Project:
Link an existing Application:
Use a custom entry file:

Source upload behavior

When the CLI uploads SLang source, it sends:
  • The configured entryFile.
  • Every .slang file under the project directory.
  • Paths relative to the project directory.
The CLI skips generated and vendor directories:

Multi-file projects

Local imports work with multi-file projects. For example:
app.slang can import models.slang:
models.slang can define shared models:
When you run sutro dev, sutro validate, or sutro publish, the CLI uploads both files.