Check before you deploy
On this page
dokwe check looks at a project before you deploy it and tells you what will break: a start command that needs a dev dependency, a lockfile the build will ignore, a Python entry file that isn't there, an environment variable the app expects but Dokwe doesn't have. It checks against how Dokwe will actually build the project, so its answer matches what a real deploy does.
dokwe checkChecking ajo-api for deploy
Sending package.json, tsconfig.json, .env.example and 6 file names
! Dokwe installs with npm, but this project uses pnpm
The generated build runs npm ci, finds no package-lock.json and falls
back to npm install, which ignores pnpm-lock.yaml.
Fix: Set the install command in the project settings, or add a Dockerfile.
! 1 variable from .env.example isn't set in Dokwe
PAYSTACK_SECRET_KEY.
✓ Dokwe will build this as Node.js
Should deploy, with risks · 2 warnings
AI review: free, 4 of 5 left this week, more on Mon 23 Nov.You need to be logged in (dokwe login). Run it from the project's folder. If the folder is linked to a Dokwe project (dokwe link), the check also uses the project's build settings and environment variables.
What it checks#
It runs in two steps.
Rule checks run every time, for free. They use the same detection Dokwe's builder uses:
- How Dokwe will build the project: your Dockerfile, the Dockerfile saved in the project settings, or the one Dokwe generates (Next.js, Nuxt, NestJS, Node.js, static sites, Python, Go, Ruby, PHP).
- Node: a missing or duplicate lockfile, a pnpm, yarn or bun project that the generated build would install with npm,
engines.nodeasking for a Node version the build doesn't use, a start command that needs a dev dependency, no start script. - Python: the entry file the generated image starts (
main.pyfor FastAPI,app.pyfor Flask,config/wsgi.pyfor Django), and a Python version other than the one the build uses. - Your Dockerfile: no
CMD, noEXPOSE, unpinned base images, copying.envinto the image, no.dockerignore. dokwe.yml: the same schema checks asdokwe validate.- Environment variables: names in
.env.examplethat aren't set for the project in Dokwe (linked projects only).
An AI review then looks for what rules can't see, such as a framework setting that breaks in a container or a build that needs a variable that isn't set. It only reports what the files show, and adds to the rule findings rather than repeating them.
What's sent#
The CLI sends only build files, and prints their names before it sends anything:
package.json, lockfile names (not their contents),.nvmrc,.node-versionDockerfile,.dockerignore,dokwe.ymlrequirements.txt,pyproject.toml,Pipfile,runtime.txt,.python-version,Procfile,composer.json,go.mod,Gemfile- Framework configs:
next.config.*,nuxt.config.*,vite.config.*,astro.config.mjs,svelte.config.js,angular.json,nest-cli.json,tsconfig.json,prisma/schema.prisma - From
.env.example(or.env.sample,.env.template), the variable names only, without values - The names of the other files and folders, two levels deep
Source code and .env files are never read. Anything that looks like a key or password is blanked before the files are checked. Dokwe keeps what was found, not the files.
To scan your source code itself, without sending anything anywhere, use dokwe security.
Free AI reviews#
Each workspace gets 5 free AI reviews a week, paid for by Dokwe and run on Claude Haiku 5.5. The count resets every Monday at 00:00 Lagos time.
- Running
dokwe checkagain on unchanged files reuses the last result for 7 days and doesn't use a review. - If an AI review fails, it doesn't count.
- Rule checks are never limited.
When the week's free reviews are used, the check uses your workspace's own AI key instead. Add a Claude, OpenAI or Gemini key under Settings → AI and integrations; the review then uses the model chosen there. Without a key, dokwe check still runs the rule checks and says why the AI review was skipped.
On a self-hosted Dokwe, free reviews need the DEPLOY_CHECK_ANTHROPIC_KEY server setting. Without it, every review uses the workspace's own key.
Use it in CI#
dokwe check exits with status 1 when something will break the deploy, so it can gate a pipeline:
dokwe login --api-key "$DOKWE_API_KEY"
dokwe check --project my-appUse --json to read the result in a script, and --no-ai to run only the rule checks.
Flags#
| Flag | Type | Default | Description |
|---|---|---|---|
-d, --dir | string | the linked project's root | Folder to check |
--json | bool | false | Print the result as JSON |
--no-ai | bool | false | Run the rule checks only |
-p, --project | string | Check against this project instead of the linked one |
When the project has a root directory set in its settings, the check runs from that folder.