# ssdev

> docker-based devenv manager for silverstripe projects using npx

Latest version **2.2.0** (published 2025-01-27) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install ssdev
pnpm add ssdev
yarn add ssdev
bun add ssdev
```

Provides the command `ssdev`.

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2025-01-27 |
| First published | 2020-10-14 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 49 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthias Leutenegger |
| Maintainers | mleutenegger |
| Keywords | npx, silverstripe, docker |

## Links

- npm: https://www.npmjs.com/package/ssdev
- npm.io page: https://npm.io/package/ssdev

## Dependencies (4)

- [tmp](https://npm.io/package/tmp.md) ^0.2.1
- [yaml](https://npm.io/package/yaml.md) ^2.1.0
- [yargs](https://npm.io/package/yargs.md) ^17.5.1
- [docker-compose](https://npm.io/package/docker-compose.md) ^0.24.1

## Recent versions

- 2.2.0 (latest) — 2025-01-27
- 2.1.0 — 2025-01-27
- 2.0.0 — 2024-08-05
- 1.4.0 — 2024-08-05
- 1.3.0 — 2023-03-03
- 1.2.3 — 2022-06-30
- 1.2.2 — 2022-05-20
- 1.2.1 — 2022-05-20
- 1.2.0 — 2022-05-20
- 1.1.1 — 2021-09-28
- 1.1.0 — 2020-12-03
- 1.0.3 — 2020-11-04
- 1.0.2 — 2020-11-02
- 1.0.1 — 2020-10-18
- 1.0.0 — 2020-10-17
- … 3 more at https://npm.io/package/ssdev/versions

## README

# ssdev - A Simple yet Powerful Silverstripe Development Environment Manager 🚀

[![npm](https://img.shields.io/npm/v/ssdev)](https://www.npmjs.com/package/ssdev)
[![npm](https://img.shields.io/npm/dt/ssdev)](https://www.npmjs.com/package/ssdev)
![NPM](https://img.shields.io/npm/l/ssdev)
[![Tests](https://github.com/syntro-opensource/ssdev/workflows/Tests/badge.svg)](https://github.com/syntro-opensource/ssdev/actions?query=workflow%3ATests)

ssdev makes Silverstripe development easy. Stop worrying about your LAMP, MAMP
or WAMP stack and start developing awesome websites and applications!

## 🧩 Prerequisites
ssdev works on most systems. In order for it to work properly, you need to install some prerequisites. Please follow the instructions for your OS:

* [macOS](docs/os/macos.md)
* [Windows](docs/os/windows.md)
* [Linux](docs/os/linux.md)

## 📦 Installation
You can run ssdev without installing it using npx:
```
npx ssdev --help
```
This works great for checking out ssdev or for issuing some commands, but
for productive development work, you should install it globally using:

```
npm install -g ssdev
```
after which you can simply use it by typing
```
ssdev --help
```

## 🚀 Usage

ssdev assumes Silverstripe projects to be inside a directory containing a `composer.json`
file and a file structure [common for Silverstripe](https://docs.silverstripe.org/en/4/getting_started/directory_structure/).
All commands concerning that project **must** be executed in the project root.

If you want to experiment on a new project, have a look over at [`syntro/ssto`](https://github.com/syntro-opensource/silverstripe-ssto)
to get set up with a Silverstripe starter project.

In a directory containing a project, simply run
```
ssdev up
```
to bring up a server and database environment. To shut down the server after you
are finished, run
```
ssdev down
```
There is more to ssdev, but we go over all of it in the [docs](#-docs).

## 📖 Docs
ssdev is a powerful tool and can be customized in various ways. Read here how
you can achieve any setup, mimicking a production environment as closely as possible.


#### Config Options
You can set all config options (`ssdev --help`) in a `package.json` file under the
`ssdev` key. This allows you to set per-project settings that actually transfer
to other developers. An example would be if you want to use a different PHP version:
```json
{
  "ssdev": {
    "image-host": "syntrocontainer/silverstripe-dev:8.0-apache-buster"
  }
}
```

#### Configure the Host Container
→ see [📚 in-depth docs about how to work with diffrent hosting setups](docs/hostcontainer.md).

#### Install Dependencies
→ see [📚 in-depth docs about composer dependencies](docs/composer.md).

#### Executing Tests (PHPUnit, PHPStan, ...)
→ see [📚 in-depth docs about test execution](docs/testing.md).

#### Custom Services
→ see [📚 in-depth docs about custom service container](docs/services.md).


## ➕ More Infos
Check out the following for more informations:
* [Changelog](CHANGELOG.md)
* [Contributing guide](CONTRIBUTING.md)
* [License](LICENSE.md)
* [`syntro/ssto`](https://github.com/syntro-opensource/silverstripe-ssto)

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