An indispensable tool that streamlines the front-end CI/CD workflow.
Ensure that your Node.js version is 18 or higher.
npm install truck-cli -g
# OR
yarn global add truck-cli
Usage: tk [options] [command]
A command-line tool for streamlining the front-end CI/CD workflow.
Options:
-V, --version output the version number
-l, --lang <lang> Specify the language (en or zh)
-h, --help display help for command
Commands:
checkupdate Check Truck-CLI version for updates.
release Update the version of the current repository.
config [options] Set the runtime config of truck-cli.
🚩 checkupdate: This command is used to check the version of Truck-CLI. When you execute this command, Truck-CLI will check the latest version of itself and display the result. If the version of Truck-CLI is not the latest, it will guide you to update Truck-CLI.
🚩 release: You are supposed to have a package.json file in your project. Please note that the version field in your package.json file must be a valid semantic version. Execute the tk release in your project root directory to update the version of your project. And you can use the config command to satisfy different use cases.
🚩 config: This command is used to set the runtime config of Truck-CLI. When you set a config, the config will be saved in the .truckrc file. You can set the following configs: checkMerge and targetBranch. These configs will be used to control the behavior of Truck-CLI.
🚩 lang: This command is used to set the language of the current repository. Includes inquirer prompt and command messages. Current support languages are: en、zh-CN.
Truck-CLI is MIT-licensed.