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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nhile-portal-cli

v1.2.0

Published

NhiLe Portal CLI - tạo portal mới cho NhiLe Holdings ecosystem

Readme

nhile-portal-cli

CLI tạo và quản lý portal cho hệ sinh thái NhiLe Holdings.

Cài đặt

Sử dụng trực tiếp không cài đặt (khuyến nghị)

npx nhile-portal-cli

Cài đặt global

npm install -g nhile-portal-cli

⚠️ Lưu ý tên package

Tên package trên npm là nhile-portal-cli (có chữ portal). KHÔNG dùng các biến thể sai sau — chúng sẽ fail:

  • npx nhile-pipeline-cli — sai tên, không tồn tại trên npm
  • npm install nhile-pipeline-cli — sai tên
  • git clone github.com/vanductan-NLT/nhile-pipeline-cli — repo source private

Tương tự, trước đây CLI có bin alias nhile-pipeline — alias này đã bị xoá từ v1.0.3. Chỉ dùng nhile-portal-cli hoặc create-nhile-portal.


Sử dụng

Tạo portal mới

nhile-portal-cli create
# hoặc chạy trực tiếp (không cần gõ create)
nhile-portal-cli
# hoặc
create-nhile-portal

Lệnh này sẽ chạy wizard tương tác, hỏi lần lượt:

  1. Tên portal – định dạng kebab-case (chữ thường, số, dấu gạch ngang)
  2. Architecture URL – đường dẫn HTTPS tới file kiến trúc
  3. Cluster – chọn nquoc hoặc nedu
  4. GitHub OAuth – tự động mở trình duyệt để xác thực tài khoản GitHub

Sau khi xác thực thành công, CLI sẽ:

  1. Tạo scaffold trên GitHub (repo cá nhân + fork org).
  2. Clone repo cá nhân về ./<portalName>.
  3. Thêm remote org trỏ về fork của org (có sẵn PAT để push được ngay).
  4. Ghi orgRemoteUrl, portalName, architectureUrl, scaffoldedAt vào nhile.config.json trong thư mục đã clone.

Sau đó chỉ cần:

cd <portalName>
git push origin main              # push lên repo cá nhân
git push org main:incoming        # sync lên org/incoming để IT review

Nếu thư mục ./<portalName> đã tồn tại, CLI sẽ skip phần clone — repo trên GitHub vẫn được tạo bình thường.


Kiểm tra phiên bản template

nhile-portal-cli doctor

Lệnh này so sánh phiên bản template đang dùng trong thư mục hiện tại với phiên bản mới nhất trên server.

  • Yêu cầu: file NHILE_TEMPLATE_VERSION phải tồn tại trong thư mục gốc của portal.
  • Exit code 0 – template đang dùng phiên bản mới nhất.
  • Exit code 1 – có bản cập nhật mới.

Biến môi trường

| Biến | Mô tả | Mặc định | |------|--------|----------| | NHILE_BOT_URL | URL Bot API | https://nhile-pipeline.vercel.app |


Phát triển

# Cài dependencies
npm install

# Build
npm run build

# Build ở chế độ watch
npm run dev

Yêu cầu

  • Node.js 18 trở lên
  • git có sẵn trong PATH (CLI shell-out để clone + add remote)
  • Kết nối internet
  • Tài khoản GitHub (cho OAuth device flow)

License

Proprietary © NhiLe Holdings