# C++

## Create your first contract

This command creates a basic C++ contract with comments that you can observe and compile.

```shell
everdev clang create Contract
```

## Compile

This command compiles and links a selected C++ contract. After successful compilation you get .abi.json and .tvc files that you can later [use in your DApps to deploy and run contract methods](https://docs.everos.dev/ever-sdk/guides/work_with_contracts/add_contract_to_your_app).

```shell
everdev clang compile Contract.cpp
```

## Version

This command shows the currently installed C++ compiler version.

```shell
everdev clang version
```

## Update

This command updates the compiler to the latest version.

```shell
everdev clang update
```

Use `--force` or `-f` option to force reinstall, if the compiler is already up to date.

## Set

This command sets the compiler version and downloads it if needed.

```shell
everdev clang set --compiler 7.0.0
```

Use `--force` or `-f` option to force reinstall, if the current version is the same as the requested version.


---

# 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.everos.dev/everdev/command-line-interface/c.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.
