A modern Command Line Interface (CLI) client for MVS 3.8j mvs/MF REST API.
go install github.com/yourusername/mvs@latest
The connection settings can be configured in multiple ways (in order of priority):
- Command line parameters:
mvs --host http://your-mvs-host --port 8080 --user your-username --password your-password
- Environment variables:
export MVS_HOST=http://your-mvs-host
export MVS_PORT=8080
export MVS_USER=your-username
export MVS_PASSWORD=your-password
- .env file in one of these locations (in order of priority):
- Current directory (./.env)
- User's home directory ($HOME/.mvsmf/.env)
- System-wide (/etc/mvsmf/.env)
# Copy the example file
cp .env.example .env
# Edit the .env file with your settings
nano .env
The .env file should have the following structure:
MVS_HOST=http://your-mvs-host
MVS_PORT=8080
MVS_USER=your-username
MVS_PASSWORD=your-password
# List datasets
mvs dataset list
# Show dataset content
mvs dataset get USER.TEST.JCL
# Submit a job
mvs job submit USER.TEST.JCL
# List active jobs
mvs job list
# Show job output
mvs job output JOB12345
- Clone the repository:
git clone https://github.com/yourusername/mvs.git
cd mvs
- Install dependencies:
go mod download
- Build:
go build
MIT License