semmons99 edited this page Sep 13, 2010 · 5 revisions

>pik help commands

add Adds another ruby location to pik.
benchmark,bench Runs benchmarks with all versions that pik is aware of
config Adds/modifies configuration options.
default Switches back to the default settings.
devkit Configures devkit settings.
gem Runs the gem command with all versions that pik is aware of.
gemsync Duplicates gems from the current version to the one specified.
help Displays help information.
implode Removes your pik configuration.
info,checkup,cu Displays information about the current ruby version.
install,in Downloads and installs different ruby versions.
list,ls Lists ruby versions that pik is aware of.
rake Runs the rake command with all versions that pik is aware of
remove,rm Removes a ruby location from pik.
ruby,rb Runs ruby with all versions that pik is aware of.
run Runs command with all versions of ruby that pik is aware of.
tag Adds the given tag to the current version.
tags Runs the pik command against the given tags.
uninstall,unin Deletes a ruby version from the filesystem and removes it from Pik.
update,up Updates pik.
use,switch,sw Switches ruby versions based on patterns.

For help on a particular command, use ‘pik help COMMAND’.



Usage: pik add [options][path_to_ruby]

Adds another ruby location to pik.


    -i, --interactive                Add interactively
    -V, --version                    Pik version




Usage: pik benchmark|bench [options]

Runs bencmarks with all versions that pik is aware of.

  Examples:

    C:\>pik benchmark hello.rb



Usage: pik config [options]

Adds/modifies configuration options.

If no options are given, the current and global configuration
is displayed.

  Configuration options are:

    rubyopt      on = -rubygems, off = blank         
    gem_home     Location of current version's GEM_HOME env. var.
    downloads    Location where 'pik install' will download new versions
    installs     Location where 'pik install' will install new versions

    -V, --version                    Pik version




Usage: pik default [options]

Switches back to the default settings.

    -v, --verbose                    Verbose output
    -V, --version                    Pik version




Usage: pik devkit [options]

Configures devkit settings

    -V, --version                    Pik version
    -d, --debug                      Outputs debug information



Usage: pik gem [options]

Runs the gem command with all versions that pik is aware of.

  Examples:

    C:\>pik gem list

    C:\>pik gem install my_gem





Usage: pik gemsync [options]

Duplicates gems from the current version to the one specified.

  Examples:

    C:\>ruby -v
    ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]

    C:\>pik gemsync 191 p2
    Gem ZenTest-4.1.4.gem already installed
    Installing xml-simple-1.0.12.gem
    Successfully installed xml-simple-1.0.12
    1 gem installed
    ...
    -V, --version                    Pik version




Usage: pik command [options]

To get help with a command

  pik help (command)

To list all commands and descriptions:

  pik help commands

    -V, --version                    Pik version




Usage: pik implode [options]

Removes your pik configuration.

    -f, --force                      Force
    -V, --version                    Pik version




Usage: pik info|checkup|cu [options]

Displays information about the current ruby version.

    -V, --version                    Pik version
    -d, --debug                      Outputs debug information



Usage: pik install|in [options]

Downloads and installs different ruby versions.

  Choices are: ruby, jruby, or ironruby

  If no version is specified, the latest version will be installed.
  Download and install locations can be configured with 'pik config'.

  Examples:

    # install the latest version of JRuby (currently 1.4.0RC1)
    >pik install jruby

    # install the latest 1.8 version of MinGW Ruby 
    >pik install ruby 1.8    

    -V, --version                    Pik version




Usage: pik list|ls [options]

Lists ruby versions that pik is aware of.

    -v, --verbose                    Verbose output
    -r, --remote                     List remote install packages
    -V, --version                    Pik version




Usage: pik rake [options]

Runs the rake command with all versions that pik is aware of.

  Examples:

    C:\>pik rake spec




Usage: pik remove|rm [options]

Removes a ruby location from pik.

    -f, --force                      Remove without prompting
    -V, --version                    Pik version




Usage: pik ruby|rb [options]

Runs ruby with all versions that pik is aware of.

  Examples:

    C:\>pik ruby -v

    C:\>pik rb -e "puts 'Hello world!'"





Usage: pik run [options]

Runs command with all versions of ruby that pik is aware of.

  Examples:

    C:\>pik run PATH

    C:\>pik run rake spec





Usage: pik tag [options]

Adds the given tag to the current version.

    -V, --version                    Pik version




Usage: pik tags [options]

Runs the pik command against the given tags.

  The tags command allows you to run a subset of versions.  
  It should be used in conjunction with the run, ruby, or gems commands. 
  Multpile tags can be given in a comma separated (no spaces) list.

  Examples:

    C:\>pik tags jruby run ruby -v

    C:\>pik tags mingw,jruby gem install my_gem



Usage: pik uninstall|unin [options]

Deletes a ruby version from the filesystem and removes it from Pik.

    -f, --force                      Uninstall without prompting
    -V, --version                    Pik version
    -d, --debug                      Outputs debug information



Usage: pik update|up [options]

updates pik.

    -V, --version                    Pik version
    -d, --debug                      Outputs debug information



Usage: pik use|switch|sw [options]

Switches ruby versions based on patterns.

    -v, --verbose                    Display verbose output
  Examples:

    C:\>pik sw 186 mingw
    Using ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]

    C:\>pik switch 191 p1
    Using ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32]

    C:\>pik use 186 mswin
    Using ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

    C:\>pik 191 p2
    Using ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
    -V, --version                    Pik version
    -d, --debug                      Outputs debug information

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.