docs-v2/content/v2.0/reference/cli/influx/task/create.md

26 lines
774 B
Markdown

---
title: influx task create
description: The 'influx task create' command creates a new task in InfluxDB.
menu:
v2_0_ref:
name: influx task create
parent: influx task
weight: 201
---
The `influx task create` command creates a new task in InfluxDB.
## Usage
```
influx task create [query literal or @/path/to/query.flux] [flags]
```
## Flags
| Flag | Description | Input type |
|:---- |:----------- |:----------: |
| `-h`, `--help` | Help for `create` | |
| `--org` | Organization name | string |
| `--org-id` | ID of the organization that owns the task | string |
{{% influx-cli-global-flags %}}