# santoku-cli: project initializer > pick toku init's flags, browse the project it writes file by file, and copy the setup and init lines This file is one tab of the santoku reference, at https://santoku.dev/santoku-cli/init/llms.txt. https://santoku.dev/santoku-cli/init is the same tab in a browser, https://santoku.dev/llms.txt indexes every tab, and https://santoku.dev/llms-small.txt summarizes them all on one page. Pick an example and the flags, then browse the project toku init writes for them, file by file. Copy runs nothing: it copies the setup-toku.sh lines from https://santoku.dev/install and the toku init line for your fields. - The site build runs the real toku init once for each example, license choice and --comments setting. The navigator shows that output unchanged, under the example's project name, such as my-lib or my-app, and the holder Example Org. Your name and holder go only into the copied line. - --example NAME picks the example, and toku init with no --example creates the lib example. --example needs santoku-cli 8.0.0 and santoku-make 13.0.0. - The examples page describes each example and shows its files: https://santoku.dev/examples - Every example file is plain text at https://santoku.dev/santoku-cli/init/examples//. This tab's llms.txt lists every example, its toku init line and its files. - --license takes an SPDX id whose text has a copyright line toku init can fill: MIT, ISC, BSD-2-Clause or BSD-3-Clause. toku init refuses an id such as Apache-2.0, whose text has no such line. - --license needs --copyright. --copyright alone writes an all-rights-reserved LICENSE. - --comments adds a note to each file that explains it and links the santoku.dev page that covers it. It needs santoku-cli 5.1.0 and santoku-make 9.1.0. - The getting-started tabs walk through each project type: https://santoku.dev/start-lib, https://santoku.dev/start-web and https://santoku.dev/start-server. ## Example projects Each example below is the unchanged output of the toku init line beside it, run when the site was built, with the year of that build. Fetch a file at its example's base URL plus the file's path, as plain text. The files of one example are the same across its variants, plus LICENSE when the line sets --copyright. A line with --comments adds a note to each file that explains it and links the santoku.dev page that covers it. ### toku init --example api my-api - https://santoku.dev/santoku-cli/init/examples/api/: toku init --example api my-api - https://santoku.dev/santoku-cli/init/examples/api-copyright/: toku init --example api my-api --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-mit/: toku init --example api my-api --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-isc/: toku init --example api my-api --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-bsd-2-clause/: toku init --example api my-api --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-bsd-3-clause/: toku init --example api my-api --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-comments/: toku init --example api my-api --comments - https://santoku.dev/santoku-cli/init/examples/api-copyright-comments/: toku init --example api my-api --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-mit-comments/: toku init --example api my-api --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-isc-comments/: toku init --example api my-api --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-bsd-2-clause-comments/: toku init --example api my-api --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/api-bsd-3-clause-comments/: toku init --example api my-api --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - make.lua - res/server/migrations/0.0.1.sql - res/server/nginx.mustache - server/lib/my_api/migrations.tk.lua - server/lib/my_api/store.lua - server/lib/my_api/web/db.lua - server/lib/my_api/web/init.lua - server/lib/my_api/web/init_worker.lua - server/lib/my_api/web/items.lua - server/lib/my_api/web/status.lua - server/nginx.tk.conf - server/test/spec/db_file.lua - server/test/spec/my_api.lua - server/test/spec/status.lua ### toku init --example browser my-browser - https://santoku.dev/santoku-cli/init/examples/browser/: toku init --example browser my-browser - https://santoku.dev/santoku-cli/init/examples/browser-copyright/: toku init --example browser my-browser --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-mit/: toku init --example browser my-browser --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-isc/: toku init --example browser my-browser --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-bsd-2-clause/: toku init --example browser my-browser --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-bsd-3-clause/: toku init --example browser my-browser --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-comments/: toku init --example browser my-browser --comments - https://santoku.dev/santoku-cli/init/examples/browser-copyright-comments/: toku init --example browser my-browser --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-mit-comments/: toku init --example browser my-browser --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-isc-comments/: toku init --example browser my-browser --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-bsd-2-clause-comments/: toku init --example browser my-browser --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/browser-bsd-3-clause-comments/: toku init --example browser my-browser --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - bin/my-browser.lua - lib/my_browser.lua - make.lua - test/spec/my_browser.browser.lua ### toku init --example classify my-classify - https://santoku.dev/santoku-cli/init/examples/classify/: toku init --example classify my-classify - https://santoku.dev/santoku-cli/init/examples/classify-copyright/: toku init --example classify my-classify --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-mit/: toku init --example classify my-classify --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-isc/: toku init --example classify my-classify --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-bsd-2-clause/: toku init --example classify my-classify --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-bsd-3-clause/: toku init --example classify my-classify --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-comments/: toku init --example classify my-classify --comments - https://santoku.dev/santoku-cli/init/examples/classify-copyright-comments/: toku init --example classify my-classify --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-mit-comments/: toku init --example classify my-classify --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-isc-comments/: toku init --example classify my-classify --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-bsd-2-clause-comments/: toku init --example classify my-classify --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/classify-bsd-3-clause-comments/: toku init --example classify my-classify --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - bin/my-classify.lua - lib/my_classify.lua - lib/my_classify/data.lua - make.lua - test/spec/my_classify.lua ### toku init --example lib my-lib - https://santoku.dev/santoku-cli/init/examples/lib/: toku init --example lib my-lib - https://santoku.dev/santoku-cli/init/examples/lib-copyright/: toku init --example lib my-lib --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-mit/: toku init --example lib my-lib --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-isc/: toku init --example lib my-lib --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-bsd-2-clause/: toku init --example lib my-lib --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-bsd-3-clause/: toku init --example lib my-lib --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-comments/: toku init --example lib my-lib --comments - https://santoku.dev/santoku-cli/init/examples/lib-copyright-comments/: toku init --example lib my-lib --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-mit-comments/: toku init --example lib my-lib --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-isc-comments/: toku init --example lib my-lib --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-bsd-2-clause-comments/: toku init --example lib my-lib --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/lib-bsd-3-clause-comments/: toku init --example lib my-lib --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - bin/my-lib.lua - lib/my_lib.lua - lib/my_lib/capi.c - lib/my_lib/migrations.tk.lua - lib/my_lib/store.lua - make.lua - res/lib/migrations/0.0.1.sql - test/spec/my_lib.lua ### toku init --example pwa my-app - https://santoku.dev/santoku-cli/init/examples/pwa/: toku init --example pwa my-app - https://santoku.dev/santoku-cli/init/examples/pwa-copyright/: toku init --example pwa my-app --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-mit/: toku init --example pwa my-app --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-isc/: toku init --example pwa my-app --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-bsd-2-clause/: toku init --example pwa my-app --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-bsd-3-clause/: toku init --example pwa my-app --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-comments/: toku init --example pwa my-app --comments - https://santoku.dev/santoku-cli/init/examples/pwa-copyright-comments/: toku init --example pwa my-app --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-mit-comments/: toku init --example pwa my-app --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-isc-comments/: toku init --example pwa my-app --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-bsd-2-clause-comments/: toku init --example pwa my-app --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/pwa-bsd-3-clause-comments/: toku init --example pwa my-app --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - client/bin/bundle.lua - client/lib/my_app/async.lua - client/lib/my_app/core.lua - client/lib/my_app/db.lua - client/lib/my_app/main.lua - client/lib/my_app/migrations.tk.lua - client/lib/my_app/store.lua - client/lib/my_app/sync.lua - client/lib/my_app/sync_view.lua - client/lib/my_app/templates.tk.lua - client/lib/my_app/todos.lua - client/static/index.html - client/static/serviceworker.tk.js - client/test/spec/my_app.lua - client/test/spec/store.lua - make.common.lua - make.lua - make.prod.lua - res/client/migrations/0.0.1.sql - res/client/partials/settings.mustache - res/client/partials/todo_settings.mustache - res/client/partials/toolbar.mustache - res/client/todo-app.html - res/server/migrations/0.0.1.sql - res/server/nginx.mustache - res/server/nginx/pages.mustache - server/lib/my_app/migrations.tk.lua - server/lib/my_app/store.lua - server/lib/my_app/web/api.lua - server/lib/my_app/web/db.lua - server/lib/my_app/web/init.lua - server/lib/my_app/web/init_worker.lua - server/lib/my_app/web/status.lua - server/nginx.tk.conf - server/test/res/browser.lua - server/test/res/shadow.lua - server/test/spec/db_file.lua - server/test/spec/my_app.lua - server/test/spec/offline.browser.lua - server/test/spec/page.browser.lua - server/test/spec/status.lua - server/test/spec/sync_page.browser.lua ### toku init --example resty my-tool - https://santoku.dev/santoku-cli/init/examples/resty/: toku init --example resty my-tool - https://santoku.dev/santoku-cli/init/examples/resty-copyright/: toku init --example resty my-tool --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-mit/: toku init --example resty my-tool --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-isc/: toku init --example resty my-tool --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-bsd-2-clause/: toku init --example resty my-tool --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-bsd-3-clause/: toku init --example resty my-tool --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-comments/: toku init --example resty my-tool --comments - https://santoku.dev/santoku-cli/init/examples/resty-copyright-comments/: toku init --example resty my-tool --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-mit-comments/: toku init --example resty my-tool --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-isc-comments/: toku init --example resty my-tool --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-bsd-2-clause-comments/: toku init --example resty my-tool --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/resty-bsd-3-clause-comments/: toku init --example resty my-tool --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - bin/my-tool.lua - lib/my_tool.lua - make.lua - test/spec/my_tool.resty.lua ### toku init --example search my-search - https://santoku.dev/santoku-cli/init/examples/search/: toku init --example search my-search - https://santoku.dev/santoku-cli/init/examples/search-copyright/: toku init --example search my-search --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-mit/: toku init --example search my-search --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-isc/: toku init --example search my-search --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-bsd-2-clause/: toku init --example search my-search --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-bsd-3-clause/: toku init --example search my-search --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-comments/: toku init --example search my-search --comments - https://santoku.dev/santoku-cli/init/examples/search-copyright-comments/: toku init --example search my-search --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-mit-comments/: toku init --example search my-search --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-isc-comments/: toku init --example search my-search --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-bsd-2-clause-comments/: toku init --example search my-search --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/search-bsd-3-clause-comments/: toku init --example search my-search --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - bin/my-search.lua - lib/my_search.lua - make.lua - test/spec/my_search.lua ### toku init --example web my-app - https://santoku.dev/santoku-cli/init/examples/web/: toku init --example web my-app - https://santoku.dev/santoku-cli/init/examples/web-copyright/: toku init --example web my-app --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-mit/: toku init --example web my-app --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-isc/: toku init --example web my-app --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-bsd-2-clause/: toku init --example web my-app --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-bsd-3-clause/: toku init --example web my-app --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-comments/: toku init --example web my-app --comments - https://santoku.dev/santoku-cli/init/examples/web-copyright-comments/: toku init --example web my-app --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-mit-comments/: toku init --example web my-app --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-isc-comments/: toku init --example web my-app --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-bsd-2-clause-comments/: toku init --example web my-app --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/web-bsd-3-clause-comments/: toku init --example web my-app --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - client/bin/bundle.lua - client/lib/my_app/async.lua - client/lib/my_app/core.lua - client/lib/my_app/main.lua - client/lib/my_app/templates.tk.lua - client/lib/my_app/todos.lua - client/static/index.html - make.common.lua - make.lua - make.prod.lua - res/client/partials/settings.mustache - res/client/partials/todo_settings.mustache - res/client/partials/toolbar.mustache - res/client/todo-app.html - res/server/migrations/0.0.1.sql - res/server/nginx.mustache - res/server/nginx/pages.mustache - server/lib/my_app/migrations.tk.lua - server/lib/my_app/store.lua - server/lib/my_app/web/api.lua - server/lib/my_app/web/db.lua - server/lib/my_app/web/init.lua - server/lib/my_app/web/init_worker.lua - server/lib/my_app/web/status.lua - server/nginx.tk.conf - server/test/res/browser.lua - server/test/res/shadow.lua - server/test/spec/db_file.lua - server/test/spec/latest.browser.lua - server/test/spec/my_app.lua - server/test/spec/page.browser.lua - server/test/spec/status.lua - server/test/spec/store.lua ### toku init --example websocket my-websocket - https://santoku.dev/santoku-cli/init/examples/websocket/: toku init --example websocket my-websocket - https://santoku.dev/santoku-cli/init/examples/websocket-copyright/: toku init --example websocket my-websocket --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-mit/: toku init --example websocket my-websocket --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-isc/: toku init --example websocket my-websocket --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-bsd-2-clause/: toku init --example websocket my-websocket --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-bsd-3-clause/: toku init --example websocket my-websocket --license BSD-3-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-comments/: toku init --example websocket my-websocket --comments - https://santoku.dev/santoku-cli/init/examples/websocket-copyright-comments/: toku init --example websocket my-websocket --comments --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-mit-comments/: toku init --example websocket my-websocket --comments --license MIT --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-isc-comments/: toku init --example websocket my-websocket --comments --license ISC --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-bsd-2-clause-comments/: toku init --example websocket my-websocket --comments --license BSD-2-Clause --copyright "Example Org" - https://santoku.dev/santoku-cli/init/examples/websocket-bsd-3-clause-comments/: toku init --example websocket my-websocket --comments --license BSD-3-Clause --copyright "Example Org" Files: - .gitignore - make.lua - res/server/nginx.mustache - server/lib/my_websocket/web/echo.lua - server/nginx.tk.conf - server/test/spec/my_websocket.lua