@datadog/create-apps
v0.0.4
Published
Create Datadog Apps
Readme
@datadog/create-apps
Scaffolding CLI for creating new Datadog Apps.
Usage
npm init @datadog/apps
# or
yarn init @datadog/appsFollow the interactive prompts to:
- Enter your app name
- Select a template
Your new Datadog App will be created in a directory named after your app.
Templates
vite-react— A basic React application bundled with Vite.
Options
You can pass a target directory as the first positional argument, plus any of the flags below:
npm init @datadog/apps my-app --template vite-react -y<directory>
Target directory for the new app. If omitted, you'll be prompted.
--template <name>
Skip the template prompt and use the named template (e.g. vite-react).
--yes, -y
Accept all defaults without prompting.
--overwrite
Overwrite an existing target directory without prompting.
--skip-post-scaffold
Skip automatic setup commands (dependency installation, git initialization, etc.).
--validate
Validate the bundled templates and exit. Intended for CI / development of this CLI.
What Gets Created
The CLI will:
- Create a new directory for your app
- Generate all necessary files from the selected template
- Integrate Datadog features like ErrorTracking, Metrics, and more... thanks to our build-plugins.
- Optionally run setup commands (install dependencies, initialize git)
Next Steps
After your app is created:
cd your-app-name
npm run dev # local dev server
npm run build # dry-run production build (no upload)
npm run upload # build and upload to Datadog (requires DD_API_KEY / DD_APP_KEY)Refer to your app's generated AGENTS.md for specific instructions.
License
MIT
