
Company News
Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.
1panel-rocket-cli
Advanced tools
A command-line tool for deploying static websites to 1Panel server.
# Install globally with npm
npm install -g 1panel-rocket-cli
# Or with yarn
yarn global add 1panel-rocket-cli
# Or use directly with npx
npx 1panel-rocket-cli -p ./dist -d example.com
# Deploy a static website
1panel-rocket -p ./dist -d example.com
# Or use the short alias
1p -p ./dist -d example.com
| Option | Alias | Description | Environment Variable |
|---|---|---|---|
| --baseUrl | -e | Base URL of the 1Panel API | ONEPANEL_BASE_URL |
| --apiKey | -a | API key for the 1Panel API | ONEPANEL_API_KEY |
| --path | -p | Path to the static website build directory | - |
| --domain | -d | Domain name of the website | - |
| --yes | -y | Skip all prompts and use default values | - |
# Using environment variables
export ONEPANEL_BASE_URL="http://your.1panel.com"
export ONEPANEL_API_KEY="your_api_key"
1panel-rocket -p ./dist -d example.com
# Using command line arguments
1panel-rocket -e "http://your.1panel.com" -a "your_api_key" -p ./dist -d example.com
# Interactive mode (without specifying domain)
1panel-rocket -e "http://your.1panel.com" -a "your_api_key" -p ./dist
# You will be prompted to select a website from your 1Panel server
By default, the following files and directories are ignored and will not be uploaded:
You can easily integrate 1Panel Rocket CLI with GitHub Actions to automate the deployment of your static website.
Create a .github/workflows/deploy.yml file in your repository:
name: Build and Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Deploy to 1Panel
env:
ONEPANEL_BASE_URL: ${{ secrets.ONEPANEL_BASE_URL }}
ONEPANEL_API_KEY: ${{ secrets.ONEPANEL_API_KEY }}
run: |
npx 1panel-rocket-cli -p ./dist -d example.com
Make sure to add these secrets in your GitHub repository:
ONEPANEL_BASE_URL: The URL of your 1Panel serverONEPANEL_API_KEY: Your 1Panel API key# Clone the repository
git clone https://github.com/ruibaby/1panel-rocket-cli.git
cd 1panel-rocket-cli
# Install dependencies
npm install
# Link the package locally
npm link
# Run in development mode
1panel-rocket -p ./dist -d example.com
MIT
FAQs
A CLI tool for deploy static website to 1Panel.
The npm package 1panel-rocket-cli receives a total of 12 weekly downloads. As such, 1panel-rocket-cli popularity was classified as not popular.
We found that 1panel-rocket-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.

Research
/Security News
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.