Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,22 @@ To specify a custom pager, use the `PAGER` environment variable.
If the variable is not set, STACKIT CLI uses the `less` as default pager.

When using `less` as a pager, STACKIT CLI will automatically pass following options

- -F, --quit-if-one-screen - Less will automatically exit if the entire file can be displayed on the first screen.
- -S, --chop-long-lines - Lines longer than the screen width will be chopped rather than being folded.
- -w, --hilite-unread - Temporarily highlights the first "new" line after a forward movement of a full page.
- -R, --RAW-CONTROL-CHARS - ANSI color and style sequences will be interpreted.

> These options will not be added automatically if a custom pager is defined.
>
>
> In that case, users can define the parameters by using the specific environment variable required by the `PAGER` (if supported).

>
> For example, if user sets the `PAGER` environment variable to `less` and would like to pass some arguments, `LESS` environment variable must be used as following:

>
> export PAGER="less"
>
>
> export LESS="-R"


## Autocompletion

If you wish to set up command autocompletion in your shell for the STACKIT CLI, please refer to our [autocompletion guide](./AUTOCOMPLETION.md).
Expand Down
2 changes: 2 additions & 0 deletions docs/stackit_sqlserverflex_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ stackit sqlserverflex instance [flags]
### SEE ALSO

* [stackit sqlserverflex](./stackit_sqlserverflex.md) - Provides functionality for SQLServer Flex
* [stackit sqlserverflex instance create](./stackit_sqlserverflex_instance_create.md) - Creates an SQLServer Flex instance
* [stackit sqlserverflex instance list](./stackit_sqlserverflex_instance_list.md) - Lists all SQLServer Flex instances
* [stackit sqlserverflex instance update](./stackit_sqlserverflex_instance_update.md) - Updates an SQLServer Flex instance

56 changes: 56 additions & 0 deletions docs/stackit_sqlserverflex_instance_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## stackit sqlserverflex instance create

Creates an SQLServer Flex instance

### Synopsis

Creates an SQLServer Flex instance.

```
stackit sqlserverflex instance create [flags]
```

### Examples

```
Create an SQLServer Flex instance with name "my-instance" and specify flavor by CPU and RAM. Other parameters are set to default values
$ stackit sqlserverflex instance create --name my-instance --cpu 1 --ram 4

Create an SQLServer Flex instance with name "my-instance" and specify flavor by ID. Other parameters are set to default values
$ stackit sqlserverflex instance create --name my-instance --flavor-id xxx

Create an SQLServer Flex instance with name "my-instance", specify flavor by CPU and RAM, set storage size to 20 GB, and restrict access to a specific range of IP addresses. Other parameters are set to default values
$ stackit sqlserverflex instance create --name my-instance --cpu 1 --ram 4 --storage-size 20 --acl 1.2.3.0/24
```

### Options

```
--acl strings The access control list (ACL). Must contain at least one valid subnet, for instance '0.0.0.0/0' for open access (discouraged), '1.2.3.0/24 for a public IP range of an organization, '1.2.3.4/32' for a single IP range, etc. (default [])
--backup-schedule string Backup schedule
--cpu int Number of CPUs
--edition string Edition of the SQLServer instance
--flavor-id string ID of the flavor
-h, --help Help for "stackit sqlserverflex instance create"
-n, --name string Instance name
--ram int Amount of RAM (in GB)
--retention-days int The days for how long the backup files should be stored before being cleaned up
--storage-class string Storage class
--storage-size int Storage size (in GB)
--version string SQLServer version
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances

49 changes: 49 additions & 0 deletions docs/stackit_sqlserverflex_instance_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## stackit sqlserverflex instance update

Updates an SQLServer Flex instance

### Synopsis

Updates an SQLServer Flex instance.

```
stackit sqlserverflex instance update INSTANCE_ID [flags]
```

### Examples

```
Update the name of an SQLServer Flex instance with ID "xxx"
$ stackit sqlserverflex instance update xxx --name my-new-name

Update the backup schedule of an SQLServer Flex instance with ID "xxx"
$ stackit sqlserverflex instance update xxx --backup-schedule "30 0 * * *"
```

### Options

```
--acl strings Lists of IP networks in CIDR notation which are allowed to access this instance (default [])
--backup-schedule string Backup schedule
--cpu int Number of CPUs
--flavor-id string ID of the flavor
-h, --help Help for "stackit sqlserverflex instance update"
-n, --name string Instance name
--ram int Amount of RAM (in GB)
--version string Version
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit sqlserverflex instance](./stackit_sqlserverflex_instance.md) - Provides functionality for SQLServer Flex instances

Loading