Skip to main content

A shell utility for XXL-Admin

Project description

xxl-admin-sh

安装

要求python>=3.9

pip install xxl-admin-sh

安装成功后可直接用xxl进入程序

xxl

用法

首次使用会使用默认配置,退出后会自动保存到配置文件

帮助命令

help # 可显示所有可用命令

# 此外任意命令、子命令可通过-h选项显示帮助信息,比如
job -h
group -h

配置命令

config env-set #设置环境配置
config list-clusters #当前环境可用集群列表
config add-cluster #添加集群到当前环境
config remove-cluster #从当前环境移除集群

切换命令

goto prod #可切环境
goto prod cn #可切环境+集群
goto cn #可在当前环境切集群

可显示所有可用命令

执行器列表

group list
group list -a #显示所有集群下面的

任务列表

job list
job list xxx #模糊搜索
job list xxx -a #模糊搜索所有集群下面的
job list DemoJobHanlder #精确搜索

任务执行

job run DemoJobHanlder
job run DemoJobHanlder -a #所有集群都执行
job debug DemoJobHanlder # 自动使用本地地址触发

新增任务

job add --exec DemoJobHanlder --group 10 --cron "0 0 0 * * ?" --title 示例任务2

更新任务

job update DemoJobHanlder --cron "0 0 10 * * ?" --title 示例任务2

开启、停止任务

job on DemoJobHanlder #开启
job off DemoJobHanlder #停止

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xxl_admin_sh-0.0.8.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xxl_admin_sh-0.0.8-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file xxl_admin_sh-0.0.8.tar.gz.

File metadata

  • Download URL: xxl_admin_sh-0.0.8.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.11.5

File hashes

Hashes for xxl_admin_sh-0.0.8.tar.gz
Algorithm Hash digest
SHA256 54cc52cdc5be4624c8f277d6770447d1f954008edbbe40216731cbf4a33f274c
MD5 dd7c50b309932091ce629b6f942f2bbe
BLAKE2b-256 a87a796aef6fd839d67000f4fffb6058eb45091997f5b4311a85eb7dc2dd3ebd

See more details on using hashes here.

File details

Details for the file xxl_admin_sh-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: xxl_admin_sh-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.11.5

File hashes

Hashes for xxl_admin_sh-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dec5df4a1a738e6138458173aef802c26ac798aca4c0bfe2c7b95c98f5e129e9
MD5 11ff5f027105885a2a25379c6317348e
BLAKE2b-256 dcf76d17b6341c2bb662d92fa73a3f92fb71c4ee4a508446642d21feeef48cf6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page