# create-bedframe

> @bedframe/cli - standalone MAKE command

Latest version **0.1.1** (published 2026-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-bedframe
pnpm add create-bedframe
yarn add create-bedframe
bun add create-bedframe
```

Provides the command `create-bedframe`.

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2026-03-10 |
| First published | 2023-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 14.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 582 |
| Author | Joe Nyaggah |
| Maintainers | nyaggah |

## Links

- npm: https://www.npmjs.com/package/create-bedframe
- Repository: https://github.com/nyaggah/bedframe
- Homepage: https://github.com/nyaggah/bedframe#readme
- Issues: https://github.com/nyaggah/bedframe/issues
- npm.io page: https://npm.io/package/create-bedframe

## Dependencies (2)

- [@bedframe/cli](https://npm.io/package/@bedframe/cli.md) ^0.1.1
- [@bedframe/core](https://npm.io/package/@bedframe/core.md) ^0.1.0

## Recent versions

- 0.1.1 (latest) — 2026-03-10
- 0.1.0 — 2026-03-10
- 0.0.54 — 2025-06-22
- 0.0.53 — 2025-06-22
- 0.0.52 — 2025-06-22
- 0.0.51 — 2025-06-18
- 0.0.50 — 2025-03-04
- 0.0.49 — 2024-12-10
- 0.0.48 — 2024-11-21
- 0.0.47 — 2024-11-20
- 0.0.46 — 2024-10-12
- 0.0.45 — 2024-10-09
- 0.0.44 — 2024-08-08
- 0.0.43 — 2024-08-07
- 0.0.42 — 2024-07-30
- … 39 more at https://npm.io/package/create-bedframe/versions

## README

<div>
  >_<br />
  <br />
  <span style="color:#c792e9">B R O W S E R</span><br />
  <span style="color: #c3e88d">E X T E N S I O N</span><br />
  <span style="color: #8addff">D E V E L O P M E N T</span><br />
  <span style="color: #ffcb6b">F R A M E W O R K</span><br />
</div>

<br />

<p align="left">
  <a aria-label="Bedframe logo" href="https://bedframe.dev">
    <img src="https://img.shields.io/badge/BEDFRAME-7a46fc.svg?style=for-the-badge&logo=Bedframe&labelColor=CCC">
  </a>
  <a aria-label="@bedframe/core - NPM version" href="https://www.npmjs.com/package/@bedframe/core">
    <img alt="" src="https://img.shields.io/npm/v/@bedframe/core.svg?style=for-the-badge&labelColor=000000">
  </a>
  <a aria-label="@bedframe/cli - NPM version" href="https://www.npmjs.com/package/@bedframe/cli">
    <img alt="" src="https://img.shields.io/npm/v/@bedframe/cli.svg?style=for-the-badge&labelColor=000000">
  </a>
  <a aria-label="License" href="https://github.com/nyaggah/bedframe/blob/main/LICENSE">
    <img alt="" src="https://img.shields.io/npm/l/next.svg?style=for-the-badge&labelColor=000000">
  </a>
</p>

## **create-bedframe**

Standalone [@bedframe/cli](https://github.com/nyaggah/bedframe/tree/main/packages/cli) `make` command utility

## Scaffolding Your First Bedframe Project

<blockquote>
<br />
<strong>Compatibility Note</strong><br/>
Bedframe uses the offically supported Vite template presets. Vite requires <a href="https://nodejs.org/en" target="_blank">Node.js</a> version 14.18+, 16+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.
<br /><br />
</blockquote>

<br />

```bash
#  with pnpm
pnpm dlx create-bedframe@latest

# with npx
npx create-bedframe@latest

# with yarn
yarn create-bedframe@latest

```

Then follow the prompts!

You can specify the `project name` as the first argument of the `make` command. Using `.` for the `project name` will scaffold the project in the current directory.

```bash
# scaffold project called `chrome-extension`

# with pnpm
pnpm dlx create-bedframe@latest chrome-extension

# with npx
npx create-bedframe@latest chrome-extension

# with yarn
yarn create-bedframe@latest chrome-extension
```

```bash
# scaffold project in the current directory

# with pnpm
pnpm dlx create-bedframe@latest .

# with npx
npx create-bedframe@latest .

# with yarn
yarn create-bedframe@latest .
```

You will then be prompted to configure your BED, picking `Framework`, `Language`, `Browser` to target, etc. All configurations can be manually edited once you generate the project.

### Create Bedframe

`create-bedframe` is a scaffolding utility that creates a BED environment based on your chosen configuration of features you choose, and delegates the rest to Vite. Projects scaffolded this way can directly leverage the Vite plugin ecosystem which is Rollup-compatible. You end up with a familiar Vite-powered project you're used to.

### Args

<details>
  <summary>Name</summary>
  
  The CLI `name` argument sets manifests' `name` property (required) which is a short, plain text string (maximum of 45 characters) that identifies the extension. For example:
  
  ```json
  {
    "name": "My extension name"
  }
  ```
  
  You can specify a locale-specific string; see [Internationalization](#) for details.
  
  It is displayed in the following locations:
  
  - Install dialog
  - Extensions page (chrome://extensions)
  - [Chrome Web Store](https://chrome.google.com/webstore)
  
  See also [Short Name](#).
  
</details>

### Flags / Options

You can optionally by-pass the prompts if you pass in the requisite flags to the `make` command.

As an example, to scaffold a multi-extension project i.e. BED environment targeting Chrome, Brave, Opera and Edge browsers you can run:

```bash
$ bedframe make multi-extension-project \
  --version 0.0.1  \
  --browsers chrome, brave, opera, edge \
  --packageManager yarn \
  --framework react \
  --language typescript \
  --style Styled Components \
  --lintFormat \
  --git \
  --gitHooks \
  --tests \
  --commitLint \
  --changesets \
  --installDeps \
```

If any required configuration isn't passed in via `flags` the CLI will prompt you for the missing requirements.

### Options

| Flag (short) | Flag (long)            | Type           | Description                                     | Default    |
| ------------ | ---------------------- | -------------- | ----------------------------------------------- | ---------- |
| -v           | --version              | string         | Specify project version                         | 0.0.1      |
| -b           | --browsers             | Browser[]      | Specify comma-separated list of target browsers | chrome     |
| -p           | --packageManager&nbsp; | PackageManager | Specify package manager to use                  | yarn       |
| -f           | --framework            | Framework      | Specify framework to use                        | react      |
| -l           | --language             | Language       | Specify language to use                         | typescript |
| -s           | --style                | Style          | Specify CSS solution to use                     | tailwind   |
| -o           | --lintFormat           | boolean        | Configure linting with formatting               | true       |
| -g           | --git                  | boolean        | Initialize git source control                   | true       |
| -h           | --gitHooks             | boolean        | Add git hooks (Husky + lint staged)             | true       |
| -t           | --tests                | boolean        | Add tests (Vitest + Testing Library + jsdom)    | true       |
| -c           | --commitLint           | boolean        | Add commit linting                              | true       |
| -x           | --changesets           | boolean        | Add changesets                                  | true       |
| -i           | --installDeps          | boolean        | Add &amp; install dependencies                  | true       |
| -y           | --yes                  | boolean        | Set up Bedframe w/ preconfigured defaults       | false      |
|              | --help                 |                | display help for command                        |            |

<details>
<summary>Package Manager</summary>
Pick from either npm, yarn or pnpm

</details>

<details>
  <summary>Version</summary>
  
  The `version` passed in via the Bedframe CLI make command flag (`-v, --version`) or via prompt response is used to set the `version` for both your project's package.json and the (one or more) manifests for the extension(s) in your project.
  
  <blockquote>
  <h4>Note</h4>
  The `version` in manifest.json is not in semVer while the `version` in pacakge.json must be parseable by <a href="https://github.com/npm/node-semver">node-semver</a>. If you find the two need to be different in your project, you can alternatively pass in the Version Name flag (`--versionName`) and this will be the semVer-valid `version` used in the package.json and as `version_name` in manifest.json.
  </blockquote>
  <Br />
  
  One to four dot-separated integers identifying the version of this extension. A couple of rules apply to the integers:
  
  The integers must be between `0` and `65535`, inclusive.
  Non-zero integers can't start with `0`. For example, `032` is invalid because it begins with a zero.
  They must not be all zero. For example, `0` and `0.0.0.0` are invalid while `0.1.0.0` is valid.
  
  Here are some examples of valid versions:
  
  - `"version": "1"`
  - `"version": "1.0"`
  - `"version": "2.10.2"`
  - `"version": "3.1.2.4567"`
  
  If the published extension has a newer version string than the installed extension, then the extension is automatically updated.
  
  The comparison starts with the leftmost integers. Then, if those integers are equal, the integers to the right are compared, and so on. For example, `1.2.0` is a newer version than `1.1.9.9999`.
  
  A missing integer is equal to zero. For example, `1.1.9.9999` is newer than `1.1`, and `1.1.9.9999` is older than `1.2`.
  
</details>

<details><summary>Browser</summary></details>
<details><summary>framework</summary></details>
<details><summary>language</summary></details>
<details><summary>style</summary></details>
<details><summary>lintFormat</summary></details>
<details><summary>git</summary></details>
<details><summary>gitHooks</summary></details>
<details><summary>tests</summary></details>
<details><summary>commitLint</summary></details>
<details><summary>changesets</summary></details>
<details><summary>installDeps</summary></details>
<details><summary>yes</summary></details>
<details><summary>help</summary></details>

</details>

### V E R S I O N

create or update git release of current version

<details>
<summary>Command Details</summary>

```bash
>_

  B R O W S E R
  E X T E N S I O N
  D E V E L O P M E N T
  F R A M E W O R K

Usage: @bedframe/cli version [options]

create or update git release of current version (changeset version)

Options:
  --ignore <package>  skip a package from being published
  --snapshot          create a snapshot release for testing
  -h, --help          display help for command
```

</details>

### P U B L I S H

publish new or update existing extension(s)

<details>
<summary>Command Details</summary>
<br />

```bash
>_

B R O W S E R
E X T E N S I O N
D E V E L O P M E N T
F R A M E W O R K

Usage: @bedframe/cli publish [options]

• publish new or update existing extension(s)
├ • C W S: Chrome Web Store
├ • A M O: Mozilla/Firefox Add-ons
└ • M E A: MS Edge Add-ons

Options:
-b, --browsers <browsers...> specify browsers to publish (chrome,firefox,edge)
-h, --help display help for command
```

</details>

### D E V

start vite dev server for 1 or more browsers.<br />
alias for vite dev w/ --mode &lt;browser&gt;

<details>
  <summary>Command Details</summary>
  
  ```bash
  >_
  
    B R O W S E R
    E X T E N S I O N
    D E V E L O P M E N T
    F R A M E W O R K
  
  Usage: @bedframe/cli dev [options] [browsers]
  
  start Vite dev server for one or more browsers concurrently
  
  Options:
    -h, --help  display help for command
  ```
  
  ```bash
  > bedframe dev
  6 BEDs starting vite dev server! 🚀
  └ dist/
    ├ brave/
    ├ chrome/
    ├ edge/
    ├ firefox/
    ├ opera/
    └ safari/
  ```
  
</details>

### B U I L D

generate prod builds for 1 or more browsers<br />
alias for vite build w/ --mode &lt;browser&gt;

<details>
  <summary>Command Details</summary>
  
  ```bash
  >_
  
    B R O W S E R
    E X T E N S I O N
    D E V E L O P M E N T
    F R A M E W O R K
  
  Usage: @bedframe/cli build [options] [browsers]
  
  generate prod builds for 1 or more browsers concurrently
  
  Options:
    -h, --help  display help for command
  ```
  
</details>

### Z I P

create zip archive(s) for 1 or more browsers

<details>
<summary>Command Details</summary>

```bash
>_

  B R O W S E R
  E X T E N S I O N
  D E V E L O P M E N T
  F R A M E W O R K

Usage: @bedframe/cli zip [options] [browsers]

zip browser dist directories

Arguments:
  browsers                 list of browser names

Options:
  -d, --distDir <distDir>  current dist dir to create archive from (e.g. -d
                           ./dist/<browser>)
  -n, --name <name>        what to name the zip file (including .zip)
  -h, --help               display help for command
```

</details>

---
_Source: https://npm.io/package/create-bedframe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
