Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHP Fog command line tool - you can use this command line tool to setup your local system to edit your code and to push changes with git submodule dependencies.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 debpkg
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 build-deb
README.md

PF-CLI - PHP Fog Command Line

Installation

Requirements

  • PHP-CLI
  • Curl
  • Curl extension for PHP
  • Git

OSX (Lion)

Download and install the pf command line tool

curl -s https://raw.github.com/phpfog/pf/master/bin/installer | php

Troubleshoot OSX Installation

Missing Requirement: Cannot find git executable.

  1. Download and install git here: http://code.google.com/p/git-osx-installer/
  2. Open a new terminal window and run the curl installer again.

Missing Requirement: The bin folder (/usr/local/bin) folder does not exists.

  1. Create the directory /usr/local/bin
  2. Make sure /usr/local/bin is in your path.

Ubuntu (10.04.4-desktop-amd64)

Download and install the pf command line tool

curl -s https://raw.github.com/phpfog/pf/master/bin/installer | php

Troubleshoot Ubuntu Installation

Error: The program 'curl' is currently not installed. You can install curl by typing:

sudo apt-get install curl

Error: sudo: php: command not found. You can install PHP-CLI by typing:

sudo apt-get install php5-cli

Missing Requirement: The curl extension for php is not loaded. You can install the php curl extension by typing:

sudo apt-get install php5-curl

Missing Requirement: Cannot find git executable. You can install git by typing:

sudo apt-get install git-core

Missing Requirement: The bin folder (/usr/local/bin) folder does not exists.

  1. Create the directory /usr/local/bin
  2. Make sure /usr/local/bin is in your path.

Windows (with XAMPP, Git for Windows, and Git Bash)

curl -s https://raw.github.com/phpfog/pf/master/bin/installer | php

Troubleshoot Windows Installation

Error: sh.exe": php: command not found

Cause: The curl extension for php is not loaded.

Fix: uncomment out the curl extension in the php.ini

extension=php_curl.dll 

Uninstall

curl -s https://raw.github.com/phpfog/pf/master/bin/installer | php -- --uninstall

Usage

Commands

Setup

Creates and uploads a public ssh key.

pf setup

List

Lists clouds, apps, and sshkeys.

pf list (clouds | apps [cloud_id] | sshkeys)

Details

Shows an app's details.

pf details (<appname> | <app_id>)

Clone

Pull down an app for the first time.

clone (<appname> | <app_id>) [directory]

Pull

Wrapper for git pull.

pf pull

Push

Wrapper for git push.

pf push

Update

Deploys an app using git submodules.

pf update

Delete

Deletes a remote app or remote ssh key.

pf delete (app (<appname> | <app_id>) | sshkey <ssh_key_id>)

Whoami

Shows the current username logged in.

pf whoami

Login

pf login [username]

Logout

pf logout [username]
Something went wrong with that request. Please try again.