init command generates starter configuration files for your Upsun project.
Usage
upsun init, you can choose how to generate your starter configuration files. You can either:
- Use AI to analyze your project and generate a configuration automatically.
- Follow a guided setup, which does not use AI.
AI configuration
The AI option analyzes the repository locally and sends a sanitized “digest” to the Upsun API, which then contacts our AI provider. You can view the repository digest by runningupsun init --digest. The digest contains:
tree: a concise list of the files in the repositoryreports: a list of findings for each directory in the repository, including identified frameworks or build toolsselected_files: the contents of a few files that look particularly relevant for configuration, includingREADME.mdandDockerfile
Privacy
Neither Upsun nor our AI providers will use your data for AI model training.
gitleaks.
Output
For both the AI and non-AI processes, the expected result is valid YAML. In many cases, the result is an acceptable starter configuration for the project.AI can make convincing-looking mistakes, and projects can be very diverse in layout.Be sure to review and edit your configuration to suit your needs.
.upsun/config.yaml file in your project root. This config file contains:
- Application configuration (see the App reference)
- Service definitions (see Add services)
- Route configurations (see Define routes)
upsun init, you can deploy your project as follows:
init command options
| Option | Description |
|---|---|
--ai | Use AI configuration (use --ai=false to disable) |
--digest | Only show the repository digest (AI input) without sending it |
--yes (-y) | Answer “yes” to confirmation questions and accept defaults (including overwriting existing configuration, if it exists). Implies --no-interaction. |
--no-interaction | Don’t ask interactive questions; accept default values |