npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mmhostinger-setup

v1.9.0

Published

Auto setup an wordpress website on hostinger hpanel

Downloads

105

Readme

Auto WP CLI

Auto WP CLI là một công cụ dòng lệnh (CLI) để tự động thiết lập WordPress trên Hostinger. Công cụ này cho phép bạn triển khai trang web mới, với nhiều tùy chọn cấu hình linh hoạt.

Cài đặt

Để sử dụng Auto WP CLI, bạn cần có Node.js và npm được cài đặt trên hệ thống của bạn. Bạn có thể cài đặt các phụ thuộc và chương trình bằng cách chạy:

npm install -g mmhostinger-setup

Sử dụng

Câu lệnh chính

Chạy chương trình bằng cách sử dụng:

export APIKEY=[Your-api-key]
export GITHUB_TOKEN=[Your-github-token]
export CLOUDFLARE_API_KEY=[Your-cf-api-key] 
export CLOUDFLARE_EMAIL=[Your-cf-email]

mmhostinger [command] [options]

Lệnh build

Lệnh build được sử dụng để xây dựng và triển khai một trang web mới.

Cú pháp

mmhostinger build <action> [options]

Tham số

  • <action>: Hành động bạn muốn thực hiện. Có thể là:
    • blank: Tạo một trang web mới trống.
    • source: Tạo một trang web từ nguồn đã cung cấp.

Tùy chọn

  • -a, --account <string>: [Bắt buộc] Tài khoản Hostinger của bạn.
  • -p, --password <string>: [Bắt buộc] Mật khẩu Hostinger của bạn.
  • -wa, --wp-account <string>
  • -wp, --wp-password <string>: [Bắt buộc] Mật khẩu quản trị viên WordPress mặc định của bạn.
  • -d, --domain <string...>: Các tên miền của bạn, phân cách bởi khoảng trắng.
  • -s, --source <string...>: URL nguồn của bạn (tệp zip), phân cách bởi khoảng trắng.
  • -fd, --file-domain <string>: Đường dẫn tệp CSV chứa các tên miền của bạn (2 cột: domain, source). Ví dụ: domains.csv.
  • -hl, --headless <string>: Chế độ headless của trình duyệt. Mặc định là 'false'. Có thể đặt là 'true' hoặc 'false'.
  • -o, --log-dir <string>: Thư mục lưu trữ log đầu ra. Mặc định là '.'.
  • -c, --ccu <number>: Số lượng đồng thời (concurrency). Mặc định là 1.
  • -ma, --manage-account <string>
  • -sd, --server-domain <string>
  • -pk, --private-key-path <string>
  • -cf, --cf-account-id <string>

Ví dụ

  1. Tạo một trang web mới trống với một tên miền:

    mmhostinger build blank -a your_account -p your_password -wp your_wp_password -d example.com
  2. Tạo một trang web từ nguồn zip:

    mmhostinger build source -a your_account -p your_password -wp your_wp_password -d example.com -s http://example.com/source.zip
  3. Tạo trang web từ tệp CSV:

    • Tệp CSV (domains.csv):

      domain,source
      example.com,http://example.com/source.zip
      another-example.com,http://another-example.com/source.zip
    • Lệnh:

      mmhostinger build source -a your_account -p your_password -wp your_wp_password -fd domains.csv
  4. Chạy với chế độ headless và thiết lập concurrency:

    mmhostinger build blank -a your_account -p your_password -wp your_wp_password -d example.com -hl true -c 5

Ghi chú

  • Đảm bảo rằng bạn đã cấu hình đúng các thông tin tài khoản và mật khẩu.
  • Kiểm tra các lỗi và thông báo log trong thư mục log được chỉ định nếu có vấn đề xảy ra.

Nếu bạn có bất kỳ câu hỏi nào hoặc cần thêm sự hỗ trợ, vui lòng liên hệ với nhóm phát triển hoặc kiểm tra tài liệu và mã nguồn của dự án.