Skip to content

mvslovers/mvsmf-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mvs

A modern Command Line Interface (CLI) client for MVS 3.8j mvs/MF REST API.

Installation

go install github.com/yourusername/mvs@latest

Configuration

The connection settings can be configured in multiple ways (in order of priority):

  1. Command line parameters:
mvs --host http://your-mvs-host --port 8080 --user your-username --password your-password
  1. Environment variables:
export MVS_HOST=http://your-mvs-host
export MVS_PORT=8080
export MVS_USER=your-username
export MVS_PASSWORD=your-password
  1. .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

Usage

Dataset Management

# List datasets
mvs dataset list

# Show dataset content
mvs dataset get USER.TEST.JCL

Job Management

# Submit a job
mvs job submit USER.TEST.JCL

# List active jobs
mvs job list

# Show job output
mvs job output JOB12345

Development

  1. Clone the repository:
git clone https://github.com/yourusername/mvs.git
cd mvs
  1. Install dependencies:
go mod download
  1. Build:
go build

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages