Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

self-hosting: retire the setup scripts in favour of the openpanel CLI

Carl-Gerhard Lindesvärde80388e872b5
diff --git a/.github/smoke/docker-compose.yml b/.github/smoke/docker-compose.yml
index 9ea41a332..532871936 100644
--- a/.github/smoke/docker-compose.yml
+++ b/.github/smoke/docker-compose.yml
@@ -56,7 +56,7 @@ services:
# single-node sizing (not the root docker-compose.yml's 1G dev cap). Bootstrap
# config is the checked-in dev file (partitions=24, same as cloud) rather than
# the self-host setup script's generated one, which doesn't exist until
- # ./setup has run — keeps this stack reproducible from this file alone.
+ # `openpanel init` has run — keeps this stack reproducible from this file alone.
op-rp:
image: redpandadata/redpanda:v25.1.4
command:
diff --git a/apps/public/content/docs/migration/migrate-v1-to-v2.mdx b/apps/public/content/docs/migration/migrate-v1-to-v2.mdx
index df85e9960..4bd96b9a7 100644
--- a/apps/public/content/docs/migration/migrate-v1-to-v2.mdx
+++ b/apps/public/content/docs/migration/migrate-v1-to-v2.mdx
@@ -88,8 +88,8 @@ services:
When you're done with above steps you should need to restart all services. This will take quite some time depending on your hardware and how many events you have. Since we have made significant changes to the database schema and data we need to run migrations.
```bash
-./stop
-./start
+docker compose down
+docker compose up -d
```
## Using Coolify?
diff --git a/apps/public/content/docs/self-hosting/changelog.mdx b/apps/public/content/docs/self-hosting/changelog.mdx
index c5c3cb56e..a8fb74bac 100644
--- a/apps/public/content/docs/self-hosting/changelog.mdx
+++ b/apps/public/content/docs/self-hosting/changelog.mdx
@@ -3,6 +3,31 @@ title: Changelog for self-hosting
description: This is a list of changes that have been made to the self-hosting setup.
---
+## 3.0.0
+
+Redpanda is now a required part of the stack, and the separate worker image is gone.
+
+Upgrade with the CLI, which makes all of the changes below for you after asking:
+
+```bash
+curl -fsSL https://raw.githubusercontent.com/Openpanel-dev/openpanel/main/self-hosting/install.sh | sh
+openpanel upgrade
+```
+
+Before you do, stop sending events and let the old worker finish its queue. Events still waiting in Redis are not moved to Redpanda.
+
+TLDR;
+
+- New `op-rp` (Redpanda) service, its `op-rp-data` volume and `redpanda/bootstrap.yaml`; `op-api` and `op-worker` wait for it
+- `op-worker` now runs the `openpanel-api` image with `ROLE=worker` and a `/healthz/ready` healthcheck; `openpanel-worker` is no longer built
+- `op-api` migrates with `prisma` and `scripts/migrate-code.ts` under bun
+- New required env: `KAFKA_BROKERS=op-rp:9092`, `KAFKA_EVENTS_TOPIC_PARTITIONS`, `ENCRYPTION_KEY` (64 hex characters) and `COOKIE_SECRET`
+- `ADMIN_USERNAME` and `ADMIN_PASSWORD` must be set together
+- `ENABLED_QUEUES`: `events_kafka` is now `events`, and `misc` is removed
+- Removed, no longer read: `WORKER_PORT`, `EVENT_JOB_CONCURRENCY`, `EVENTS_GROUP_QUEUES_SHARDS`, `EVENT_BLOCKING_TIMEOUT_SEC`, `ORDERING_DELAY_MS`, `AUTO_BATCH_SIZE`, `AUTO_BATCH_MAX_WAIT_MS`, `SHUTDOWN_GRACE_PERIOD_MS`
+- Caddy: `worker.<domain>` redirects `/` to `/bullboard/`
+- The `./setup`, `./start`, `./update` and friends are replaced by the `openpanel` CLI. `openpanel doctor` checks an existing install and `openpanel doctor --fix` repairs it
+
## 2.0.0
We have released the first stable version of OpenPanel v2. This is a big one!
diff --git a/apps/public/content/docs/self-hosting/deploy-docker-compose.mdx b/apps/public/content/docs/self-hosting/deploy-docker-compose.mdx
index 80fb62740..d3f067d7a 100644
--- a/apps/public/content/docs/self-hosting/deploy-docker-compose.mdx
+++ b/apps/public/content/docs/self-hosting/deploy-docker-compose.mdx
@@ -10,68 +10,51 @@ This guide will help you deploy OpenPanel using Docker Compose. This method give
## Prerequisites
-- A VPS or server (Docker and Node will be installed automatically if needed)
-- At least 4GB RAM (6GB+ recommended) — the stack now includes Redpanda alongside Postgres, Redis and ClickHouse
+- A VPS or server. Docker is checked for automatically, and on Linux the CLI offers to install it.
+- At least 4GB RAM (6GB+ recommended) — the stack includes Redpanda alongside Postgres, Redis and ClickHouse
- Domain name pointing to your server (optional but recommended)
- Basic knowledge of command line
<Callout>
-🙋‍♂️ This should work on any system. The setup script will install Docker and Node if they're not already installed.
+🙋‍♂️ This works on any Linux or macOS machine that can run Docker. You don't need Node, npm or git.
</Callout>
## Quick Start
<Steps>
<Step>
-### Clone the Repository
-
-Clone the OpenPanel repository and navigate to the self-hosting directory:
+### Install the CLI
```bash
-git clone -b self-hosting https://github.com/Openpanel-dev/openpanel.git
-cd openpanel/self-hosting
+curl -fsSL https://raw.githubusercontent.com/Openpanel-dev/openpanel/main/self-hosting/install.sh | sh
```
+
+This downloads a single `openpanel` binary, verifies its checksum and puts it on your `PATH`. Builds for Linux and macOS (x64 and arm64) are also on the [releases page](https://github.com/Openpanel-dev/openpanel/releases).
</Step>
<Step>
-### Run the Setup Script
-
-The setup script will guide you through the configuration process. It will:
-
-1. Install Node.js (if you accept and it's not already installed)
-2. Install Docker (if you accept and it's not already installed)
-3. Run an interactive quiz/wizard that asks questions about your setup
-
-> Setup takes 30s to 2 minutes depending on your VPS
+### Run the setup
```bash
-./setup
+openpanel init
```
-The wizard will ask you questions about:
+It checks your host (Docker, Docker Compose, memory), then asks about:
- Your domain name
-- Database configuration
-- Email settings (optional)
-- AI integration (optional)
-- Registration settings
+- Whether to run Postgres, ClickHouse and Redis for you, or connect your own
+- Whether to use the bundled Caddy (automatic HTTPS) or your own reverse proxy
+- Email (optional)
-<Callout>
-⚠️ If the `./setup` script fails to run, you can do it manually:
+Secrets, the worker count and the queue-dashboard password are generated. It writes `docker-compose.yml`, `.env` and the supporting config files to `~/openpanel` (use `--dir <path>` to change that) and prints the queue-dashboard password once.
-1. Install Docker
-2. Install Node.js
-3. Install npm
-4. Run `npm run quiz` inside the self-hosting folder
-</Callout>
+For unattended setups every answer is a flag, e.g. `openpanel init --yes --domain https://analytics.example.com`. Run `openpanel --help` to see them.
</Step>
<Step>
### Start the Services
-After the setup is complete, start all OpenPanel services:
-
```bash
-./start
+openpanel up
```
This will start all required services:
@@ -82,30 +65,23 @@ This will start all required services:
- **op-api**: OpenPanel API server
- **op-dashboard**: OpenPanel dashboard (frontend)
- **op-worker**: Background worker for processing events
+- **op-proxy**: Caddy reverse proxy, unless you chose your own
</Step>
<Step>
### Verify Installation
-Check that all containers are running:
-
```bash
-docker compose ps
+openpanel status
```
-All services should show as "healthy" or "running". You can also check the logs:
+All services should show as "healthy" or "running". To watch the logs:
```bash
-docker compose logs -f
+openpanel logs
```
-Or use the provided logs script:
-
-```bash
-./logs
-```
-
-Once all services are healthy, you can access OpenPanel at your configured domain (or `http://your-server-ip` if you haven't configured a domain).
+Once all services are healthy, you can access OpenPanel at your configured domain.
</Step>
</Steps>
@@ -113,12 +89,12 @@ Once all services are healthy, you can access OpenPanel at your configured domai
### Environment Variables
-The setup wizard will configure most environment variables automatically. You can manually edit the `.env` file in the `self-hosting` directory if needed.
+`openpanel init` configures most environment variables for you. You can edit the `.env` file in your install directory if needed.
For a complete reference of all available environment variables, see the [Environment Variables documentation](/docs/self-hosting/environment-variables).
<Callout>
-If you change the `.env` file, you need to restart the services for the changes to take effect. Use `./stop` and `./start` or `docker compose restart`.
+If you change the `.env` file, run `openpanel restart` for the changes to take effect. It recreates the containers, which a plain `docker compose restart` does not, so the new values are actually picked up.
</Callout>
The generated `.env` also contains commented-out blocks for optional features. Uncomment and fill them in to enable [social login with Google or GitHub](/docs/self-hosting/social-login) and the [Google Search Console integration](/docs/self-hosting/google-search-console).
@@ -134,126 +110,68 @@ op-api:
### Scaling Workers
-To scale the worker service, set the `OP_WORKER_REPLICAS` environment variable:
+The worker count is set in `docker-compose.yml` as `${OP_WORKER_REPLICAS:-N}`, where N is what `init` chose. Override it by adding a line to `.env`, then apply it:
-```bash
-OP_WORKER_REPLICAS=3 docker compose up -d
+```bash title=".env"
+OP_WORKER_REPLICAS=3
```
-Or edit the `docker-compose.yml` file:
-
-```yaml
-op-worker:
- deploy:
- replicas: 3
+```bash
+openpanel up
```
## Managing Your Deployment
-OpenPanel comes with several utility scripts to help manage your deployment. All scripts should be run from within the `self-hosting` directory.
+Run these from your install directory, or pass `--dir <path>`.
### Basic Operations
```bash
-./start # Start all OpenPanel services
-./stop # Stop all OpenPanel services
-./logs # View real-time logs from all services
+openpanel up # Start all OpenPanel services
+openpanel down # Stop all OpenPanel services (data is kept)
+openpanel restart # Recreate services, picking up a changed .env
+openpanel logs # Follow logs from all services
+openpanel status # Show running services
```
### View Logs
-View logs from all services:
-
-```bash
-./logs
-```
-
-Or using Docker Compose directly:
-
-```bash
-docker compose logs -f
-```
-
-View logs from a specific service:
-
-```bash
-docker compose logs -f op-api
-```
-
-### Stop Services
-
-Stop all services:
-
-```bash
-./stop
-```
-
-Or using Docker Compose:
-
-```bash
-docker compose down
-```
-
-Stop services but keep volumes (data persists):
-
-```bash
-docker compose stop
-```
-
-### Restart Services
-
-Restart all services:
-
-```bash
-./stop && ./start
-```
-
-Or using Docker Compose:
-
```bash
-docker compose restart
+openpanel logs # all services
+openpanel logs op-api # one service
```
-Restart a specific service:
+### Check Your Setup
```bash
-docker compose restart op-api
+openpanel doctor
```
-### Rebuild Services
-
-Rebuild and restart a specific service:
-
-```bash
-./rebuild op-dashboard
-```
+Checks that Docker is running and has enough memory, and that your `docker-compose.yml` and `.env` match what this version expects. `openpanel doctor --fix` repairs what it can and keeps the originals as `<file>.bak`.
### Update OpenPanel
-To update to the latest version, use the update script:
-
```bash
-./update
+openpanel upgrade
```
-This script will:
-1. Pull the latest changes from the repository
-2. Pull the latest Docker images
-3. Restart all services
+This will:
+1. Update the CLI itself, after verifying its checksum
+2. Run the `doctor` checks and offer to fix your `docker-compose.yml` and `.env` for the new version
+3. Pull the latest Docker images
+4. Restart the services
-<Callout>
-If you don't have the `./update` script, you can manually update:
+<Callout type="warn">
+Always backup your data before updating. The database migrations will run automatically when the API container starts. Also read any changes in the [changelog](/docs/self-hosting/changelog).
+</Callout>
+
+### Start Over
```bash
-git pull
-docker compose pull
-docker compose up -d
+openpanel reset
```
-</Callout>
-<Callout type="warn">
-Always backup your data before updating. The database migrations will run automatically when the API container starts. Also read any changes in the [changelog](/docs/self-hosting/changelog) and apply them to your instance.
-</Callout>
+Deletes this install's data volumes after you type the directory name to confirm. `docker-compose.yml` and `.env` are kept.
### Backup and Restore
diff --git a/apps/public/content/docs/self-hosting/environment-variables.mdx b/apps/public/content/docs/self-hosting/environment-variables.mdx
index edd321667..7bd88ea52 100644
--- a/apps/public/content/docs/self-hosting/environment-variables.mdx
+++ b/apps/public/content/docs/self-hosting/environment-variables.mdx
@@ -1037,7 +1037,7 @@ KAFKA_EVENTS_TOPIC_PARTITIONS=48
```
<Callout type="warn">
-Set this once, before the first `./start`. The Kafka/Redpanda partitioner is `murmur2(key) % numPartitions`, so raising the partition count after the topic already has data reshuffles where every key lands — it silently breaks per-key event ordering and the mutual exclusion the session buffer relies on for events produced before the change. To raise it later: stop producers, let consumers fully drain the backlog, delete the `events` topic, then restart so it's recreated with the new count.
+Set this once, before the first `openpanel up`. The Kafka/Redpanda partitioner is `murmur2(key) % numPartitions`, so raising the partition count after the topic already has data reshuffles where every key lands — it silently breaks per-key event ordering and the mutual exclusion the session buffer relies on for events produced before the change. To raise it later: stop producers, let consumers fully drain the backlog, delete the `events` topic, then restart so it's recreated with the new count.
</Callout>
### KAFKA_CONSUMER_GROUP
diff --git a/apps/public/content/docs/self-hosting/reverse-proxy.mdx b/apps/public/content/docs/self-hosting/reverse-proxy.mdx
index 43c5ab52e..3c423a367 100644
--- a/apps/public/content/docs/self-hosting/reverse-proxy.mdx
+++ b/apps/public/content/docs/self-hosting/reverse-proxy.mdx
@@ -9,7 +9,7 @@ OpenPanel ships with a Caddy container that handles TLS and routing. It's two li
- **Replacing Caddy with NGINX/Traefik/HAProxy** — jump to [Your own reverse proxy](#your-own-reverse-proxy).
- **Putting a TLS terminator upstream of the bundled Caddy** (cloud LB, edge VM) — see [TLS terminated upstream of Caddy](#tls-terminated-upstream-of-caddy).
-- **Just using the bundled Caddy** — you don't need this page. `./setup` + `./start` and you're done.
+- **Just using the bundled Caddy** — you don't need this page. `openpanel init` + `openpanel up` and you're done.
## How the bundled Caddy does it
diff --git a/apps/public/content/docs/self-hosting/self-hosting.mdx b/apps/public/content/docs/self-hosting/self-hosting.mdx
index c0f06671a..71c48a27e 100644
--- a/apps/public/content/docs/self-hosting/self-hosting.mdx
+++ b/apps/public/content/docs/self-hosting/self-hosting.mdx
@@ -9,59 +9,59 @@ import { Step, Steps } from 'fumadocs-ui/components/steps';
### Prerequisites
-- VPS of any kind (only tested on Ubuntu 24.04)
+- A VPS of any kind (only tested on Ubuntu 24.04)
- We recommend using [Hetzner (affiliate link)](https://hetzner.cloud/?ref=7Hq0H5mQh7tM). Use the link if you want to support us. 🫶
- - 🙋‍♂️ This should work on any system if you have pre-installed docker, node and pnpm
+ - 🙋‍♂️ This works on any Linux or macOS machine that can run Docker. The CLI offers to install Docker for you on Linux.
+- At least 4GB RAM (Redpanda, ClickHouse and Postgres run side by side)
+- A domain name pointing at the server, if you want automatic HTTPS
### Quickstart
```bash
-git clone -b self-hosting https://github.com/Openpanel-dev/openpanel && cd openpanel/self-hosting && ./setup
-# After setup is complete run `./start` to start OpenPanel
+curl -fsSL https://raw.githubusercontent.com/Openpanel-dev/openpanel/main/self-hosting/install.sh | sh
+openpanel init
```
<Steps>
<Step>
-### Clone
+### Install the CLI
-Clone the repository to your VPS and checkout the self-hosting tag
+The `openpanel` CLI is a single file with no dependencies. The script downloads the right build for your machine, checks its checksum, and puts it on your `PATH`.
```bash
-git clone -b self-hosting https://github.com/Openpanel-dev/openpanel.git
+curl -fsSL https://raw.githubusercontent.com/Openpanel-dev/openpanel/main/self-hosting/install.sh | sh
```
+
+You can also download a binary from the [releases page](https://github.com/Openpanel-dev/openpanel/releases) (look for `cli-v*`).
</Step>
<Step>
-### Run the setup script
-
-The setup script will do 3 things
-
-1. Install node (if you accept)
-2. Install docker (if you accept)
-3. Execute a node script that will ask some questions about your setup
-
-> Setup takes 30s to 2 minutes depending on your VPS
+### Run the setup
```bash
-cd openpanel/self-hosting
-./setup
+openpanel init
```
-⚠️ If the `./setup` script fails to run, you can do it manually.
+It checks that Docker is installed and running (on Linux it offers to install it), then asks a few questions:
+
+1. Where OpenPanel will live (your URL)
+2. Whether to run Postgres, ClickHouse and Redis for you, or use your own
+3. Whether to use the bundled Caddy (automatic HTTPS) or your own reverse proxy
+4. A [Resend](https://resend.com) key for email (optional)
-1. Install docker
-2. Install node
-3. Install npm
-4. Run the `npm run quiz` script inside the self-hosting folder
+Everything else is generated for you: secrets, the worker count, and the password for the queue dashboard. The files are written to `~/openpanel`. Pass `--dir <path>` to put them somewhere else.
+Running unattended? Pass the answers as flags:
+
+```bash
+openpanel init --yes --domain https://analytics.example.com
+```
</Step>
<Step>
### Start 🚀
-Run the `./start` script located inside the self-hosting folder
-
```bash
-./start
+openpanel up
```
</Step>
</Steps>
@@ -151,7 +151,7 @@ OpenPanel includes an AI-powered analytics assistant that can help you analyze d
#### Configuration
-Add one or both of the following to your `.env` file in the `self-hosting` directory, then restart the API service:
+Add one or both of the following to your `.env` file in your install directory, then run `openpanel restart`:
```bash title=".env"
# OpenAI — get a key at platform.openai.com/api-keys
@@ -197,44 +197,57 @@ ALLOW_INVITATION=false
For a complete reference of all environment variables, see the [Environment Variables documentation](/docs/self-hosting/environment-variables).
-## Helpful scripts
+## Helpful commands
-OpenPanel comes with several utility scripts to help manage your self-hosted instance:
+Run these from your install directory (`~/openpanel` by default), or pass `--dir <path>` from anywhere.
### Basic Operations
```bash
-./start # Start all OpenPanel services
-./stop # Stop all OpenPanel services
-./logs # View real-time logs from all services
+openpanel up # Start all OpenPanel services
+openpanel down # Stop all OpenPanel services
+openpanel restart # Recreate services so a changed .env takes effect
+openpanel logs # Follow logs (openpanel logs op-api for one service)
+openpanel status # Show running services
+```
+
+### Diagnose
+
+```bash
+openpanel doctor # Check Docker, memory, and your docker-compose.yml / .env
+openpanel doctor --fix # Repair what it can (originals are kept as <file>.bak)
+openpanel doctor --check # Exit non-zero on errors, for scripts
```
-### Maintenance
+### Move your data
```bash
-./rebuild <service-name> # Rebuild and restart a specific service
- # Example: ./rebuild op-dashboard
+openpanel export --out ./op-export # Dump ClickHouse data as JSONL
```
+The dump is gzipped JSONL per table and day, plus a `manifest.jsonl` and `_meta.json`. Filter it with `--project-id`, `--from` and `--to`, or list candidate containers with `--list` if auto-detection can't find ClickHouse.
+
### Troubleshooting
```bash
-./danger_wipe_everything # ⚠️ Removes all containers, volumes, and data
- # Only use this if you want to start fresh!
+openpanel reset # ⚠️ Deletes this install's data volumes
+ # Only use this if you want to start fresh!
```
<Callout>
-The `danger_wipe_everything` script will delete all your OpenPanel data including databases, configurations, and cached files. Use with extreme caution!
+`openpanel reset` deletes your databases and queues. It only touches this install's own volumes, and asks you to type the directory name before it does anything. Export first if you need the events.
</Callout>
-All these scripts should be run from within the `self-hosting` directory. Make sure the scripts are executable (`chmod +x script-name` if needed).
-
## Updating
-To grab the latest and greatest from OpenPanel you should just run the `./update` script inside the self-hosting folder.
+```bash
+openpanel upgrade
+```
+
+This updates the CLI itself (after verifying its checksum), runs `doctor` to bring your `docker-compose.yml` and `.env` up to date with the new version, pulls the new images and restarts the stack. It shows what it will change and asks first.
+
+Also read any changes in the [changelog](/docs/self-hosting/changelog).
<Callout>
- If you don't have the `./update` script, you can run `git pull` and then `./update`
+ Coming from the `./setup` / `./update` scripts? Install the CLI as shown above and run `openpanel doctor` in your existing directory. It works on installs made by the old scripts too.
</Callout>
-
-Also read any changes in the [changelog](/docs/self-hosting/changelog) and apply them to your instance.
\ No newline at end of file
diff --git a/apps/public/content/docs/self-hosting/supporter-access-latest-docker-images.mdx b/apps/public/content/docs/self-hosting/supporter-access-latest-docker-images.mdx
index 0c38c6cae..10b8d772e 100644
--- a/apps/public/content/docs/self-hosting/supporter-access-latest-docker-images.mdx
+++ b/apps/public/content/docs/self-hosting/supporter-access-latest-docker-images.mdx
@@ -81,10 +81,10 @@ You can also check what tags are available without applying them:
### Step 5: Restart your services
-After pulling the latest images, simply restart your services:
+After updating `docker-compose.yml`, recreate your services so they use the new images:
```bash
-./restart
+docker compose up -d
```
That's it! Your OpenPanel instance is now running the latest and greatest version.
@@ -96,7 +96,7 @@ Once you're set up, updating to the latest version is as simple as:
```bash
cd /path/to/self-hosting
./get_latest_images apply
-./restart
+docker compose up -d
```
This entire process takes less than a minute, giving you instant access to new features and fixes.
diff --git a/self-hosting/danger_wipe_everything b/self-hosting/danger_wipe_everything
deleted file mode 100755
index f2ba78303..000000000
--- a/self-hosting/danger_wipe_everything
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-# Set the project name if it's not the directory name
-# COMPOSE_PROJECT_NAME=your_project_name
-
-# Use the directory name as the project name if not set
-PROJECT_NAME=${COMPOSE_PROJECT_NAME:-$(basename "$(pwd)")}
-
-echo "Cleaning up Docker resources for project: $PROJECT_NAME"
-
-# Stop and remove containers, networks, and volumes
-echo "Stopping and removing containers, networks, and volumes..."
-docker compose down --volumes --remove-orphans
-
-# Remove any remaining project-specific volumes
-echo "Removing any remaining project volumes..."
-project_volumes=$(docker volume ls --filter name="$PROJECT_NAME" -q)
-if [ -n "$project_volumes" ]; then
- docker volume rm $project_volumes
-fi
-
-# Remove project-specific images
-echo "Removing project-specific images..."
-project_images=$(docker compose config --images)
-if [ -n "$project_images" ]; then
- docker rmi $project_images
-fi
-
-# Remove any dangling images
-echo "Removing dangling images..."
-docker image prune -f
-
-# Remove any dangling volumes
-echo "Removing dangling volumes..."
-docker volume prune -f
-
-echo "Cleanup complete. All project containers, images, volumes, and related resources have been removed."
-
-# List remaining containers, images, and volumes
-echo "Remaining containers:"
-docker ps -a
-echo "Remaining images:"
-docker images
-echo "Remaining volumes:"
-docker volume ls
diff --git a/self-hosting/export-for-cloud.sh b/self-hosting/export-for-cloud.sh
deleted file mode 100755
index 996277385..000000000
--- a/self-hosting/export-for-cloud.sh
+++ /dev/null
@@ -1,404 +0,0 @@
-#!/usr/bin/env bash
-#
-# Export OpenPanel ClickHouse data to gzipped JSONL, ready to be re-inserted
-# into another OpenPanel instance (e.g. OpenPanel Cloud).
-#
-# Run it on the self-hosted server:
-#
-# chmod +x export-for-cloud.sh
-# ./export-for-cloud.sh
-#
-# It finds the ClickHouse container by itself. If that fails — Coolify, Dokploy,
-# Portainer and friends all rename containers — point it at one explicitly:
-#
-# ./export-for-cloud.sh --list # show every candidate
-# ./export-for-cloud.sh --container a1b2c3d4 # container ID or name
-#
-# Every flag has an env-var equivalent; the flag wins.
-#
-# --container <id|name> CH_CONTAINER Docker container running ClickHouse
-# --out <dir> OUT_DIR Output directory (default ./op-export)
-# --project-id <a,b> PROJECT_ID Only these projects (default: all)
-# --from "2026-05-01" FROM Only rows with created_at >= this
-# --to "2026-08-16 12:00" TO Only rows with created_at < this
-# --tables "events ..." TABLES Subset of tables to export
-# --rows-per-file 100000 ROWS_PER_FILE Max rows per .jsonl.gz file
-# --db openpanel CH_DB ClickHouse database
-# --list List candidate containers and exit
-# --help
-#
-# CH_USER= / CH_PASSWORD= / CH_HOST= ClickHouse credentials (rarely needed)
-# GZIP=0 Write plain .jsonl instead of .jsonl.gz
-#
-# TABLES defaults to the four tables that actually need migrating: events,
-# sessions, profiles, groups. Everything else in ClickHouse is derived (all the
-# _mv views, cohort_members, cohort_metadata), staging (events_imports),
-# re-syncable (gsc_*), host-local (self_hosting, events_bots), or dead
-# (profile_aliases). Session replays are opt-in and rarely worth it:
-#
-# --tables "events sessions profiles groups session_replay_chunks"
-#
-# Typical migration flow:
-# 1. Full export: ./export-for-cloud.sh
-# 2. Ship it: tar czf op-export.tar.gz op-export && scp ...
-# 3. Cut the SDK over to cloud, note the exact time.
-# 4. Delta export: ./export-for-cloud.sh --from "<cutover time>" --out ./op-export-delta
-#
-set -euo pipefail
-
-CH_DB="${CH_DB:-openpanel}"
-OUT_DIR="${OUT_DIR:-./op-export}"
-ROWS_PER_FILE="${ROWS_PER_FILE:-100000}"
-PROJECT_ID="${PROJECT_ID:-}"
-FROM="${FROM:-}"
-TO="${TO:-}"
-GZIP="${GZIP:-1}"
-TABLES="${TABLES:-events sessions profiles groups}"
-CH_CONTAINER="${CH_CONTAINER:-}"
-LIST_ONLY=0
-
-die() {
- echo "❌ $*" >&2
- exit 1
-}
-
-# If ClickHouse dies half way through a file we must not leave a truncated
-# .jsonl.gz behind — the importer reads the directory, not the manifest, and
-# would import it as if it were complete.
-CURRENT_FILE=""
-cleanup_partial() {
- local code=$?
- if [[ $code -ne 0 && -n "$CURRENT_FILE" && -f "$CURRENT_FILE" ]]; then
- rm -f "$CURRENT_FILE"
- echo "🧹 Removed partial file: $CURRENT_FILE" >&2
- fi
- exit $code
-}
-trap cleanup_partial EXIT
-
-usage() {
- sed -n '2,/^set -euo/p' "$0" | sed 's/^# \{0,1\}//; $d'
-}
-
-while [[ $# -gt 0 ]]; do
- case "$1" in
- --container) CH_CONTAINER="${2:-}"; shift 2 ;;
- --out | --out-dir) OUT_DIR="${2:-}"; shift 2 ;;
- --project-id) PROJECT_ID="${2:-}"; shift 2 ;;
- --from) FROM="${2:-}"; shift 2 ;;
- --to) TO="${2:-}"; shift 2 ;;
- --tables) TABLES="${2:-}"; shift 2 ;;
- --rows-per-file) ROWS_PER_FILE="${2:-}"; shift 2 ;;
- --db) CH_DB="${2:-}"; shift 2 ;;
- --list | --list-containers) LIST_ONLY=1; shift ;;
- -h | --help) usage; exit 0 ;;
- *) die "Unknown option: $1 (try --help)" ;;
- esac
-done
-
-# ---------------------------------------------------------------------------
-# Locate a clickhouse-client we can talk to
-#
-# Container names are not portable: docker compose gives you
-# `self-hosting-op-ch-1`, Coolify/Dokploy give you `op-ch-<random>-<random>`,
-# and a host can easily run more than one ClickHouse. So we never guess by
-# name alone — a candidate only counts if it actually holds the OpenPanel
-# `events` table, and if several do we stop and make the user choose.
-# ---------------------------------------------------------------------------
-CH_AUTH=()
-if [[ -n "${CH_HOST:-}" ]]; then CH_AUTH+=(--host="$CH_HOST"); fi
-if [[ -n "${CH_USER:-}" ]]; then CH_AUTH+=(--user="$CH_USER"); fi
-if [[ -n "${CH_PASSWORD:-}" ]]; then CH_AUTH+=(--password="$CH_PASSWORD"); fi
-# Prints "1" when the container holds "$CH_DB.events", "0" otherwise.
-# `${arr[@]+...}` keeps the empty-array case working on bash 3.2 under `set -u`.
-probe_container() {
- docker exec "$1" clickhouse-client ${CH_AUTH[@]+"${CH_AUTH[@]}"} \
- --query "SELECT count() FROM system.tables WHERE database = '$CH_DB' AND name = 'events'" \
- </dev/null 2>/dev/null || echo 0
-}
-
-docker_ps() { docker ps --format '{{.ID}}\t{{.Names}}\t{{.Image}}' 2>/dev/null || true; }
-
-# Anything that smells like ClickHouse by image or by name, in that order.
-name_matched_containers() {
- docker_ps | awk -F'\t' 'tolower($3) ~ /clickhouse/ || tolower($2) ~ /clickhouse|op-ch/ { print }'
-}
-
-list_candidates() {
- local rows
- rows="$(docker_ps)"
- if [[ -z "$rows" ]]; then
- die "No running docker containers (is docker running, and do you need sudo?)."
- fi
- echo "🐳 Running containers, and whether they hold '$CH_DB.events':"
- echo
- printf ' %-14s %-42s %s\n' 'CONTAINER ID' 'NAME' 'OPENPANEL DATA'
- while IFS=$'\t' read -r cid cname cimage <&3; do
- if [[ -z "$cid" ]]; then continue; fi
- if [[ "$(probe_container "$cid")" == "1" ]]; then
- printf ' %-14s %-42s ✅ yes\n' "$cid" "$cname"
- else
- printf ' %-14s %-42s –\n' "$cid" "$cname"
- fi
- done 3<<<"$rows"
- echo
- echo " Then run: $0 --container <CONTAINER ID>"
- return 0
-}
-
-if [[ "$LIST_ONLY" == "1" ]]; then
- list_candidates
- exit 0
-fi
-
-CH=()
-if [[ -n "$CH_CONTAINER" ]]; then
- docker inspect "$CH_CONTAINER" >/dev/null 2>&1 ||
- die "No such container: '$CH_CONTAINER'. Run '$0 --list' to see what is available."
- if [[ "$(probe_container "$CH_CONTAINER")" != "1" ]]; then
- die "Container '$CH_CONTAINER' does not have a '$CH_DB.events' table. Wrong container, or wrong --db?"
- fi
- CH=(docker exec -i "$CH_CONTAINER" clickhouse-client)
-else
- # Probe every plausible container, then fall back to probing all of them —
- # a rebranded or retagged image should not stop the export.
- matches=()
- for scope in name_matched_containers docker_ps; do
- while IFS=$'\t' read -r cid cname cimage <&3; do
- [[ -z "$cid" ]] && continue
- if [[ "$(probe_container "$cid")" == "1" ]]; then
- matches+=("$cid|$cname")
- fi
- done 3<<<"$($scope)"
- if [[ ${#matches[@]} -gt 0 ]]; then break; fi
- done
-
- if [[ ${#matches[@]} -eq 1 ]]; then
- CH_CONTAINER="${matches[0]%%|*}"
- echo "🐳 ClickHouse container: ${matches[0]#*|} ($CH_CONTAINER)"
- CH=(docker exec -i "$CH_CONTAINER" clickhouse-client)
- elif [[ ${#matches[@]} -gt 1 ]]; then
- echo "❌ Found ${#matches[@]} containers with a '$CH_DB.events' table:" >&2
- for match in "${matches[@]}"; do
- printf ' %-14s %s\n' "${match%%|*}" "${match#*|}" >&2
- done
- die "Pick one: $0 --container <CONTAINER ID>"
- elif command -v clickhouse-client >/dev/null 2>&1; then
- echo "🖥️ Using clickhouse-client from PATH"
- CH=(clickhouse-client)
- else
- echo "❌ Could not find a ClickHouse container holding '$CH_DB.events'." >&2
- echo >&2
- list_candidates >&2 || true
- die "Set the container explicitly with --container <id>."
- fi
-fi
-
-CH+=(--database="$CH_DB" --max_execution_time=0)
-if [[ -n "${CH_HOST:-}" ]]; then CH+=(--host="$CH_HOST"); fi
-if [[ -n "${CH_USER:-}" ]]; then CH+=(--user="$CH_USER"); fi
-if [[ -n "${CH_PASSWORD:-}" ]]; then CH+=(--password="$CH_PASSWORD"); fi
-
-# stdin is closed on purpose: `docker exec -i` would otherwise swallow the
-# day-list we are reading from in the export loop below.
-chq() { "${CH[@]}" --query="$1" </dev/null; }
-
-chq "SELECT 1" >/dev/null || die "Could not query ClickHouse database '$CH_DB'."
-
-# ---------------------------------------------------------------------------
-# Per-table export rules
-#
-# sessions / profiles / groups are Replacing- or CollapsingMergeTree, so they
-# need FINAL (+ a sign/deleted filter) to get one current row per entity.
-# `country` is a LowCardinality(FixedString(2)) which JSON-encodes empty values
-# as "" — we normalise it to "" so the JSONL stays clean.
-# ---------------------------------------------------------------------------
-COUNTRY_FIX="* EXCEPT (country), replaceAll(toString(country), '\\0', '') AS country"
-
-tbl_select() {
- case "$1" in
- events | sessions) echo "$COUNTRY_FIX" ;;
- *) echo "*" ;;
- esac
-}
-
-tbl_from() {
- case "$1" in
- sessions | profiles | groups) echo "$1 FINAL" ;;
- *) echo "$1" ;;
- esac
-}
-
-tbl_extra() {
- case "$1" in
- sessions) echo "AND sign > 0" ;;
- groups) echo "AND deleted = 0" ;;
- *) echo "" ;;
- esac
-}
-
-# Deterministic tiebreaker so LIMIT/OFFSET paging never skips or repeats a row.
-tbl_order() {
- case "$1" in
- session_replay_chunks) echo "started_at, session_id, chunk_index" ;;
- *) echo "created_at, id" ;;
- esac
-}
-
-# Column used to slice the export into daily windows. Every exportable table
-# keys on a DateTime64(3), so the bounds below are always toDateTime64.
-tbl_date() {
- case "$1" in
- session_replay_chunks) echo "started_at" ;;
- *) echo "created_at" ;;
- esac
-}
-
-# ---------------------------------------------------------------------------
-# Filters
-# ---------------------------------------------------------------------------
-project_filter="1"
-if [[ -n "$PROJECT_ID" ]]; then
- project_filter="project_id IN ('${PROJECT_ID//,/','}')"
-fi
-
-build_range_filter() {
- local col="$1" out=""
- if [[ -n "$FROM" ]]; then out="$out AND $col >= toDateTime64('$FROM', 3)"; fi
- if [[ -n "$TO" ]]; then out="$out AND $col < toDateTime64('$TO', 3)"; fi
- echo "$out"
-}
-
-mkdir -p "$OUT_DIR"
-MANIFEST="$OUT_DIR/manifest.jsonl"
-: >"$MANIFEST"
-
-ch_version="$(chq "SELECT version()")"
-echo "📦 ClickHouse $ch_version — exporting to $OUT_DIR"
-echo " projects: ${PROJECT_ID:-<all>} range: ${FROM:-<start>} .. ${TO:-<now>}"
-echo
-
-declare -a summary_tables=()
-declare -a summary_rows=()
-declare -a summary_files=()
-
-for table in $TABLES; do
- exists="$(chq "SELECT count() FROM system.tables WHERE database = '$CH_DB' AND name = '$table'")"
- if [[ "$exists" == "0" ]]; then
- echo "⏭️ $table — table does not exist, skipping"
- continue
- fi
-
- select_expr="$(tbl_select "$table")"
- from_expr="$(tbl_from "$table")"
- extra="$(tbl_extra "$table")"
- order_expr="$(tbl_order "$table")"
- date_col="$(tbl_date "$table")"
- where="WHERE $project_filter $extra$(build_range_filter "$date_col")"
-
- table_dir="$OUT_DIR/$table"
- mkdir -p "$table_dir"
-
- echo "▶️ $table"
-
- table_rows=0
- table_files=0
-
- # One pass to learn how many rows live on each day, then page through the
- # days. Day-sized windows keep OFFSET tiny, so paging stays cheap.
- while IFS=$'\t' read -r day next_day day_rows <&3; do
- [[ -z "$day" ]] && continue
-
- offset=0
- part=0
- day_written=0
- while ((offset < day_rows)); do
- file="$table_dir/${table}-${day}-$(printf '%04d' "$part").jsonl"
-
- sql="SELECT $select_expr
- FROM $from_expr
- $where
- AND $date_col >= toDateTime64('$day', 3)
- AND $date_col < toDateTime64('$next_day', 3)
- ORDER BY $order_expr
- LIMIT $ROWS_PER_FILE OFFSET $offset
- FORMAT JSONEachRow"
-
- if [[ "$GZIP" == "1" ]]; then file="$file.gz"; fi
- CURRENT_FILE="$file"
- if [[ "$GZIP" == "1" ]]; then
- chq "$sql" | gzip -c >"$file"
- written="$(gzip -dc "$file" | wc -l | tr -d ' ')"
- else
- chq "$sql" >"$file"
- written="$(wc -l <"$file" | tr -d ' ')"
- fi
- CURRENT_FILE=""
-
- # Count what actually landed rather than what the counting pass predicted.
- # On a live system the two differ: rows written between the two queries
- # still make it into the file, and a stale estimate would make the
- # verifier cry wolf.
- printf '{"table":"%s","file":"%s","day":"%s","rows":%s}\n' \
- "$table" "$(basename "$file")" "$day" "$written" >>"$MANIFEST"
-
- day_written=$((day_written + written))
- offset=$((offset + ROWS_PER_FILE))
- part=$((part + 1))
- table_files=$((table_files + 1))
- done
-
- table_rows=$((table_rows + day_written))
- printf ' %s %8s rows\n' "$day" "$day_written"
- done 3< <(chq "SELECT toDate($date_col) AS d, toDate($date_col) + 1 AS d_next, count() AS c
- FROM $from_expr
- $where
- GROUP BY d
- HAVING c > 0
- ORDER BY d")
-
- echo " ✅ $table: $table_rows rows in $table_files file(s)"
- echo
-
- summary_tables+=("$table")
- summary_rows+=("$table_rows")
- summary_files+=("$table_files")
-done
-
-# ---------------------------------------------------------------------------
-# Metadata — lets the import side sanity-check counts and remap project ids
-# ---------------------------------------------------------------------------
-project_ids="$(chq "SELECT groupUniqArray(project_id) FROM events WHERE $project_filter" 2>/dev/null | tr -d '\n' || true)"
-
-{
- echo '{'
- printf ' "exported_at": "%s",\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
- printf ' "clickhouse_version": "%s",\n' "$ch_version"
- printf ' "database": "%s",\n' "$CH_DB"
- printf ' "project_id_filter": "%s",\n' "$PROJECT_ID"
- printf ' "from": "%s",\n' "$FROM"
- printf ' "to": "%s",\n' "$TO"
- printf ' "project_ids_in_events": "%s",\n' "$project_ids"
- echo ' "tables": {'
- for i in "${!summary_tables[@]}"; do
- sep=","
- if ((i == ${#summary_tables[@]} - 1)); then sep=""; fi
- printf ' "%s": { "rows": %s, "files": %s }%s\n' \
- "${summary_tables[$i]}" "${summary_rows[$i]}" "${summary_files[$i]}" "$sep"
- done
- echo ' }'
- echo '}'
-} >"$OUT_DIR/_meta.json"
-
-echo "🎉 Done."
-echo
-echo " Projects found: $project_ids"
-for i in "${!summary_tables[@]}"; do
- printf ' %-16s %10s rows\n' "${summary_tables[$i]}" "${summary_rows[$i]}"
-done
-echo
-echo " Output: $OUT_DIR ($(du -sh "$OUT_DIR" | cut -f1))"
-echo " Manifest: $MANIFEST"
-echo
-echo " Ship it with:"
-echo " tar czf op-export.tar.gz -C \"$(dirname "$OUT_DIR")\" \"$(basename "$OUT_DIR")\""
diff --git a/self-hosting/import-to-cloud.mjs b/self-hosting/import-to-cloud.mjs
index b27e2bc01..0a023bf7e 100755
--- a/self-hosting/import-to-cloud.mjs
+++ b/self-hosting/import-to-cloud.mjs
@@ -1,7 +1,7 @@
#!/usr/bin/env node
import { createHash } from 'node:crypto';
/**
- * Import an `export-for-cloud.sh` dump into another OpenPanel ClickHouse.
+ * Import an `openpanel export` dump into another OpenPanel ClickHouse.
*
* Runs on plain Node (>= 18), no dependencies.
*
diff --git a/self-hosting/logs b/self-hosting/logs
deleted file mode 100755
index 036da2276..000000000
--- a/self-hosting/logs
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-docker compose logs -f
\ No newline at end of file
diff --git a/self-hosting/package-lock.json b/self-hosting/package-lock.json
deleted file mode 100644
index dcb3038b0..000000000
--- a/self-hosting/package-lock.json
+++ /dev/null
@@ -1,1102 +0,0 @@
-{
- "name": "@openpanel/self-hosting",
- "version": "1.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "@openpanel/self-hosting",
- "version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "@types/inquirer": "^9.0.7",
- "@types/js-yaml": "^4.0.9",
- "bcrypt": "^5.1.1",
- "inquirer": "^9.3.1",
- "jiti": "^1.21.6",
- "js-yaml": "^4.1.0"
- },
- "devDependencies": {
- "@types/bcrypt": "^5.0.2"
- }
- },
- "node_modules/@inquirer/figures": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.10.tgz",
- "integrity": "sha512-Ey6176gZmeqZuY/W/nZiUyvmb1/qInjcpiZjXWi6nON+nxJpD1bxtSoBxNliGISae32n6OwbY+TSXPZ1CfS4bw==",
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/@mapbox/node-pre-gyp": {
- "version": "1.0.11",
- "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz",
- "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",
- "dependencies": {
- "detect-libc": "^2.0.0",
- "https-proxy-agent": "^5.0.0",
- "make-dir": "^3.1.0",
- "node-fetch": "^2.6.7",
- "nopt": "^5.0.0",
- "npmlog": "^5.0.1",
- "rimraf": "^3.0.2",
- "semver": "^7.3.5",
- "tar": "^6.1.11"
- },
- "bin": {
- "node-pre-gyp": "bin/node-pre-gyp"
- }
- },
- "node_modules/@types/bcrypt": {
- "version": "5.0.2",
- "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.2.tgz",
- "integrity": "sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==",
- "dev": true,
- "dependencies": {
- "@types/node": "*"
- }
- },
- "node_modules/@types/inquirer": {
- "version": "9.0.7",
- "resolved": "https://registry.npmjs.org/@types/inquirer/-/inquirer-9.0.7.tgz",
- "integrity": "sha512-Q0zyBupO6NxGRZut/JdmqYKOnN95Eg5V8Csg3PGKkP+FnvsUZx1jAyK7fztIszxxMuoBA6E3KXWvdZVXIpx60g==",
- "dependencies": {
- "@types/through": "*",
- "rxjs": "^7.2.0"
- }
- },
- "node_modules/@types/js-yaml": {
- "version": "4.0.9",
- "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz",
- "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg=="
- },
- "node_modules/@types/node": {
- "version": "22.13.4",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.4.tgz",
- "integrity": "sha512-ywP2X0DYtX3y08eFVx5fNIw7/uIv8hYUKgXoK8oayJlLnKcRfEYCxWMVE1XagUdVtCJlZT1AU4LXEABW+L1Peg==",
- "dependencies": {
- "undici-types": "~6.20.0"
- }
- },
- "node_modules/@types/through": {
- "version": "0.0.33",
- "resolved": "https://registry.npmjs.org/@types/through/-/through-0.0.33.tgz",
- "integrity": "sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==",
- "dependencies": {
- "@types/node": "*"
- }
- },
- "node_modules/abbrev": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
- },
- "node_modules/agent-base": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
- "dependencies": {
- "debug": "4"
- },
- "engines": {
- "node": ">= 6.0.0"
- }
- },
- "node_modules/ansi-escapes": {
- "version": "4.3.2",
- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",
- "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",
- "dependencies": {
- "type-fest": "^0.21.3"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dependencies": {
- "color-convert": "^2.0.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
- "node_modules/aproba": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
- "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="
- },
- "node_modules/are-we-there-yet": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",
- "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",
- "deprecated": "This package is no longer supported.",
- "dependencies": {
- "delegates": "^1.0.0",
- "readable-stream": "^3.6.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/argparse": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
- },
- "node_modules/balanced-match": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
- },
- "node_modules/base64-js": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/bcrypt": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz",
- "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==",
- "hasInstallScript": true,
- "dependencies": {
- "@mapbox/node-pre-gyp": "^1.0.11",
- "node-addon-api": "^5.0.0"
- },
- "engines": {
- "node": ">= 10.0.0"
- }
- },
- "node_modules/bl": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
- "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
- "dependencies": {
- "buffer": "^5.5.0",
- "inherits": "^2.0.4",
- "readable-stream": "^3.4.0"
- }
- },
- "node_modules/brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "node_modules/buffer": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "dependencies": {
- "base64-js": "^1.3.1",
- "ieee754": "^1.1.13"
- }
- },
- "node_modules/chalk": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "dependencies": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/chalk?sponsor=1"
- }
- },
- "node_modules/chardet": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
- "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="
- },
- "node_modules/chownr": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
- "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/cli-cursor": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
- "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
- "dependencies": {
- "restore-cursor": "^3.1.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/cli-spinners": {
- "version": "2.9.2",
- "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",
- "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/cli-width": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz",
- "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==",
- "engines": {
- "node": ">= 12"
- }
- },
- "node_modules/clone": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
- "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
- "engines": {
- "node": ">=0.8"
- }
- },
- "node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- },
- "node_modules/color-support": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
- "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
- "bin": {
- "color-support": "bin.js"
- }
- },
- "node_modules/concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
- },
- "node_modules/console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="
- },
- "node_modules/debug": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
- "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
- "dependencies": {
- "ms": "^2.1.3"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/defaults": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
- "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",
- "dependencies": {
- "clone": "^1.0.2"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
- },
- "node_modules/detect-libc": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz",
- "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
- },
- "node_modules/external-editor": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
- "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
- "dependencies": {
- "chardet": "^0.7.0",
- "iconv-lite": "^0.4.24",
- "tmp": "^0.0.33"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/fs-minipass": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
- "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
- "dependencies": {
- "minipass": "^3.0.0"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/fs-minipass/node_modules/minipass": {
- "version": "3.3.6",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
- "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
- },
- "node_modules/gauge": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",
- "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",
- "deprecated": "This package is no longer supported.",
- "dependencies": {
- "aproba": "^1.0.3 || ^2.0.0",
- "color-support": "^1.1.2",
- "console-control-strings": "^1.0.0",
- "has-unicode": "^2.0.1",
- "object-assign": "^4.1.1",
- "signal-exit": "^3.0.0",
- "string-width": "^4.2.3",
- "strip-ansi": "^6.0.1",
- "wide-align": "^1.1.2"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/glob": {
- "version": "7.2.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
- "deprecated": "Glob versions prior to v9 are no longer supported",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.1.1",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="
- },
- "node_modules/https-proxy-agent": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
- "dependencies": {
- "agent-base": "6",
- "debug": "4"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/iconv-lite": {
- "version": "0.4.24",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
- "dependencies": {
- "safer-buffer": ">= 2.1.2 < 3"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/ieee754": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
- "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
- "dependencies": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "node_modules/inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
- },
- "node_modules/inquirer": {
- "version": "9.3.7",
- "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-9.3.7.tgz",
- "integrity": "sha512-LJKFHCSeIRq9hanN14IlOtPSTe3lNES7TYDTE2xxdAy1LS5rYphajK1qtwvj3YmQXvvk0U2Vbmcni8P9EIQW9w==",
- "dependencies": {
- "@inquirer/figures": "^1.0.3",
- "ansi-escapes": "^4.3.2",
- "cli-width": "^4.1.0",
- "external-editor": "^3.1.0",
- "mute-stream": "1.0.0",
- "ora": "^5.4.1",
- "run-async": "^3.0.0",
- "rxjs": "^7.8.1",
- "string-width": "^4.2.3",
- "strip-ansi": "^6.0.1",
- "wrap-ansi": "^6.2.0",
- "yoctocolors-cjs": "^2.1.2"
- },
- "engines": {
- "node": ">=18"
- }
- },
- "node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-interactive": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
- "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/is-unicode-supported": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/jiti": {
- "version": "1.21.7",
- "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",
- "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
- "bin": {
- "jiti": "bin/jiti.js"
- }
- },
- "node_modules/js-yaml": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
- "dependencies": {
- "argparse": "^2.0.1"
- },
- "bin": {
- "js-yaml": "bin/js-yaml.js"
- }
- },
- "node_modules/log-symbols": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
- "dependencies": {
- "chalk": "^4.1.0",
- "is-unicode-supported": "^0.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/make-dir": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
- "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
- "dependencies": {
- "semver": "^6.0.0"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/make-dir/node_modules/semver": {
- "version": "6.3.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
- "bin": {
- "semver": "bin/semver.js"
- }
- },
- "node_modules/mimic-fn": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/minimatch": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
- "dependencies": {
- "brace-expansion": "^1.1.7"
- },
- "engines": {
- "node": "*"
- }
- },
- "node_modules/minipass": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
- "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/minizlib": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
- "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
- "dependencies": {
- "minipass": "^3.0.0",
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">= 8"
- }
- },
- "node_modules/minizlib/node_modules/minipass": {
- "version": "3.3.6",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
- "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
- "dependencies": {
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/mkdirp": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
- "bin": {
- "mkdirp": "bin/cmd.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/ms": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
- },
- "node_modules/mute-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz",
- "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==",
- "engines": {
- "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
- }
- },
- "node_modules/node-addon-api": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",
- "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA=="
- },
- "node_modules/node-fetch": {
- "version": "2.7.0",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
- "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
- "dependencies": {
- "whatwg-url": "^5.0.0"
- },
- "engines": {
- "node": "4.x || >=6.0.0"
- },
- "peerDependencies": {
- "encoding": "^0.1.0"
- },
- "peerDependenciesMeta": {
- "encoding": {
- "optional": true
- }
- }
- },
- "node_modules/nopt": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
- "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
- "dependencies": {
- "abbrev": "1"
- },
- "bin": {
- "nopt": "bin/nopt.js"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/npmlog": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
- "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",
- "deprecated": "This package is no longer supported.",
- "dependencies": {
- "are-we-there-yet": "^2.0.0",
- "console-control-strings": "^1.1.0",
- "gauge": "^3.0.0",
- "set-blocking": "^2.0.0"
- }
- },
- "node_modules/object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/onetime": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
- "dependencies": {
- "mimic-fn": "^2.1.0"
- },
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/ora": {
- "version": "5.4.1",
- "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",
- "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",
- "dependencies": {
- "bl": "^4.1.0",
- "chalk": "^4.1.0",
- "cli-cursor": "^3.1.0",
- "cli-spinners": "^2.5.0",
- "is-interactive": "^1.0.0",
- "is-unicode-supported": "^0.1.0",
- "log-symbols": "^4.1.0",
- "strip-ansi": "^6.0.0",
- "wcwidth": "^1.0.1"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/os-tmpdir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/readable-stream": {
- "version": "3.6.2",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/restore-cursor": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
- "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
- "dependencies": {
- "onetime": "^5.1.0",
- "signal-exit": "^3.0.2"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "deprecated": "Rimraf versions prior to v4 are no longer supported",
- "dependencies": {
- "glob": "^7.1.3"
- },
- "bin": {
- "rimraf": "bin.js"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/run-async": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz",
- "integrity": "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==",
- "engines": {
- "node": ">=0.12.0"
- }
- },
- "node_modules/rxjs": {
- "version": "7.8.1",
- "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
- "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
- "dependencies": {
- "tslib": "^2.1.0"
- }
- },
- "node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
- },
- "node_modules/semver": {
- "version": "7.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
- },
- "node_modules/signal-exit": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="
- },
- "node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
- "node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dependencies": {
- "has-flag": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/tar": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
- "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
- "dependencies": {
- "chownr": "^2.0.0",
- "fs-minipass": "^2.0.0",
- "minipass": "^5.0.0",
- "minizlib": "^2.1.1",
- "mkdirp": "^1.0.3",
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/tmp": {
- "version": "0.0.33",
- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
- "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
- "dependencies": {
- "os-tmpdir": "~1.0.2"
- },
- "engines": {
- "node": ">=0.6.0"
- }
- },
- "node_modules/tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
- },
- "node_modules/tslib": {
- "version": "2.8.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="
- },
- "node_modules/type-fest": {
- "version": "0.21.3",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/undici-types": {
- "version": "6.20.0",
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
- "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="
- },
- "node_modules/util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
- },
- "node_modules/wcwidth": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
- "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",
- "dependencies": {
- "defaults": "^1.0.3"
- }
- },
- "node_modules/webidl-conversions": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
- },
- "node_modules/whatwg-url": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
- "dependencies": {
- "tr46": "~0.0.3",
- "webidl-conversions": "^3.0.0"
- }
- },
- "node_modules/wide-align": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
- "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
- "dependencies": {
- "string-width": "^1.0.2 || 2 || 3 || 4"
- }
- },
- "node_modules/wrap-ansi": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
- "dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
- },
- "node_modules/yallist": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
- },
- "node_modules/yoctocolors-cjs": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz",
- "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- }
- }
-}
diff --git a/self-hosting/package.json b/self-hosting/package.json
deleted file mode 100644
index ce369b031..000000000
--- a/self-hosting/package.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "@openpanel/self-hosting",
- "version": "1.0.0",
- "description": "",
- "scripts": {
- "quiz": "jiti quiz.ts"
- },
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "@types/inquirer": "^9.0.7",
- "@types/js-yaml": "^4.0.9",
- "bcrypt": "^5.1.1",
- "inquirer": "^9.3.1",
- "jiti": "^1.21.6",
- "js-yaml": "^4.1.0"
- },
- "devDependencies": {
- "@types/bcrypt": "^5.0.2"
- }
-}
diff --git a/self-hosting/quiz.ts b/self-hosting/quiz.ts
deleted file mode 100644
index ea06b8b48..000000000
--- a/self-hosting/quiz.ts
+++ /dev/null
@@ -1,483 +0,0 @@
-import { randomBytes } from 'node:crypto';
-import fs from 'node:fs';
-import os from 'node:os';
-import path from 'node:path';
-import bcrypt from 'bcrypt';
-import inquirer from 'inquirer';
-import yaml from 'js-yaml';
-
-// Cloud runs 24. Override by exporting KAFKA_EVENTS_TOPIC_PARTITIONS before
-// running./setup — see the footgun warning in redpanda/bootstrap.template.yaml
-// before changing this after first boot.
-const KAFKA_EVENTS_TOPIC_PARTITIONS_DEFAULT = 24;
-const KAFKA_EVENTS_TOPIC_PARTITIONS =
- process.env.KAFKA_EVENTS_TOPIC_PARTITIONS ||
- String(KAFKA_EVENTS_TOPIC_PARTITIONS_DEFAULT);
-
-let envs = {
- CLICKHOUSE_URL: '',
- REDIS_URL: '',
- DATABASE_URL: '',
- DOMAIN_NAME: '',
- COOKIE_SECRET: generatePassword(32),
- ADMIN_USERNAME: 'admin',
- ADMIN_PASSWORD: generatePassword(24),
- // AES-256 key for at-rest encryption (GSC tokens, 2FA secrets). Must be
- // exactly 32 bytes / 64 hex chars, so it can't reuse generatePassword.
- ENCRYPTION_KEY: randomBytes(32).toString('hex'),
- RESEND_API_KEY: '',
- EMAIL_SENDER: '',
- KAFKA_EVENTS_TOPIC_PARTITIONS,
-};
-
-type EnvVars = typeof envs;
-
-const addEnvs = (env: Partial<EnvVars>) => {
- envs = {
- ...envs,
- ...env,
- };
-};
-
-function generatePassword(length: number) {
- const charset =
- 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
- let password = '';
- for (let i = 0, n = charset.length; i < length; ++i) {
- password += charset.charAt(Math.floor(Math.random() * n));
- }
- return password;
-}
-
-function writeCaddyfile(domainName: string, basicAuthPassword: string) {
- const caddyfileTemplatePath = path.resolve(
- __dirname,
- 'caddy',
- 'Caddyfile.template'
- );
- const caddyfilePath = path.resolve(__dirname, 'caddy', 'Caddyfile');
- fs.writeFileSync(
- caddyfilePath,
- fs
- .readFileSync(caddyfileTemplatePath, 'utf-8')
- .replaceAll('$DOMAIN_NAME', domainName.replace(/https?:\/\//, ''))
- .replaceAll(
- '$BASIC_AUTH_PASSWORD',
- bcrypt.hashSync(basicAuthPassword, 10)
- )
- .replaceAll(
- '$SSL_CONFIG',
- domainName.includes('localhost:443') ? '\n\ttls internal' : ''
- )
- );
-}
-
-export interface DockerComposeFile {
- version: string;
- services: Record<
- string,
- {
- image: string;
- restart: string;
- ports: string[];
- volumes: string[];
- depends_on?: Record<string, { condition: string }> | string[];
- }
- >;
- volumes?: Record<string, unknown>;
-}
-
-const stripTrailingSlash = (str: string) =>
- str.endsWith('/') ? str.slice(0, -1) : str;
-
-function searchAndReplaceDockerCompose(replacements: [string, string][]) {
- const dockerComposePath = path.resolve(__dirname, 'docker-compose.yml');
- const dockerComposeContent = fs.readFileSync(dockerComposePath, 'utf-8');
- const dockerComposeReplaced = replacements.reduce(
- (acc, [search, replace]) => acc.replaceAll(search, replace),
- dockerComposeContent
- );
-
- fs.writeFileSync(dockerComposePath, dockerComposeReplaced);
-}
-
-function removeServiceFromDockerCompose(serviceName: string) {
- const dockerComposePath = path.resolve(__dirname, 'docker-compose.yml');
- const dockerComposeContent = fs.readFileSync(dockerComposePath, 'utf-8');
-
- const dockerCompose = yaml.load(dockerComposeContent) as DockerComposeFile;
-
- if (dockerCompose.services[serviceName]) {
- delete dockerCompose.services[serviceName];
- console.log(`Service '${serviceName}' has been removed.`);
- } else {
- console.log(`Service '${serviceName}' not found.`);
- // return;
- }
-
- Object.keys(dockerCompose.services).forEach((service) => {
- const serviceConfig = dockerCompose.services[service];
- if (serviceConfig?.depends_on) {
- if (Array.isArray(serviceConfig.depends_on)) {
- // Handle legacy array format
- serviceConfig.depends_on = serviceConfig.depends_on.filter(
- (dep) => dep !== serviceName
- );
- } else {
- // Handle new object format
- if (serviceConfig.depends_on[serviceName]) {
- delete serviceConfig.depends_on[serviceName];
- }
- }
- }
- });
-
- Object.keys(dockerCompose.volumes ?? {}).forEach((volume) => {
- if (dockerCompose.volumes && volume.startsWith(serviceName)) {
- delete dockerCompose.volumes[volume];
- }
- });
-
- if (Object.keys(dockerCompose.volumes ?? {}).length === 0) {
- delete dockerCompose.volumes;
- }
-
- const newYaml = yaml.dump(dockerCompose, {
- lineWidth: -1,
- });
- fs.writeFileSync(dockerComposePath, newYaml);
-}
-
-function writeEnvFile(envs: EnvVars) {
- const envTemplatePath = path.resolve(__dirname, '.env.template');
- const envPath = path.resolve(__dirname, '.env');
- const envTemplate = fs.readFileSync(envTemplatePath, 'utf-8');
-
- const newEnvFile = envTemplate
- .replace('$COOKIE_SECRET', envs.COOKIE_SECRET)
- .replace('$ADMIN_USERNAME', envs.ADMIN_USERNAME)
- .replace('$ADMIN_PASSWORD', envs.ADMIN_PASSWORD)
- .replace('$ENCRYPTION_KEY', envs.ENCRYPTION_KEY)
- .replace('$CLICKHOUSE_URL', envs.CLICKHOUSE_URL)
- .replace('$REDIS_URL', envs.REDIS_URL)
- .replace('$DATABASE_URL', envs.DATABASE_URL)
- .replace('$DATABASE_URL_DIRECT', envs.DATABASE_URL)
- .replace('$DASHBOARD_URL', stripTrailingSlash(envs.DOMAIN_NAME))
- .replace('$API_URL', `${stripTrailingSlash(envs.DOMAIN_NAME)}/api`)
- .replace('$RESEND_API_KEY', envs.RESEND_API_KEY)
- .replace('$EMAIL_SENDER', envs.EMAIL_SENDER)
- .replace(
- '$KAFKA_EVENTS_TOPIC_PARTITIONS',
- envs.KAFKA_EVENTS_TOPIC_PARTITIONS
- );
-
- fs.writeFileSync(
- envPath,
- newEnvFile
- .split('\n')
- .filter((line) => {
- return !line.includes('=""');
- })
- .join('\n')
- );
-}
-
-// Mirrors the partition count into the Redpanda bootstrap config so the
-// broker's default_topic_partitions can never drift from what .env declares
-// — see the footgun warning in redpanda/bootstrap.template.yaml.
-function writeRedpandaBootstrap(partitions: string) {
- const templatePath = path.resolve(
- __dirname,
- 'redpanda',
- 'bootstrap.template.yaml'
- );
- const bootstrapPath = path.resolve(__dirname, 'redpanda', 'bootstrap.yaml');
-
- fs.writeFileSync(
- bootstrapPath,
- fs
- .readFileSync(templatePath, 'utf-8')
- .replaceAll('$KAFKA_EVENTS_TOPIC_PARTITIONS', partitions)
- );
-}
-
-async function initiateOnboarding() {
- const T = ' ';
- const message = [
- '',
- 'DISCLAIMER: This script is provided as-is and without warranty. Use at your own risk.',
- '',
- '',
- 'WORTH MENTIONING: This is an early version of the script and it may not cover all scenarios.',
- ' We recommend using our cloud service for production workloads until we release a stable version of self-hosting.',
- '',
- '',
- "With that said let's get started! 🤠",
- '',
- `Hey and welcome to Openpanel's self-hosting setup! 🚀\n`,
- 'Before you continue, please make sure you have the following:',
- `${T}1. Docker and Docker Compose installed on your machine.`,
- `${T}2. A domain name that you can use for this setup and point it to this machine's ip`,
- 'For more information you can read our article on self-hosting at https://openpanel.dev/docs/self-hosting/self-hosting\n',
- '',
- '',
- 'Consider supporting us by becoming a supporter: https://openpanel.dev/supporter (pay what you want and help us keep the lights on)',
- ];
-
- console.log(
- '******************************************************************************\n'
- );
- console.log(message.join('\n'));
- console.log(
- '\n******************************************************************************'
- );
-
- // Domain name
-
- const domain = await inquirer.prompt([
- {
- type: 'input',
- name: 'DOMAIN_NAME',
- message: "What's the domain name you want to use?",
- default: process.env.DEBUG ? 'http://localhost' : undefined,
- prefix: '🌐',
- validate: (value) => {
- if (value.startsWith('http://') || value.startsWith('https://')) {
- return true;
- }
-
- return 'Please enter a valid domain name. Should start with "http://" or "https://"';
- },
- },
- ]);
-
- addEnvs(domain);
-
- // Dependencies
-
- const dependenciesResponse = await inquirer.prompt([
- {
- type: 'checkbox',
- name: 'dependencies',
- message: 'Which of these dependencies will you need us to install?',
- choices: ['Clickhouse', 'Redis', 'Postgres'],
- default: ['Clickhouse', 'Redis', 'Postgres'],
- prefix: '📦',
- },
- ]);
-
- if (!dependenciesResponse.dependencies.includes('Clickhouse')) {
- const clickhouseResponse = await inquirer.prompt([
- {
- type: 'input',
- name: 'CLICKHOUSE_URL',
- message:
- 'Enter your ClickHouse URL (format: http://user:pw@host:port/db):',
- default: process.env.DEBUG ? 'http://op-ch:8123/openpanel' : undefined,
- },
- ]);
-
- addEnvs(clickhouseResponse);
- }
-
- if (!dependenciesResponse.dependencies.includes('Redis')) {
- const redisResponse = await inquirer.prompt([
- {
- type: 'input',
- name: 'REDIS_URL',
- message: 'Enter your Redis URL (format: redis://user:pw@host:port/db):',
- default: process.env.DEBUG ? 'redis://op-kv:6379' : undefined,
- },
- ]);
-
- addEnvs(redisResponse);
- }
-
- if (!dependenciesResponse.dependencies.includes('Postgres')) {
- const dbResponse = await inquirer.prompt([
- {
- type: 'input',
- name: 'DATABASE_URL',
- message:
- 'Enter your Database URL (format: postgresql://user:pw@host:port/db):',
- default: process.env.DEBUG
- ? 'postgresql://postgres:postgres@op-db:5432/postgres?schema=public'
- : undefined,
- },
- ]);
-
- addEnvs(dbResponse);
- }
-
- // Proxy
-
- const proxyResponse = await inquirer.prompt([
- {
- type: 'list',
- name: 'proxy',
- message:
- 'Do you already have a web service setup or would you like us to install Caddy with SSL?',
- choices: ['Install Caddy with SSL', 'Bring my own'],
- },
- ]);
-
- // OS
-
- const cpus = await inquirer.prompt([
- {
- type: 'input',
- name: 'CPUS',
- default: Math.max(Math.floor(os.cpus().length / 2), 1),
- message:
- 'How many workers do you want to spawn (in many cases 1-2 is enough)?',
- validate: (value) => {
- const parsed = Number.parseInt(value, 10);
-
- if (Number.isNaN(parsed)) {
- return 'Please enter a valid number';
- }
-
- if (parsed < 1) {
- return 'Please enter a number greater than 0';
- }
-
- return true;
- },
- },
- ]);
-
- const resend = await inquirer.prompt<{
- RESEND_API_KEY: string;
- }>([
- {
- type: 'input',
- name: 'RESEND_API_KEY',
- message: 'Enter your Resend API key (optional):',
- },
- ]);
-
- if (resend.RESEND_API_KEY) {
- const emailSender = await inquirer.prompt<{
- email: string;
- }>([
- {
- type: 'input',
- name: 'EMAIL_SENDER',
- default: `no-reply@${envs.DOMAIN_NAME.replace(/https?:\/\//, '')}`,
- message: 'The email which will be used to send out emails:',
- validate: (value) => {
- if (!value) {
- return 'Field is required';
- }
-
- if (!value.includes('@')) {
- return 'Please enter a valid email';
- }
-
- return true;
- },
- },
- ]);
-
- addEnvs({
- ...resend,
- ...emailSender,
- });
- }
-
- const basicAuth = await inquirer.prompt<{
- password: string;
- }>([
- {
- type: 'input',
- name: 'password',
- default: generatePassword(12),
- message: 'Give a password for basic auth',
- validate: (value) => {
- if (!value) {
- return 'Please enter a valid password';
- }
-
- if (value.length < 5) {
- return 'Password should be atleast 5 characters';
- }
-
- return true;
- },
- },
- ]);
-
- console.log('');
- console.log('Creating .env file...\n');
-
- writeEnvFile({
- CLICKHOUSE_URL: envs.CLICKHOUSE_URL || 'http://op-ch:8123/openpanel',
- REDIS_URL: envs.REDIS_URL || 'redis://op-kv:6379',
- DATABASE_URL:
- envs.DATABASE_URL ||
- 'postgresql://postgres:postgres@op-db:5432/postgres?schema=public',
- DOMAIN_NAME: envs.DOMAIN_NAME,
- COOKIE_SECRET: envs.COOKIE_SECRET,
- ADMIN_USERNAME: envs.ADMIN_USERNAME,
- ADMIN_PASSWORD: envs.ADMIN_PASSWORD,
- RESEND_API_KEY: envs.RESEND_API_KEY || '',
- EMAIL_SENDER: envs.EMAIL_SENDER || '',
- KAFKA_EVENTS_TOPIC_PARTITIONS: envs.KAFKA_EVENTS_TOPIC_PARTITIONS,
- });
-
- console.log('Writing Redpanda bootstrap config...\n');
- writeRedpandaBootstrap(envs.KAFKA_EVENTS_TOPIC_PARTITIONS);
-
- console.log('Updating docker-compose.yml file...\n');
- fs.copyFileSync(
- path.resolve(__dirname, 'docker-compose.template.yml'),
- path.resolve(__dirname, 'docker-compose.yml')
- );
-
- if (envs.CLICKHOUSE_URL) {
- removeServiceFromDockerCompose('op-ch');
- removeServiceFromDockerCompose('op-ch-migrator');
- }
-
- if (envs.REDIS_URL) {
- removeServiceFromDockerCompose('op-kv');
- }
-
- if (envs.DATABASE_URL) {
- removeServiceFromDockerCompose('op-db');
- }
-
- if (proxyResponse.proxy === 'Bring my own') {
- removeServiceFromDockerCompose('op-proxy');
- } else {
- writeCaddyfile(envs.DOMAIN_NAME, basicAuth.password);
- }
-
- searchAndReplaceDockerCompose([['$OP_WORKER_REPLICAS', cpus.CPUS]]);
-
- console.log(
- [
- '======================================================================',
- 'Here are some good things to know before you continue:',
- '',
- '1. Commands:',
- '\t- ./start (example: ./start)',
- '\t- ./stop (example: ./stop)',
- '\t- ./logs (example: ./logs)',
- '\t- ./rebuild (example: ./rebuild op-dashboard)',
- '\t- ./update (example: ./update) pulls the latest docker images and restarts the service',
- '',
- '2. Danger zone!',
- '\t- ./danger_wipe_everything (example: ./danger_wipe_everything)',
- '',
- '3. More about self-hosting: https://openpanel.dev/docs/self-hosting/self-hosting',
- '======================================================================',
- '',
- `Start OpenPanel with "./start" inside the self-hosting directory`,
- '',
- '',
- ].join('\n')
- );
-}
-
-initiateOnboarding();
diff --git a/self-hosting/rebuild b/self-hosting/rebuild
deleted file mode 100755
index cff854d69..000000000
--- a/self-hosting/rebuild
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-NAME=$1
-
-docker compose build $NAME
-docker compose up -d --no-deps --force-recreate $NAME
\ No newline at end of file
diff --git a/self-hosting/redpanda/bootstrap.template.yaml b/self-hosting/redpanda/bootstrap.template.yaml
index df7769a82..344d07746 100644
--- a/self-hosting/redpanda/bootstrap.template.yaml
+++ b/self-hosting/redpanda/bootstrap.template.yaml
@@ -3,7 +3,7 @@
# after that point (including an auto-created `events` topic); it does not
# repartition anything that already exists.
#
-# Generated as redpanda/bootstrap.yaml by ./setup from this template — do not
+# Generated as redpanda/bootstrap.yaml by `openpanel init` from this template — do not
# edit the generated file directly, it is overwritten on the next setup run.
#
# FOOTGUN (ADR-004 risk 6): the producer partitions by
diff --git a/self-hosting/restart b/self-hosting/restart
deleted file mode 100755
index 909028b16..000000000
--- a/self-hosting/restart
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-docker compose restart
\ No newline at end of file
diff --git a/self-hosting/setup b/self-hosting/setup
index a4157a70b..71ba4a0fa 100755
--- a/self-hosting/setup
+++ b/self-hosting/setup
@@ -1,85 +1,14 @@
-#!/bin/bash
+#!/bin/sh
+# The setup scripts were replaced by the `openpanel` CLI.
+cat >&2 <<'MSG'
+This script was replaced by the openpanel CLI.
-NODE_VERSION=20.15.0
+ Install it: curl -fsSL https://raw.githubusercontent.com/Openpanel-dev/openpanel/main/self-hosting/install.sh | sh
-# Function to install Node.js
-install_nvm_and_node() {
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
- source ~/.bashrc
- export NVM_DIR="$HOME/.nvm"
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
-}
+ New install: openpanel init
+ Upgrade: openpanel upgrade (repairs an existing install for the new version)
+ Check: openpanel doctor
-# Function to install Docker
-install_docker() {
- echo "Installing Docker..."
- # Add Docker's official GPG key:
- sudo apt-get update
- sudo apt-get install -y ca-certificates curl gnupg
- sudo install -m 0755 -d /etc/apt/keyrings
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
- sudo chmod a+r /etc/apt/keyrings/docker.gpg
-
- # Add the repository to Apt sources:
- echo \
- "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
- $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
- sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- sudo apt-get update
-
- # Install Docker packages:
- sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
-
- # Add current user to docker group
- sudo usermod -aG docker $USER
-
- echo "Docker installed successfully. You may need to log out and back in for group changes to take effect."
-}
-
-# Check if Node.js is installed
-if ! command -v node >/dev/null 2>&1; then
- echo "********************************************************************************"
- echo "********************************************************************************"
- echo "Do you wish to automatically install Node.js version $NODE_VERSION using NVM? (yes/no)"
- echo "********************************************************************************"
- echo "********************************************************************************"
- read user_choice
-
- case $user_choice in
- [Yy]* )
- install_nvm_and_node;;
- [Nn]* )
- echo "Please install Node.js version $NODE_VERSION by yourself as per your preference. Exiting script."
- exit 1;;
- * )
- echo "Invalid input. Please answer yes or no."
- exit 1;;
- esac
-fi
-
-# Check if Docker is installed
-if ! command -v docker >/dev/null 2>&1; then
- echo "********************************************************************************"
- echo "********************************************************************************"
- echo "Docker is not installed. Do you wish to install Docker? (yes/no)"
- echo "********************************************************************************"
- echo "********************************************************************************"
- read docker_choice
-
- case $docker_choice in
- [Yy]* )
- install_docker;;
- [Nn]* )
- echo "Skipping Docker installation.";;
- * )
- echo "Invalid input. Skipping Docker installation.";;
- esac
-else
- echo "Docker is already installed."
-fi
-
-
-npm install
-npm run quiz
\ No newline at end of file
+Docs: https://openpanel.dev/docs/self-hosting/self-hosting
+MSG
+exit 1
diff --git a/self-hosting/start b/self-hosting/start
deleted file mode 100755
index d4d791afc..000000000
--- a/self-hosting/start
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-docker compose up -d
\ No newline at end of file
diff --git a/self-hosting/stop b/self-hosting/stop
deleted file mode 100755
index a986179d7..000000000
--- a/self-hosting/stop
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-docker compose down
\ No newline at end of file
diff --git a/self-hosting/tsconfig.json b/self-hosting/tsconfig.json
deleted file mode 100644
index 882d925b9..000000000
--- a/self-hosting/tsconfig.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/tsconfig",
- "compilerOptions": {
- "target": "ES2020",
- "lib": ["dom", "dom.iterable", "esnext"],
- "allowJs": true,
- "checkJs": true,
- "skipLibCheck": true,
- "strict": true,
- "forceConsistentCasingInFileNames": true,
- "noEmit": true,
- "esModuleInterop": true,
- "module": "esnext",
- "moduleResolution": "node",
- "resolveJsonModule": true,
- "isolatedModules": true,
- "jsx": "preserve",
- "incremental": true,
- "noUncheckedIndexedAccess": true,
- "baseUrl": ".",
- "paths": {
- "@/*": ["./src/*"]
- },
- "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
- },
- "exclude": ["node_modules", "build", "dist"],
- "include": ["."]
-}
diff --git a/self-hosting/update b/self-hosting/update
index f872dce4f..71ba4a0fa 100755
--- a/self-hosting/update
+++ b/self-hosting/update
@@ -1,8 +1,14 @@
-#!/bin/bash
+#!/bin/sh
+# The setup scripts were replaced by the `openpanel` CLI.
+cat >&2 <<'MSG'
+This script was replaced by the openpanel CLI.
-git pull
+ Install it: curl -fsSL https://raw.githubusercontent.com/Openpanel-dev/openpanel/main/self-hosting/install.sh | sh
-echo "Updating services"
-docker compose up -d --pull always --remove-orphans
+ New install: openpanel init
+ Upgrade: openpanel upgrade (repairs an existing install for the new version)
+ Check: openpanel doctor
-echo "Done"
+Docs: https://openpanel.dev/docs/self-hosting/self-hosting
+MSG
+exit 1