# Deploy

`Ops` provides a command that allows to skip the normal deployment workflow that would involve multiple commands to create and destroy images and instances. It allows to quickly update an image and an instance in a cloud provider from an elf file or a package.

The command format is `ops deploy <elf file> -t <cloud provider>`.

Internally, the command executes the next actions. 1. First, deletes an image with the same name of the elf file or the image name specified in configuration; 2. Next, creates an image with the instructions to execute the elf file program or the package program in the cloud provider. 3. Stops and deletes the instances that were launched from an image with the same name. 4. Finally, launches an instance with the image created.

Likewise on instance creation and on image creation, all the properties set in a configuration file are applied in this command.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ops.city/ops/other/deploy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
