Video using these commands: https://www.youtube.com/watch?v=Woo-mjKKe7k
These commands work after installing the hax cli globally
npm install --global @haxtheweb/createInteractive program to step through options
hax startCreate a new web component or interact with an existing one
hax webcomponentCreate a new site or interact with an existing one
hax siteAudit HAX Web components
hax auditPrint Help information for options and arguments
hax helpCreate a new webcomponent, prompt for details
hax webcomponentCreate a new webcomponent called x-button, accept defaults and launch
hax webcomponent x-button --y- you already made a webcomponent called
x-button, you want to work on it again
cd x-button
npm startor
cd x-button
hax webcomponentCreate a new site, prompt for details
hax siteCreate a new site called zombocom, prompt for theme and opening
hax site zombocomCreate a new site called zombocom, set theme to polaris-flex-theme and open the site to start working
hax site zombocom --theme "polaris-flex-theme" --yCreate a new site called zombocom, that has a custom theme called custom-zombocom-theme using the base template to get started
hax site zombocom --theme "custom-theme" --custom-theme-name "custom-zombocom-theme" --custom-theme-template "base" --y--root ./zombocom - implies to run the command as if it was executed from the ./zombocom folder
Add a page, setting root so that the call can be executed from a different directory than where the site lives
hax site --root ./zombocom node:add --title "My summer vacation" --content "<p>This is an awesome blog post I am writing about my vacation.</p>" --yShow data or content of a node, interactively
hax site node:statsEdit a detail about a node, interactively
hax site node:editEdit the title of a specific node, scripted.
hax site node:edit --item-id item-ac247e47-5dcf-4a98-814a-03f2e70151c8 --node-op title --title "my new title"Edit the content of a specific node, scripted
hax site node:edit --item-id item-ac247e47-5dcf-4a98-814a-03f2e70151c8 --node-op content --content "<p>This is the new content</p><stop-note></stop-note>"Edit the parent of a specific node, interactive selection
hax site node:edit --item-id item-ac247e47-5dcf-4a98-814a-03f2e70151c8 --node-op parentDelete a node, interactively
hax site node:deleteDelete a specific node, skip confirmation
hax site node:delete --item-id item-ac247e47-5dcf-4a98-814a-03f2e70151c8 --yList stats for the current site
hax site site:statsList items (nodes) for the current site and write them to a file called export-items.json
hax site site:items --to-file export-items.jsonImport items (nodes) for the current site from a file called export-items.json
hax site site:items-import --items-import export-items.jsonList files uploaded to the site
hax site site:list-filesChange theme, interactively
hax site site:themeChange theme to clean-two, scripted
hax site site:theme --theme "clean-two" --yOutput the entire site as HTML with <h1> for title, redirected to file output.html
hax site site:html --to-file output.htmlOutput the entire site as MD with # for title, redirected to file output.md
hax site site:md --to-file output.mdOutput the entire site as HAXSchema (vdom) with h1 for title, redirected to file schema.json
hax site site:schema --to-file schema.jsonSync git repo for the site, if hooked up to a remote
hax site site:syncPublish site to surge.sh, interactively
hax site site:surgePublish site to surge.sh, setting the domain to be my-cool-blog.surge.sh
hax site site:surge --domain my-cool-blog.surge.shPublish site to Netlify, interactively
hax site site:netlifyPublish site to Netlify, automated deployment
hax site site:netlify --yPublish site to Netlify, setting the site ID to deploy to an existing site
hax site site:netlify --domain my-site-id --yPublish site to Vercel, interactively
hax site site:vercelPublish site to Vercel, automated deployment
hax site site:vercel --yPublish site to Vercel, setting the project name
hax site site:vercel --domain my-project-name --ySetup GitHub Actions deployment workflow (deploys automatically on git push)
hax site setup:github-actionsSetup GitHub Actions deployment workflow, overwrite existing file
hax site setup:github-actions --ySetup GitLab CI deployment pipeline (deploys automatically on git push)
hax site setup:gitlab-ciSetup GitLab CI deployment pipeline, overwrite existing file
hax site setup:gitlab-ci --yPrint out the recipe used in building the current site
hax site recipe:readPlay a site recipe against the current site, interactively
hax site recipe:playPlay a site recipe against the current site named create-cli.recipe, interactive selection per command
hax site recipe:play --recipe create-cli.recipe Play a site recipe against the current site named create-cli.recipe, scripted
hax site recipe:play --recipe create-cli.recipe --yAudit HAX web component
hax auditAudit HAX component while also printing all gathered .dddignore contents to console (for testing purposes)
hax --debug audit