Commit Package

Anytime you're ready, you may commit all package updates to the repository by simply running the package commit CLI command, for example:

apex commit <PACKAGE> [-m "Commit Message"] [--file commit.txt]

Both the commit message and file are optional, and only one of them should ever be present, not both of them. This will automatically gather all changes made to the package, and publish it to the Apex repository. You do not need to manually specify which files to add into the commit, or do a commit then push. Instead, everything is combined into the single commit command.

Here's some example commands using the package named "shop":

apex commit shop

apex commit shop -m "Initial commit"

apex commit shop --file commit.txt

Initial Commit

If you are running the initial commit for a package, first APex will check to see whether or not the repository exists. Upon noticing it does not exist, Apex will automatically create the necessary code repository, and publish the entire contents of the package to it.

Once published, you will be able to view your new repository at:

Web: https://code.apexpl.io/<USERNAME>/<PACKAGE>/

SVN: svn://svn.apexpl.io/<USERNAME>/<PACKAGE</

The above SVN URL is only valid for packages with an access of "public", and otherwise are only accessible over SSH. Any time in the future you wish to commit any changes made, simply run the same command again:

apex commit <PACKAGE> [-m "Commit Message"] [--file commit.txt]

Please note, you do not need to keep track of files modified or queue files to be included within the commit. Apex will automatically detect all changes to the package, and include them within the commit.

Pull Updates

If multiple people are working on the repository at the same time, at times your local working copy will be out of date with the repository. When this happens, you may update your local working copy to the latest version within the repository by running the package pull CLI command, such as:

apex pull <PACKAGE>

This will sync your local working copy with the latest commits within the repository.