Pig LogoPig Docs
SDK Reference

CLI

Command-line interface for managing Pig machines

The Pig CLI provides commands for managing and interacting with your machines.

It is included in the Python SDK pip install.

List Machines

To list all machines connected to your Pig account:

# List all machines
pig ls
 
# Example output:
ID                         state    Created
-------------------------  -------  ----------------
M-6HNGAXR-NT0B3VA-P33Q0R2  RUNNING  2025-02-10 23:31

This shows:

  • The machine ID (starts with M-)
  • The current state of the machine
  • When the machine was created

Other Commands

More CLI commands will be available in future releases.

On this page