nanoctl
CLI. This section focuses on commands related to project creation and overall project lifecycle management, primarily the create project
command.
create project
nanoctl
command you will use when starting a new Blok application.
Purpose: To scaffold a new Blok project with a predefined directory structure, necessary configuration files, and optional templates.Usage:
npx nanoctl@latest create project
, the CLI will typically guide you through a series of prompts:
npx nanoctl@latest create project
command will:
src/
directory containing the project’s source code.src/nodes/
directory for your custom Nodes.src/nodes.ts
class used to register your custom nodes or modules.workflows/
directory for your workflow JSON definitions.package.json
for managing Node.js dependencies.tsconfig.json
for TypeScript configuration..gitignore
, README.md
, and other common project files..env.local
).http://localhost:4000/health-check