The Helix Command Line Interface allows web developers to create, develop, and deploy digital experiences using Project Helix
Install hlx as a global command. You need Node 8 or newer.
$ npm install -g @adobe/helix-cliThere is one example project in /prototypes/petridish/examples/soupdemo
$ cd ../petridish/examples/soupdemo
$ ./setup.sh
$ hlx upAnd another one right here:
$ cd test/integration
$ git init && git add -A && git commit -m "inital commit"
$ hlx up$ hlx --help
hlx <cmd> [args]
Commands:
hlx init <name> [dir] Initialize the project structure [aliases: i]
hlx build Compile the template functions and build package
[aliases: b]
hlx deploy Deploy packaged functions to Adobe I/O runtime
[aliases: d]
hlx perf Test performance [aliases: p]
Options:
--version Show version number [boolean]
--help Show help [boolean]$ hlx init <my-cool-project>$ cd <my-cool-project>
$ hlx upJust change contents in your project directory and reload http://localhost:3000 to see the results.
# In <my-cool-project>
$ hlx build# In <my-cool-project>
$ hlx test# In <my-cool-project>
$ hlx deploy --no-auto --wsk-namespace <your-namespace> --wsk-auth <your-key>Instead of passing --wsk-auth as a command line option, you can also set the HLX_WSK_AUTH environment variable.
# In <my-cool-project>
$ hlx strain --fastly-auth <key> --fastly-namespace <serviceid>
π πΎ π hlx is publishing strains
π Cloned latest version, version 356 is ready
π Enabled Fastly to call secure OpenWhisk actions
π² Set content root for strain preview
πΎ Set action root for strain preview
πΎ Set action root for strain xdm
π’ Set owner for strain xdm
π³ Set repo for strain default
π³ Set repo for strain soupdemo
π³ Set repo for strain xdm
π· Set ref for strain default
π’ Set owner for strain preview
πΎ Set action root for strain db5d4350c13924ad
π· Set ref for strain db5d4350c13924ad
πΎ Set action root for strain soupdemo
πΎ Set action root for strain default
π’ Set owner for strain soupdemo
π· Set ref for strain soupdemo
π’ Set owner for strain default
π· Set ref for strain preview
π’ Set owner for strain db5d4350c13924ad
π· Set ref for strain xdm
π³ Set repo for strain preview
π³ Set repo for strain db5d4350c13924ad
π² Set content root for strain default
β
VCL strains.vcl has been updated
π² Set content root for strain soupdemo
π² Set content root for strain xdm
π² Set content root for strain db5d4350c13924ad
π All dicts have been updated.
π Activated latest version, version 356 is live
π Purged entire cache