承接 syofyanzuhad/sshelf-cli 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

syofyanzuhad/sshelf-cli

Composer 安装命令:

composer require syofyanzuhad/sshelf-cli

包简介

Sshelf CLI — Elegant command-line interface for managing your Sshelf instance.

README 文档

README

Elegant command-line interface for managing your Sshelf instance.

Sshelf CLI allows you to manage your servers, SSH keys, tags, and execute remote commands directly from your terminal.

Installation

Prerequisites

  • PHP 8.2 or higher

Local Setup

  1. Clone the repository:
    git clone https://github.com/your-username/sshelf-cli.git
    cd sshelf-cli
  2. Install dependencies:
    composer install
  3. Use the sshelf binary:
    ./sshelf --version

Global Installation (Optional)

To use sshelf from anywhere, create a symlink:

sudo ln -s "$(pwd)/sshelf" /usr/local/bin/sshelf

Getting Started

1. Authentication

Login to your Sshelf instance using your API URL and Bearer Token:

sshelf auth:login

Check your connection status:

sshelf ping

2. Manage Servers

List all your servers:

sshelf server:list

Add a new server:

sshelf server:add --name="Web-01" --host="1.2.3.4" --username="root"

3. Remote Execution

Execute a command on a remote server by ID:

sshelf exec 1 "uptime"

Run a saved Quick Command:

sshelf qc:run 5

Core Commands

Command Description
auth:login Authenticate with your Sshelf instance
auth:status Show current authentication status
ping Check connectivity to your Sshelf instance
server:list List all servers (supports --json, --group)
server:add Add a new server
exec Execute a command on a remote server
qc:run Run a saved quick command
key:list List all SSH keys
tag:list List all tags
completion Generate shell completion scripts

Shell Completion

Generate completion scripts for your favorite shell:

# Zsh
sshelf completion zsh > /usr/local/share/zsh/site-functions/_sshelf

# Bash
sshelf completion bash >> ~/.bashrc

License

Sshelf CLI is open-source software licensed under the MIT license.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固