Command Reference
This document serves as the Single Source of Truth for every CLI command, PNPM script, Docker command, and orchestration instruction used in the tupynambalucas.dev monorepo.
Monorepo Orchestration
Scripts used to manage dependencies, cleaning, and workspace-wide tasks.
pnpm install: Installs all dependencies across the monorepo.pnpm install --frozen-lockfile: Installs dependencies strictly frompnpm-lock.yaml(used in CI/CD).pnpm project:clear: Clears allnode_modulesand build caches usingnpkill.
Dependency Management (Catalogs)
All new dependencies must be added to a catalog (either the default catalog or a specific one) to ensure version consistency across the monorepo.
Adding to the Root Workspace:
Adding a dependency to the root package.json requires the -w (or --ignore-workspace-root-check) flag.
pnpm add <package> -w --save-catalog: Adds a package to the root and saves its version to the default catalog.pnpm add <package> -w --save-catalog-name <catalog_name>: Adds a package to the root and saves its version to a specific catalog.
Adding to a Specific Workspace:
Use the --filter flag to target a specific workspace package.
pnpm add <package> --filter <workspace> --save-catalog: Adds a package to a workspace and saves its version to the default catalog.pnpm add <package> --filter <workspace> --save-catalog-name <catalog_name>: Adds a package to a workspace and saves its version to a specific catalog.
Using an Existing Cataloged Package:
pnpm add <package>@catalog: --filter <workspace>: Installs a package that is already defined in the default catalog into a specific workspace.
Validation & Quality
Scripts to ensure code quality and type safety.
pnpm typecheck: Runs parallel TypeScript validation across all workspaces via Turborepo.pnpm typecheck --filter=@tupynambalucas-hub/*: Runs typecheck only for the Instance bounded context.pnpm lint: Runs ESLint validation across all workspaces.pnpm build: Compiles a production build for all applications and packages.pnpm --filter @tupynambalucas-hub/core build: Builds a specific package.
Instance (Community)
Commands specific to the @tupynambalucas-hub/* bounded context.
pnpm instance:up: Starts local infrastructure (MongoDB Replica Set + Redis) viacompose.dev.yaml.pnpm instance:dev: Starts the full development stack (Infrastructure + API on port 3000 + Web on port 5173). Internally callsinstance:upfirst.pnpm instance:down: Stops local infrastructure and forcefully kills ports 3000 and 5173.pnpm instance:reset: Destroys local infrastructure volumes (wiping the database) and restarts the stack.pnpm instance:staging: Builds and orchestrates the staging environment usingcompose.prod.yamland.env.staging.pnpm instance:staging:down: Stops the staging topology.pnpm instance:prod: Builds and orchestrates the production environment usingcompose.prod.yamland.env.prod.pnpm instance:prod:down: Stops the production topology.
Portal (Platform)
Commands specific to the @tupynambalucas-hub/* bounded context.
pnpm portal:up: Starts local infrastructure for the portal.pnpm portal:dev: Starts the full portal development stack (API on port 3001 + Web on port 5174).pnpm portal:down: Stops local infrastructure and forcefully kills ports 3001 and 5174.pnpm portal:reset: Destroys local portal infrastructure volumes.pnpm portal:staging: Builds and orchestrates the portal staging environment.pnpm portal:staging:down: Stops the portal staging topology.pnpm portal:prod: Builds and orchestrates the portal production environment.pnpm portal:prod:down: Stops the portal production topology.
Documentation
Commands for the Docusaurus Knowledge Base (docs/).
pnpm docs:dev: Starts the local Docusaurus development server with HMR.pnpm docs:build: Compiles the documentation into static HTML/CSS for production.
Studio & Tools
Commands for design and AI agents.
pnpm penpot:up/pnpm penpot:down: Starts or stops the self-hosted Penpot Studio.pnpm penpot:aide:up/pnpm penpot:aide:down: Starts or stops the Penpot Aide AI Bridge.
Git & Version Control
Workflows for branching, committing, and releases.
git flow feature start <name>: Starts a new feature branch fromdevelop.git push -u origin feature/<name>: Pushes a feature branch to the remote repository.gh pr create --base develop --fill --web: Creates a Pull Request targeting thedevelopbranch.gh pr merge --squash --delete-branch: Merges a PR using the squash-and-merge strategy.git flow hotfix start <name>/git flow hotfix finish <name>: Manages emergency fixes against themainbranch.pnpm version:changeset: Generates a changeset file to track version bumps and changelogs.
Docker & Infrastructure
Direct Docker CLI commands for debugging and maintenance.
docker ps --filter "name=elo-instance": Lists running containers for the instance context.docker compose -f instance/compose.prod.yaml --env-file instance/.env.prod logs -f: Tails the logs of the production stack in real-time.docker logs elo-instance-api-prod: Inspects logs for a specific container.turbo prune: Prunes the monorepo workspace for minimal Docker builds.pnpm deploy: Used inside Dockerfiles to extract only built dependencies for a specific package.