承接 t3/cli-config 相关项目开发

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

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

t3/cli-config

最新稳定版本:1.0.1

Composer 安装命令:

composer require t3/cli-config

包简介

TYPO3 CMS extension to provide a command to set or unset global system settings on CLI.

README 文档

README

A TYPO3 CMS extension that provides a command-line interface (CLI) for setting or unsetting global system settings.

This extension leverages the capabilities of Helmut Hummel's helhum/typo3-console package.

Requirements

  • TYPO3 v13.x
  • PHP 8.2 or higher
  • Cannot be installed alongside helhum/typo3-console due to conflicts.

Installation

Install this extension like any other TYPO3 CMS extension.

For direct installation via TYPO3 Extension Repository (TER), visit: https://extensions.typo3.org/extension/cli_config

For installation using Composer:

composer require t3/cli-config

Important: After installation, make sure to clear all caches to register and activate the newly included Symfony command.

Usage of command configuration:set

Adds a new entry to the TYPO3 CLI command list, allowing configuration adjustments directly from the CLI.

Syntax

vendor/bin/typo3 configuration:set [options] [--] <path> [<value>]

Arguments

  • path: The path to the system configuration (e.g., SYS/displayErrors).
  • value: The new value to set for the given configuration path (optional if using --unset).

Options

  • --unset: Removes the entire entry at the specified configuration path.

Examples

Setting a value

vendor/bin/typo3 configuration:set SYS/displayErrors 1

Unsetting a value

vendor/bin/typo3 configuration:set --unset SYS/displayErrors

Setting negative numbers

To set a negative number, use -- before the value to prevent the CLI from interpreting it as an option:

vendor/bin/typo3 configuration:set -- SYS/displayErrors -1

Otherwise you will get an error like:

The "-1" option does not exist.

Additional Resources

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-04-26