Here's the reference of the command line interface commands built in
Note that the
buildkeyword is optional as running
ssgowithout specified command will simply trigger a build by default.
ssgo project of the current directory to the
--sitemap: Generate a sitemap.xml file of the build pages for the given host. Example:
ssgo build --sitemap=https://example.com. Works only with the
--only-creators: Filter the creators to run. Example:
ssgo dev --only-creators=index.ts,other.js. Specifying this option will prevent
ssgoto empty the
dist/directory before building. Useful to rebuilt only some pages.
ssgo will also spawn a file watcher on your project files to re-build specific parts of the project upon changes.
dev will also serve the content of the
dist/ directory over
--host: Set the host to serve
dist/over (default 'localhost'). Example:
ssgo dev --host=0.0.0.0(to serve
dist/on local network). Works only with the
--port: Set the port to serve
dist/over (default 5580). Example:
ssgo dev --port=8080. Works only with the
ssgo build > Options.
Initializes a ssgo project in the current working directory by creating the needed directories:
static/. A default creator, template and stylesheet will also be created.
init will also create a default
.gitignore file and add the
dist/ directory inside it.
ssgo init && ls # .gitignore creators/ templates/ components/ static/ cat .gitignore # dist/
Note that if some of the directories or files to create already exist,
init will let them untouched.
Outputs the current version of
Upgrades to the latest ssgo version.
Shows some help about ssgo commands.
Something about this page is wrong? Edit it on GitHub.