Commands Overview
Pipeline provides three main commands to meet different usage scenarios.
Command List
run
Run Pipeline directly on your local machine. This is the most commonly used command.
bash
pipeline run [options]Use Cases:
- Local development and testing
- CI/CD pipeline execution
- Automation script execution
Documentation: run command
server
Start a Pipeline service that provides Web Console and REST API.
bash
pipeline server [options]Use Cases:
- Production deployment
- Web interface management
- REST API integration
- Queue management
Documentation: server command
client
Connect to a Pipeline Server and execute Pipeline via WebSocket.
bash
pipeline client [options]Use Cases:
- Remote Pipeline execution
- CI/CD integration
- Distributed execution
Documentation: client command
Command Selection Guide
Local Development
Use the run command:
bash
pipeline run -c pipeline.yamlService Deployment
Use the server command:
bash
pipeline server -p 8080Remote Execution
Use the client command:
bash
pipeline client -c pipeline.yaml -s ws://server:8080Command Combinations
Server + Client Mode
- Start Server:
bash
pipeline server -p 8080- Connect with Client:
bash
pipeline client -c pipeline.yaml -s ws://localhost:8080This mode is suitable for:
- Centralized Pipeline management
- Multi-client execution
- Queue and concurrency control
Environment Variables
All commands support setting options via environment variables:
bash
export PIPELINE_CONFIG=pipeline.yaml
export PIPELINE_WORKDIR=/tmp/pipeline
pipeline runConfiguration Files
All commands support configuration files, searched in the following order:
- File specified by
-ccommand-line argument .pipeline.yaml(current directory).go-idp/pipeline.yaml(current directory)
Debug Mode
All commands support debug mode:
bash
DEBUG=1 pipeline run -c pipeline.yaml
DEBUG=1 pipeline server
DEBUG=1 pipeline client -c pipeline.yaml -s ws://localhost:8080Debug mode will output detailed execution information.
