---
title: "ezgh deploy detect"
description: "Say how a directory with no Dockerfile is built, and why."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh deploy detect

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh deploy detect [dir]
```

Say how Deploy builds a service whose source has no Dockerfile: the language and version, the package manager and framework, the install, build and start commands, the base image and the port, with the reason for each choice. The directory is the one named, else `--dir`.

A service's build keys in EZGHDeploy (installCommand, buildCommand, startCommand) override what is detected; this shows detection alone.

Part of [`ezgh deploy`](/cli/reference/deploy).

## Examples

```sh
ezgh deploy detect
ezgh deploy detect services/web --json
```

## Flags

Inherited from parent commands:

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--dir` | string | `.` | the repository's checkout (any directory inside it) |
| `--json` | boolean |  | print JSON, as -o json does |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/deploy-detect/index.mdx
