Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsadetsky committed Apr 8, 2024
1 parent 6f483d8 commit c71343a
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 7 deletions.
6 changes: 0 additions & 6 deletions docs/experimental/_category_.json

This file was deleted.

6 changes: 6 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ sidebar_position: 2

# CLI Installation and Update

:::info

A new rewritten CLI is coming, with many more bundling options. It will be available for macos, linux, and windows. Stay tuned!

:::

## macOS

Assuming you already have [homebrew](https://brew.sh/) installed, run:
Expand Down
64 changes: 64 additions & 0 deletions docs/misc/new-commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
sidebar_position: 3
---

# New Barely Documented Commands

### Move a project from one server to another

This copies a project to a different server, including its name, Github repo URL, domain, TLS certificate to avoid downtime, SSH deploy key, env variables, and deployment number. It then deploys. You just need to point the DNS to the new server.

```bash
disco projects:move --project dummy --from-disco 123.123.123.123 --to-disco 234.234.234.234
disco projects:move --project dummy --from-disco disco.my-server-one.com --to-disco disco.my-server-two.com
```

### List a project's volumes

```bash
disco volumes:list --project dummy
```

### Volume export

This exports a volume to a .tar.gz file. You can then import it on another project.

```bash
disco volumes:export --project dummy --volume dummy-data > ~/dummy-data.tar.gz
disco volumes:export --project dummy --volume dummy-data | tar --extract --gunzip --file -
```

### Volume import & export-to-import

```bash
disco volumes:import --project dummy --volume dummy-data < ~/dummy-data.tar.gz
disco volumes:export --project dummy --volume dummy-data --disco disco.server-one.com | disco volumes:import --project dummy --volume dummy-data --disco disco.server-two.com
```

### Configure a domain name for the server

```bash
disco meta:host disco.my-server.com
```

To get the current server info:

```bash
disco meta:info
```

### List and remove API keys

```bash
disco apikeys:list
disco apikeys:remove 6c8d4caeb75e0712d331e32f3b78d2b1
```

### Create and accept invites to get API keys

```bash
disco invite:create "Dave Doe"
disco invite:accept https://disco.server-one.com/.disco/api-key-invites/76fa0b63d569c48529c311fd703159c0
# see the API key only, without adding it to your local .disco config
disco invite:accept https://disco.server-one.com/.disco/api-key-invites/76fa0b63d569c48529c311fd703159c0 --show-only
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 2
---

# Scaling Horizontally
Expand Down

0 comments on commit c71343a

Please sign in to comment.