Skip to content

Run AltCmd Session

Steve Stanton edited this page Sep 17, 2019 · 6 revisions

The AltCmd application is used to manipulate the branch structure of a store, much like the git command line. You can enter these commands in one of two ways:

  • By running altcmd with the command stuck on the end. For example:
   C:\Alt> altcmd init hello
   Creating C:\Alt\hello
   C:\Alt>
  • You can also start altcmd by specifying the path to the folder that contains the store. This starts an altcmd session:
   C:\Alt> altcmd hello
   Opened hello (current branch is hello)
   [1]>

The [1]> prompt means that the next command added to this branch will be number 1 (it will be saved in a file called 1.json). This does not mean to say that every command you enter in an altcmd session will be saved, because you may also choose to simply navigate around the branch structure to see what is there. Navigation commands entered in an altcmd session do not get saved, only those commands that actually manipulate the branch structure.

Use the help command to list the available commands:

   [1]> help

   init       Initialize a new command store
   clone      Clone a repository into a newly created directory
   branch     List or create branches
   checkout   Specify the current working branch
   merge      Import commands from a neighbouring branch
   fetch      Fetch the latest changes from the upstream store
   push       Push all changes to the upstream store
   recall     Recall recent command lines
   name       Save a name for use in testing
   complete   Mark a branch as completed

   [1]>

Entering help followed by the command name will list any command options.

To exit the altcmd session, use the exit command (quit also works).

Clone this wiki locally