Command Line Interface for CF Package Manager
npm install -g cfpm-cli
cfpm takes five commands:
cfpm init initializes the project by creating an ".about.json" file in the current working directory. Prompts will save the project name, version, and description to ".about.json".
cfpm token will prompt for the user's username and password. These will then be checked against what's stored in the database. If they match up, an authorization token will be sent back and saved. The user is then authorized to publish and download projects.
cfpm publish will zip up the project and upload it to storage, and also create a project in the database, saving its current version number.
cfpm update requires a new version number, specified with a
-v flag. The project will be zipped and uploaded and saved as the most current version, the older version will be archived.
cfpm fetch requires a project name, specified with a
-p flag. The project will be located and downloaded, unzipping its contents into the current working directory. A version number can be included with a
-v flag to fetch archived versions.
Execute in the project's root directory:
Project Name: my-project Version: (0.1.0) 1.0.0 Description: A sample description.
username: myname password: mypassword
cfpm update -v 1.1.0
Execute in the folder where the project will be downloaded:
cfpm fetch -p my-project
cfpm fetch -p my-project -v 1.0.0