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

# apply

> cpln apply — Create or update resources using an input file.

Create or update a resource using an input file.

Refer to the [cpln apply guide](/guides/cpln-apply) for additional details.

**Usage**

```none theme={null}
cpln apply [OPTIONS]
```

<Accordion title="Reference">
  ```text theme={null}
  Command options:
    --file, -f  File to load and use for the command. Use `--file -` to enable input from stdin.  [required]
    --k8s       Set this true if input file is k8s config file  [boolean]
    --ready     Set this true if apply should wait for objects to be ready before exiting  [boolean]

  Context options:
    --profile  Override the profile. The default profile can be set using the `cpln profile set-default` command or by setting the CPLN_PROFILE environment variable
    --org      Override the organization. The default organization can be set in your profile by using the `cpln profile update` command
    --gvc      Override the global virtual cloud. The default global virtual cloud can be set in your profile by using the `cpln profile update` command

  Format options:
    --output, -o  Set the output format  [choices: "text", "json", "yaml", "json-slim", "yaml-slim", "tf", "crd", "names"]
    --color       Colorize the output  [boolean] [default: true]
    --ts          Timestamp format if the output format is text (e.g., --output=text)  [choices: "iso", "local", "age"]
    --max         Maximum number of records to show. A value less than 1 will return all records.  [number] [default: 50]

  Request options:
    --token         Override the authorization token
    --endpoint      Override the API URL
    --insecure, -k  Ignore TLS errors  [boolean]

  Debug options:
    --verbose, -v  Enable verbose output to stderr  [boolean] [default: false]
    --debug, -d    Show all HTTP communications  [boolean] [default: false]

  Options:
    --help     Show help  [boolean]
    --version  Show version number  [boolean]
  ```

  [Common Options Reference](/cli-reference/using-cli/common-options)
</Accordion>

<Accordion title="Example">
  <CodeGroup>
    ```bash Command theme={null}
    cpln apply --file action.json
    ```

    ```text Output theme={null}
    The actions within the JSON file will be performed against the API.
    ```
  </CodeGroup>
</Accordion>

***
