# diagrid agent create

Create an Agent

### Description

Create an Agent in a project.

```
diagrid agent create <agent> [flags]
```

### Examples

```

  # Create an identity-only Agent (no endpoint)
  diagrid agent create my-agent --project my-project

  # Create an Agent with an endpoint
  diagrid agent create my-agent --project my-project --endpoint https://myagent.myorg.com/

```

### Options

```
  -p, --project string                Name of existing project
  -e, --endpoint string               Endpoint used to establish outbound connectivity from the Agent to your external application
  -t, --endpoint-token string         Token used to secure calls from the Agent to your provided endpoint
      --endpoint-protocol string      Protocol used to interact with the endpoint: http (default) or grpc
  -w, --wait                          Wait for long-running resource creation to finish
      --ignore-if-exists              Exit with success if the Agent already exists instead of returning an error
      --archive-binding-name string   Output-binding component name to write archived workflow history through. Setting this enables archiving
      --archive-binding-type string   Binding component type for the archive destination (e.g., "bindings.aws.s3")
      --archive-completed             Archive workflows that reach the Completed terminal state
      --archive-failed                Archive workflows that reach the Failed terminal state
      --archive-terminated            Archive workflows that reach the Terminated terminal state
  -h, --help                          help for create
```

### Options inherited from parent commands

```
      --api-key string   Diagrid Cloud API key
```

### SEE ALSO

- [diagrid agent](./agent.md)	 - Manage Agents
