Skip to content

Conversation

@keugenek
Copy link
Contributor

Summary

  • Add databricks_template_schema.json to enable the appkit template to be used by the Databricks CLI init-template command
  • Restructure template directory to template/{{.project_name}}/ format expected by the DAB template system

Background

The CLI's experimental aitools tools init-template app command needs to use the appkit repo's template instead of its embedded template (which is out of sync with the SDK). This PR adds the required schema file and directory structure.

Test plan

  • CLI can initialize apps using this template
  • Generated apps build and run successfully

🤖 Generated with Claude Code

keugenek and others added 3 commits January 21, 2026 11:35
This enables the appkit template to be used by the Databricks CLI
init-template command. Changes:

- Add databricks_template_schema.json with project_name, sql_warehouse_id,
  profile, and app_description properties
- Restructure template to template/{{.project_name}}/ directory format
  expected by DAB template system

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add all feature composition variables (dotenv, dotenv_example, app_env,
bundle_variables, bundle_resources, target_variables) with empty defaults
so the template can be used standalone without features enabled.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add plugin_import and plugin_usage variables with analytics defaults
- Rename server.ts to server.ts.tmpl so template variables get processed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
keugenek added a commit to databricks/cli that referenced this pull request Jan 21, 2026
Instead of using the CLI's embedded appkit template (which is out of sync
with the SDK), use the template from https://github.com/databricks/appkit.

This fixes the getRequestContext API mismatch issue where generated apps
use an API that doesn't exist in the @databricks/appkit SDK.

See: #4339
Depends on: databricks/appkit#60

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Rename package.json to package.json.tmpl so that {{.project_name}} and
{{.app_description}} variables get processed.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@MarioCadenas
Copy link
Collaborator

hey @keugenek we are not going to use that command any more, the tools should now use the new init template instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants