CLI
Note: pi is based on
kubectl
.
pi
is a command line interface for running commands against Pi cloud. This overview covers pi
syntax, describes the command operations, and provides common examples.
Install
We currently provides official CLI builds for Linux and Mac.
Linux x86
Mac OS X 10.7 (lion) or later
Configure pi
In order for pi to find and access a Pi regiion, it needs a configuration file, which, by default, is located at ~/.pi/config
.
Operations
Find more information at https://github.com/hyperhq/pi.
Basic Commands (Beginner):
create
Create a resource.
Basic Commands (Intermediate):
get
Display one or many resourcesdelete
Delete resources by resources and namesrun
Run a pod with particular image.name
Name a resource
Troubleshooting and Debugging Commands:
describe
Show details of a specific resource or group of resourceslogs
Print the logs for a container in a podexec
Execute a command in a container
Other Commands:
config
Modify pi config fileshelp
Help about any commandinfo
Print region and user info
Usage: pi [flags] [options]
Use "pi --help" for more information about a given command. Use "pi options" for a list of global command-line options (applies to all commands).
Last updated