LinuxCommandLibrary

pharo

TLDR

Launch Pharo image

$ pharo [image.image]
copy
Run headless
$ pharo --headless [image.image] [script.st]
copy
Evaluate expression
$ pharo [image.image] eval "[expression]"
copy
Start with GUI
$ pharo-ui [image.image]
copy

SYNOPSIS

pharo [options] image [arguments]

DESCRIPTION

pharo is the launcher for Pharo Smalltalk, a modern, open-source Smalltalk environment. Pharo uses image-based persistence where the entire environment state is saved.

PARAMETERS

--headless

Run without GUI.
--no-quit
Don't quit after script.
eval
Evaluate Smalltalk expression.
--version
Show version.
image
Pharo image file.

EXAMPLES

$ # Launch GUI
pharo-ui Pharo.image

# Run script headless
pharo --headless Pharo.image script.st

# Evaluate and print
pharo Pharo.image eval "3 + 4"

# Save and quit
pharo Pharo.image eval "Smalltalk snapshot: true andQuit: true"

# Run tests
pharo --headless Pharo.image test MyPackage
copy

IMAGE MANAGEMENT

$ # Download fresh image
curl https://get.pharo.org/64/ | bash

# Create clean image
pharo Pharo.image save MyProject
copy

CAVEATS

Requires Pharo VM and image. Image files are platform-specific. Changes persist in image.

HISTORY

Pharo forked from Squeak Smalltalk in 2008, focusing on clean, innovative Smalltalk development.

SEE ALSO

squeak(1), gst(1), smalltalk(1)

Copied to clipboard