返回下载
官方文档

YAMLforge 桌面文档

简单安装和使用的完整指南

选择您的操作系统

要求

You need the following installed:

  • Python 3.6+ - Download from python.org if not installed
  • pip - Comes with Python

Important

Make sure to check "Add Python to PATH" during Python installation.

安装步骤

1

Verify Python Installation

Open PowerShell or Command Prompt and run:

python --version

You should see "Python 3.x.x". If you get an error, install Python first.

2

Install PyYAML Library

Install the required library for YAMLforge:

pip install pyyaml

You should see "Successfully installed" message.

3

Download YAMLforge

Download "yamlforge.py" from the download page.

The file is usually saved to your Downloads folder.

4

Navigate to Downloads Folder

In PowerShell, navigate to your Downloads folder:

cd $env:USERPROFILE\Downloads

Now you're in the folder where yamlforge.py is located.

5

Verify Installation

Run the help command to verify everything works:

python yamlforge.py --help

If you see the help message, installation is complete!

示例

Convert YAML to JSON

python yamlforge.py config.yaml config.json

Convert JSON to YAML

python yamlforge.py data.json data.yaml

Output to screen (no file output)

python yamlforge.py config.yaml

Interactive mode

python yamlforge.py -i

In interactive mode, you can type or paste YAML/JSON directly. Type "quit" to exit.

故障排除

还没有下载?

激活您的许可证并立即下载 YAMLforge。