Skip to content

Commit

Permalink
refined all cheat-sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianLempa committed May 10, 2024
1 parent 7a26665 commit 7260c3f
Show file tree
Hide file tree
Showing 15 changed files with 344 additions and 668 deletions.
3 changes: 0 additions & 3 deletions cloud/azure/azure

This file was deleted.

33 changes: 0 additions & 33 deletions cloud/azure/azure-cli

This file was deleted.

98 changes: 39 additions & 59 deletions cloud/civo.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,41 @@
# Civo

Homepage: [Civo Kubernetes - Fast, Simple, Managed Kubernetes Service - Civo.com](https://www.civo.com/)
Documentation: [Documentation - Civo.com](https://www.civo.com/docs)
Terraform Registry: [Terraform Registry](https://registry.terraform.io/providers/civo/civo/latest)

---

## Civo CLI
Civo CLI is a tool to manage your Civo account from the terminal. Civo CLI is built with Go and distributed as binary files, available for multiple operating systems and downloadable from https://github.com/civo/cli/releases.

### Authentication
In order to use the command-line tool, you will need to authenticate yourself to the Civo API using a special key. You can find an automatically-generated API key or regenerate a new key at [https://www.civo.com/api](https://www.civo.com/api).

### Create Instances
You can create an instance by running `civo instance create` with a hostname parameter, as well as any options you provide.

**Example:**
```
civo instance create --hostname=<your-hostname> --sshkey=<your-ssh-key-name> --initialuser=xcad --size=g3.xsmall --diskimage=921fcb64-8abf-4a51-8823-027d9d75c1d4
```

**Parameters:**
PARAMETER | LONG VERSION | DESCRIPTION
---|---|---
`-t` | `--diskimage` | the instance's disk image (from 'civo diskimage ls' command)
`-l` | `--firewall` | the instance's firewall you can use the Name or the ID
`-l` | `--firewall` | the instance's firewall you can use the Name or the ID
`-s` | `--hostname` | the instance's hostname
`-u` | `--initialuser` | the instance's initial user
`-r` | `--network` | the instance's network you can use the Name or the ID
`-p` | `--publicip` | This should be either "none" or "create" (default "create")
`-i` | `--size` | the instance's size (from 'civo instance size' command)
`-k` | `--sshkey` | the instance's ssh key you can use the Name or the ID
`-g` | `--tags` | the instance's tags
`-w` | `--wait` | wait until the instance's is ready

**Instance Sizes:**
ID|SIZE|TYPE|CPU|MEMORY|SSD
---|---|---|---|---|---
g3.xsmall|ExtraSmall|Instance|1|1024|25
g3.small|Small|Instance|1|2048|25
g3.medium|Medium|Instance|2|4096|50
g3.large|Large|Instance|4|8192|100
g3.xlarge|ExtraLarge|Instance|6|16384|150
g3.2xlarge|2XLarge|Instance|8|32768|200
g3.k3s.xsmall|ExtraSmall|Kubernetes|1|1024|15
g3.k3s.small|Small|Kubernetes|1|2048|15
g3.k3s.medium|Medium|Kubernetes|2|4096|15
g3.k3s.large|Large|Kubernetes|4|8192|15
g3.k3s.xlarge|ExtraLarge|Kubernetes|6|16384|15
g3.k3s.2xlarge|2XLarge|Kubernetes|8|32768|15

**Diskimages:**
ID | NAME
---|---
`9ffb043e-37d8-4b71-80ed-81227564944f` | centos-7
`e1a83a29-d35b-433b-b1cb-4baade48c81a` | debian-10
`67a75d21-3726-4152-8fc9-dcdb51b6e39e` | debian-9
`880d37ca-372e-4d33-91bd-3122cf56614b` | ubuntu-bionic
`921fcb64-8abf-4a51-8823-027d9d75c1d4` | ubuntu-focal
## Instances

| Command | Description |
| --- | --- |
| `civo instance ls` | List instances |
| `civo instance show ID` | Show instance details |
| `civo instance create HOSTNAME [flags]` | Create a new instance |
| `civo instance firewall HOSTNAME FIREWALL` | Set firewall for instance |
| `civo instance password [flags]` | Show instance's default password |
| `civo instance public-ip [flags]` | Enable/disable controls if instance should have a public IP |
| `civo instance reboot HOSTNAME` | Hard reboot an instance |
| `civo instance remove HOSTNAME` | Remove/delete instance |
| `civo instance size` | List instances size |
| `civo instance soft-reboot` | Soft reboot an instance |
| `civo instance start` | Start an instance |
| `civo instance stop` | Stop an instance |
| `civo instance tag` | Change the instance's tags |
| `civo instance update` | Change the instance |
| `civo instance upgrade` | Upgrade an instance |

### Instance Creation Flags

| Flag | Description |
| --- | --- |
| `--size`, `-i` | Size of the instance |
| `--diskimage`, `-t` | Disk image to use |
| `--public-ip`, `-p` | Enable a public IP |
| `--firewall`, `-l` | Firewall to apply |
| `--region` | Region to create the instance in |
| `--ssh-key`, `-k` | SSH key to add to the instance |
| `--wait`, `-w` | Wait for the instance to be created |

## Query Disk Images and Sizes

| Command | Description |
| --- | --- |
| `civo diskimage ls` | List disk images |
| `civo diskimage find STRING` | Find disk images by name |
| `civo size ls` | List sizes |
2 changes: 0 additions & 2 deletions cloud/digitalocean.md

This file was deleted.

56 changes: 0 additions & 56 deletions cloud/microsoft365/microsoft365-email-protection.md

This file was deleted.

134 changes: 0 additions & 134 deletions cloud/what-is-cloud-computing.md

This file was deleted.

6 changes: 3 additions & 3 deletions infra/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

| Command | Description |
| --- | --- |
| `psql -U postgres` | Connect to PostgreSQL as the `postgres` user
| `psql -U USER -d DBNAME` | Connect to PostgreSQL as a specific user and database
| `psql -U USER -d DBNAME -h HOST` | Connect to PostgreSQL on a specific host
| `psql -U postgres` | Connect to PostgreSQL as the `postgres` user |
| `psql -U USER -d DBNAME` | Connect to PostgreSQL as a specific user and database |
| `psql -U USER -d DBNAME -h HOST` | Connect to PostgreSQL on a specific host |

## PostreSQL CLI Commands

Expand Down
Loading

0 comments on commit 7260c3f

Please sign in to comment.