0.2.1 • Published 5 years ago
@codefort/cf v0.2.1
Codefort CLI
Setup
1. Install the CLI tool.
$ npm install @codefort/cf --globalDepending on your system, you might need to run this command as sudo.
2. Initialize the config.
$ mkdir codefort-theme && cd codefort-theme
$ cf init3. Update codefort.config.json with your store URL, Theme ID, and API credentials.
4. Fetch the latest theme files.
$ cf fetchUsage
Fetch the latest theme files and upload files when they are changed.
$ cf fetch
$ cf watchAlternatively it's also possible to just upload or delete a single file.
$ cf upload templates/page.liquid
$ cf delete templates/page.liquidPlease note that it's recommended to always run "cf fetch" every time you resume your work, as you could risk overwriting changes by other developers by making changes to outdated files.
Available commands
$ cf init
$ cf fetch
$ cf upload {filname}
$ cf delete {filname}
$ cf watchUpdating to the latest version.
$ npm install @codefort/cf@latest --globalDepending on your system, you might need to run this command as sudo.
Semver
Until this CLI tool reaches a 1.0 release, breaking changes will be released with a new minor version. For example 0.5.1, and 0.5.4 will have the same API, but 0.6.0 will have breaking changes.