cyber-elx
v1.1.5
Published
CyberOcean CLI tool to upload/download ELX custom pages
Downloads
1,357
Readme
cyber-elx
CyberOcean CLI tool to upload/download ELX custom pages (Liquid templates). For detailed AI development documentation, see DEV_DOC.md.
Install
sudo npm install -g cyber-elxUpdate
sudo npm update -g cyber-elxUsage
Initialize a new project
cd /path/to/your/project
cyber-elx initThis will:
- Prompt for your website URL and authentication token
- Create
cyber-elx.jsoncconfig file - Download all pages from the server
Download pages
cyber-elx downloadDownloads pages from the server. If local files have been modified, you'll be prompted before overwriting.
Options:
-f, --force- Force download without confirmation prompts
Upload pages
cyber-elx uploadUploads local pages to the server. If server pages have been modified since last download, you'll be prompted before overwriting.
Options:
-f, --force- Force upload without confirmation prompts
Folder Structure
your-project/
├── cyber-elx.jsonc # Config file (url + token)
├── .cache # Timestamps cache (auto-generated)
├── layouts/ # Custom layouts (*.liquid)
├── sections/ # Custom sections (*.liquid)
├── templates/ # Custom templates (*.liquid)
└── defaults/ # Read-only default templates
├── sections/
└── templates/Config File
The cyber-elx.jsonc file contains your website URL and authentication token:
{
// ELX Custom Pages Configuration
"url": "https://my-website.net",
"token": "your-auth-token"
}Default Templates
The defaults/ folder contains read-only copies of the default templates. Use these as reference when creating your custom pages. If a custom page is empty, the default will be used automatically by the server.
Available Page Keys
Templates
home_page- Home pagecourses_page- Courses listingcourse_page- Single courseabout_page- About pagecategory_page- Category pageblogs_page- Blogs listingblog_page- Single blogcontact_page- Contact page
Sections
Additional sections may be available depending on your server configuration.
