PHPackages                             spinupwp/spinupwp-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. spinupwp/spinupwp-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

spinupwp/spinupwp-cli
=====================

The SpinupWP CLI

v1.2.0(5mo ago)111.4k1[11 issues](https://github.com/spinupwp/spinupwp-cli/issues)[3 PRs](https://github.com/spinupwp/spinupwp-cli/pulls)MITPHPPHP ^8.0CI passing

Since Nov 16Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/spinupwp/spinupwp-cli)[ Packagist](https://packagist.org/packages/spinupwp/spinupwp-cli)[ RSS](/packages/spinupwp-spinupwp-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (15)Used By (0)

SpinupWP CLI
============

[](#spinupwp-cli)

[![Tests](https://github.com/spinupwp/spinupwp-cli/actions/workflows/tests.yml/badge.svg?event=push)](https://github.com/spinupwp/spinupwp-cli/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/af01480ef918184826570f73619884712dc92fc4a783d5a9fe1fab9ecd2f383c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370696e757077702f7370696e757077702d636c69)](https://packagist.org/packages/spinupwp/spinupwp-cli)[![Latest Stable Version](https://camo.githubusercontent.com/b812178a9c76636018d278ab5ad5f2508877ec7ff8de3fa66ffb53122ff3de83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370696e757077702f7370696e757077702d636c69)](https://packagist.org/packages/spinupwp/spinupwp-cli)[![License](https://camo.githubusercontent.com/d0fcd4f395bf9f70b626e145b8f76e90dbeb260b660895d801e9233787298c21/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7370696e757077702f7370696e757077702d636c69)](https://packagist.org/packages/spinupwp/spinupwp-cli)

Installation
------------

[](#installation)

To get started, require the package globally via [Composer](https://getcomposer.org):

```
composer global require spinupwp/spinupwp-cli

```

In addition, you should make sure the `/vendor/bin` directory in your global Composer home directory is in your system's "PATH". Depending on your operating system this could be either `~/.composer/` or `~/.config/composer/`. You can use the `composer config --global home` command to check this location.

Usage
-----

[](#usage)

Installing the SpinupWP CLI provides access to the `spinupwp` command.

```
spinupwp

```

You will need to generate an API token to interact with the SpinupWP CLI. After you have generated an API token, you should configure your default profile:

```
spinupwp configure

```

You can configure multiple profiles, which is useful if you're a member of multiple teams:

```
spinupwp configure --profile=hellfishmedia

```

To run a command using a specific profile, pass the profile option:

```
spinupwp servers:list --profile=hellfishmedia

```

If no profile is supplied, your default profile will be used (if configured).

### Servers

[](#servers)

```
# Delete a server
spinupwp servers:delete

# Provision a custom server
spinupwp servers:create-custom

# Get a server
spinupwp servers:get  --fields=id,name,ip_address,ubuntu_version,database.server

# List all servers
spinupwp servers:list --fields=id,name,ip_address,ubuntu_version,database.server

# Reboot a server
spinupwp servers:reboot

# Reboot all servers
spinupwp servers:reboot --all

# Start an SSH session
spinupwp servers:ssh

```

You can pass any properties of the [Server Schema](https://api.spinupwp.com/?shell#tocS_Server) to the `--fields` flag. Nested properties should use dot notation, for example, `database.server`.

### Services

[](#services)

```
# Restart MySQL on a server
spinupwp services:mysql

# Restart MySQL on all servers
spinupwp services:mysql --all

# Restart Nginx on a server
spinupwp services:nginx

# Restart Nginx on all servers
spinupwp services:nginx --all

# Restart PHP on a server
spinupwp services:php

# Restart PHP on all servers
spinupwp services:php --all

# Restart Redis on a server
spinupwp services:redis

# Restart Redis on all servers
spinupwp services:redis --all

```

### Sites

[](#sites)

```
# Create a site
spinupwp sites:create

# Delete a site
spinupwp sites:delete

# Run a Git deployment
spinupwp sites:deploy

# Get a site
spinupwp sites:get  --fields=id,server_id,domain,site_user,php_version,page_cache,https

# List all sites
spinupwp sites:list --fields=id,server_id,domain,site_user,php_version,page_cache,https

# Purge the page cache for a site
spinupwp sites:purge  --cache=page

# Purge the page cache for all sites
spinupwp sites:purge --all --cache=page

# Purge the object cache for a site
spinupwp sites:purge  --cache=object

# Purge the object cache for all sites
spinupwp sites:purge --all --cache=object

# Start an SSH session as the site user
spinupwp sites:ssh

```

You can pass any properties of the [Site Schema](https://api.spinupwp.com/?shell#tocS_Site) to the `--fields` flag. Nested properties should use dot notation, for example, `backups.next_run_time` or `git.branch`.

```
# Create a site using field flags instead of interactive prompts
spinupwp sites:create  --installation-method="" \
  --domain="" --https-enabled --site-user="" --db-name="" \
  --db-user="" --db-pass="" --wp-title="" \
  --wp-admin-email="" --wp-admin-user="" \
  --wp-admin-pass="" --php-version="" --page-cache-enabled

```

A full reference of the available flags is available anytime.

```
# Display available Arguments and Options for site:create
spinupwp sites:create --help

```

Upgrade
-------

[](#upgrade)

To update the SpinupWP CLI to the latest version, run:

```
composer global update

```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance60

Regular maintenance activity

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 53.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~146 days

Recently: every ~351 days

Total

11

Last Release

172d ago

Major Versions

v0.6.0 → v1.0.02022-03-08

PHP version history (2 changes)v0.1.0PHP ^7.4|^8.0

v1.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a17340efe48d7e62c952cc814075f0d30a238ecacfe76ca3cde46efa630c227?d=identicon)[spinupwp](/maintainers/spinupwp)

---

Top Contributors

[![danielmlozano](https://avatars.githubusercontent.com/u/7433870?v=4)](https://github.com/danielmlozano "danielmlozano (237 commits)")[![A5hleyRich](https://avatars.githubusercontent.com/u/1422996?v=4)](https://github.com/A5hleyRich "A5hleyRich (121 commits)")[![ohryan](https://avatars.githubusercontent.com/u/195085?v=4)](https://github.com/ohryan "ohryan (46 commits)")[![vbergerondev](https://avatars.githubusercontent.com/u/46461380?v=4)](https://github.com/vbergerondev "vbergerondev (14 commits)")[![katelynnbarlowe](https://avatars.githubusercontent.com/u/31631674?v=4)](https://github.com/katelynnbarlowe "katelynnbarlowe (12 commits)")[![georgefehr](https://avatars.githubusercontent.com/u/447372?v=4)](https://github.com/georgefehr "georgefehr (6 commits)")[![Jamesclark32](https://avatars.githubusercontent.com/u/13315960?v=4)](https://github.com/Jamesclark32 "Jamesclark32 (4 commits)")[![jonathanbossenger](https://avatars.githubusercontent.com/u/180629?v=4)](https://github.com/jonathanbossenger "jonathanbossenger (1 commits)")[![bradt](https://avatars.githubusercontent.com/u/190095?v=4)](https://github.com/bradt "bradt (1 commits)")

---

Tags

cliphpspinupwpcliSpinupWP

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spinupwp-spinupwp-cli/health.svg)

```
[![Health](https://phpackages.com/badges/spinupwp-spinupwp-cli/health.svg)](https://phpackages.com/packages/spinupwp-spinupwp-cli)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.2k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.4k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M285](/packages/nunomaduro-termwind)[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M319](/packages/wp-cli-wp-cli)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M364](/packages/wp-cli-php-cli-tools)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
