SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

The sdxc command

The command line that starts, grows, checks and ships a project, and the guide that covers each command.

After reading this guide, you will know

  • How to install the sdxc command
  • Which command does what, and which guide covers it
  • How every command answers a question up front with a flag

The sdxc command writes a new project, adds controllers, jobs, models and the rest where the app layout puts them, copies @sdxc/ui components into your project when you want to edit one, and moves the project to a newer release with a prompt that tells an AI agent what changed for the code you have.

It ships in @sdxc/kit. Install it globally so you can type the commands as written:

Terminal
npm add -g @sdxc/kit

Every command runs from the project root, the nearest folder with a package.json, and sdxc <command> --help lists its arguments and flags. On a terminal a command asks for what you left out, and every question has a flag, so a script or an agent passes the answer up front and never waits on one.

Command map

CommandWhat it doesGuide
sdxc createwrite a new project from the built-in template or a GitHub repoStart a project
sdxc initwrite .config/sdxc.jsonc with every default spelled outStart a project
sdxc makewrite a controller, job, model or other file, declared and mappedGenerate files
sdxc scaffoldwrite a resource's model, migration, pages or JSON endpoints, and testsScaffold a resource
sdxc destroyremove what sdxc make wrote, its mapping and its declarationUndo a make
sdxc routesprint every route with its controller and middlewareList routes
sdxc modelsprint each model's table and whether its migrations matchInspect a project
sdxc schedulelist scheduled jobs, their next runs and the triggers that fire themInspect a project
sdxc middlewareprint every middleware chain in run orderInspect a project
sdxc initializerslist the initializers and what builds each oneInspect a project
sdxc noteslist the TODO, FIXME, HACK and OPTIMIZE comments in the codeInspect a project
sdxc statscount lines of code per kind, and the code to test ratioInspect a project
sdxc runrun your app's own command line: migrations, the SQL console, yoursRun your app's commands
sdxc pkgrun any package's command line: decode a token, check a domainUse a package from the terminal
sdxc doctorfind release drift, missing secrets and wiring mistakesCheck a project
sdxc cirun the project's CI script, then sign the commit off on GitHubRun CI
sdxc uicopy an @sdxc/ui component into the project to edit itCopy UI components
sdxc upgrademove to a newer release and print a prompt for your agentUpgrade
sdxc deploybuild, migrate production and deploy, in that orderDeploy

Where to go next

Documentation

Can’t find it? Contact us