-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
@agentuity/cliCLI packageCLI package
Description
Description
When importing a project that includes a database from one organization to another using agentuity project import, the database is not automatically provisioned in the new org. Running the dev server fails with an unclear error that doesn't guide the user toward the resolution.
Steps to Reproduce
- Create a project in Org A that includes an Agentuity-provisioned database
- Import the project into Org B using
agentuity project import - Run
bun run devto start the dev server
Expected Behavior
Either:
- The database should be automatically provisioned in the new org during import, OR
- The CLI should detect the missing database dependency and provide a clear, actionable error message such as:
"This project requires a database. Run
agentuity db createto provision one, then set the DATABASE_URL environment variable."
Actual Behavior
The dev server fails with the following error:
[ERROR] Failed to import generated app from /Users/johndoe/Dev/my-project/.agentuity/app.js: DATABASE_URL environment variable is required for authentication
✗ Failed to start dev server: Error: Failed to load generated app: DATABASE_URL environment variable is required for authentication
Workaround
Manually provision a new database and set the DATABASE_URL environment variable.
Metadata
Metadata
Assignees
Labels
@agentuity/cliCLI packageCLI package