Getting Started
Loopress is made up of two independent tools. You can use one, the other, or both depending on your needs.
Wordpress Plugin
Section titled “Wordpress Plugin”Install the plugin on your WordPress site to manage Composer packages from the admin panel, no SSH or server access required.
Loopress CLI
Section titled “Loopress CLI”Install the CLI to version-control your code snippets as plain .php files in Git and sync them to any WordPress instance.
Prerequisites
Section titled “Prerequisites”- A working WordPress installation (6.0+)
- Administrator access to the WordPress site
For the plugin
Section titled “For the plugin”- PHP 8.2+
For the CLI
Section titled “For the CLI”- Node.js 18+
- The Code Snippets plugin active on your WordPress site
- A WordPress Application Password
First steps
Section titled “First steps”1. Install the plugin
Section titled “1. Install the plugin”Download and activate the Loopress plugin from the WordPress admin (Plugins → Add New → Upload Plugin).
After activation, a Loopress entry appears in the admin sidebar. From there you can search and install Composer packages without touching the server.
2. Install and configure the CLI
Section titled “2. Install and configure the CLI”npm install -g @loopress/clilps site configEnter your WordPress URL, username and application password when prompted.
3. Run your first snippet sync
Section titled “3. Run your first snippet sync”# Download your existing snippets as .php fileslps snippets pull
# Edit locally, commit to Git, then deploy backlps snippets push