[PR #4322] [MERGED] feat: add API token to install output #5656

Closed
opened 2026-10-31 20:48:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4322
Author: @abdalrahmanx9
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @MHSanaei

Base: main ← Head: feat/api-token-install


📝 Commits (4)

  • 8f45792 feat: add API token to install output
  • 68e8277 Merge branch 'main' into feat/api-token-install
  • 8f7de57 fix(install): adapt -getApiToken CLI to multi-token service
  • f656dd3 Merge branch 'main' into feat/api-token-install

📊 Changes

2 files changed (+31 additions, -0 deletions)

View changed files

📝 install.sh (+4 -0)
📝 main.go (+27 -0)

📄 Description

Summary

Adds the panel API token to the installation completion banner and a
-getApiToken CLI flag for easy retrieval in automation scripts.

Changes

  • main.go: Added -getApiToken flag to the setting subcommand
    (follows existing -getCert pattern). Outputs apiToken: <48-char token>
    for easy shell parsing.
  • install.sh: Retrieves and displays the API token in the "Panel
    Installation Complete!" banner after SSL setup, right below the Access
    URL line.

Refs: #4296


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/4322 **Author:** [@abdalrahmanx9](https://github.com/abdalrahmanx9) **Created:** 5/12/2026 **Status:** ✅ Merged **Merged:** 5/14/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/api-token-install` --- ### 📝 Commits (4) - [`8f45792`](https://github.com/MHSanaei/3x-ui/commit/8f4579215e19dc1d9614feab2e3f6547807d26e1) feat: add API token to install output - [`68e8277`](https://github.com/MHSanaei/3x-ui/commit/68e8277f927cd371ab57898712cdc4a0e98014ef) Merge branch 'main' into feat/api-token-install - [`8f7de57`](https://github.com/MHSanaei/3x-ui/commit/8f7de576af314a234a6e128aecb44af0186df54a) fix(install): adapt -getApiToken CLI to multi-token service - [`f656dd3`](https://github.com/MHSanaei/3x-ui/commit/f656dd37af781a39807fbda8ad15dba9261697ab) Merge branch 'main' into feat/api-token-install ### 📊 Changes **2 files changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `install.sh` (+4 -0) 📝 `main.go` (+27 -0) </details> ### 📄 Description ## Summary Adds the panel API token to the installation completion banner and a `-getApiToken` CLI flag for easy retrieval in automation scripts. ### Changes - **main.go**: Added `-getApiToken` flag to the `setting` subcommand (follows existing `-getCert` pattern). Outputs `apiToken: <48-char token>` for easy shell parsing. - **install.sh**: Retrieves and displays the API token in the "Panel Installation Complete!" banner after SSL setup, right below the Access URL line. Refs: #4296 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:26 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5656
No description provided.