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

# vastai set defjob

> Host command

Create default jobs for a machine

<Note>This is a **host** command, used for managing machines you are renting out on Vast.ai.</Note>

## Usage

```bash theme={null}
vastai set defjob id [--api-key API_KEY] [--price_gpu PRICE_GPU] [--price_inetu PRICE_INETU] [--price_inetd PRICE_INETD] [--image IMAGE] [--args ...]
```

## Arguments

<ParamField path="id" type="integer" required>
  id of machine to launch default instance on
</ParamField>

## Options

<ParamField path="--price_gpu" type="number">
  per gpu rental price in \$/hour
</ParamField>

<ParamField path="--price_inetu" type="number">
  price for internet upload bandwidth in \$/GB
</ParamField>

<ParamField path="--price_inetd" type="number">
  price for internet download bandwidth in \$/GB
</ParamField>

<ParamField path="--image" type="string">
  docker container image to launch
</ParamField>

<ParamField path="--args" type="string">
  list of arguments passed to container launch
</ParamField>

## Description

Performs the same action as creating a background job at [https://cloud.vast.ai/host/create](https://cloud.vast.ai/host/create).

## Examples

```bash theme={null}
vastai set defjob <ID>
```

## Global Options

The following options are available for all commands:

| Option          | Description                                           |
| --------------- | ----------------------------------------------------- |
| `--url URL`     | Server REST API URL                                   |
| `--retry N`     | Retry limit                                           |
| `--raw`         | Output machine-readable JSON                          |
| `--explain`     | Verbose explanation of API calls                      |
| `--api-key KEY` | API key (defaults to `~/.config/vastai/vast_api_key`) |
