Pageous

CLI Access

Pageous provides a command line interface that enables users to work offline and edit templates, layouts, assets and examples as plain text on their local machine using the editor of their choice. If this sounds appealing then first we need to install the Pageous CLI.

To install the Pageous CLI follow the instructions here: Command Line Access

The Pageous CLI can be thought of as a simplified git. Use the pageous export command much like you would git clone. The export command takes a single parameter, the project reference. To find the reference for a project navigate to the Settings page by clicking “Settings” in the left menu. The project reference can be found in the attributes table of the project.

Use the pageous fetch command to get the latest versions of the project files from Pageous. Unlike git pull fetch does not merge, it will just overwrite your existing local files with the versions from the server. If you have important local changes you need to use pageous push before using pageous fetch.

When using pageous push it’s possible to have merge conflicts similar to git. Files with conflicts will be logged to the console and their content will be updated with conflict markers. You can edit the files to resolve any conflicts and use pageous push again to retry the push.