# etherlime deploy

## Syntax

```
etherlime deploy [file] [network] [secret] [-s] [compile] [runs] [output] [ethescanApiKey]
```

Parameters:

* `file` - \[Optional] By specifying `--file` you can use another

  file as long as you keep the structure of the file (exporting an

  `async deploy` function with `network` and `secret` params)
* `network` - \[Optional] By specifying `--network` you can specify

  the network param to be passed to your deploy method
* `secret` - \[Optional] By specifying `secret` you can specify the

  secret param to be passed to your deploy method. Comes in very handy

  for passing private keys.
* `-s` - \[Optional] Silent - silences the verbose errors
* `compile` - \[Optional] Enable compilation of the smart contracts

  before their deployment. By default the deployment is done with a

  compilation
* `runs` - \[Optional] Enables the optimizer and runs it the

  specified number of times
* `output` - \[Optional] Defines the way that the logs are shown.

  Choices: `none` - silences the output of logs, `normal` - see

  verbose logs in the console and `structured` - structured output in

  a file meant for inter program communication.
* `ethescanApiKey` - \[Optional] You can pass Etherscan API KEY in order to use it in the deployment script for verifying smart contracts on Etherscan.

Running this command will deploy the file specified (defaults to `./deployment/deploy.js`) The deployment process is verbose and gives you real-time info about the performed actions. In addition there is a report of the actions when the deployment finishes (as not all of us monitor the deployment process constantly):

![](/files/-LfKVkRJtv-yJRj62WzU)


---

# 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://etherlime.gitbook.io/etherlime/developer-documentation/etherlime-cli/deploying.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.
