From c71343a5be3a7f6e1f70e7792bea94e57ec55e2b Mon Sep 17 00:00:00 2001 From: gregsadetsky Date: Mon, 8 Apr 2024 00:11:18 -0400 Subject: [PATCH] . --- docs/experimental/_category_.json | 6 -- docs/installation.md | 6 ++ docs/misc/new-commands.md | 64 +++++++++++++++++++ .../scaling-horizontally.md | 2 +- 4 files changed, 71 insertions(+), 7 deletions(-) delete mode 100644 docs/experimental/_category_.json create mode 100644 docs/misc/new-commands.md rename docs/{experimental => misc}/scaling-horizontally.md (98%) diff --git a/docs/experimental/_category_.json b/docs/experimental/_category_.json deleted file mode 100644 index 7070f5f..0000000 --- a/docs/experimental/_category_.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Experimental", - "position": 6, - "collapsible": false, - "collapsed": false, -} diff --git a/docs/installation.md b/docs/installation.md index 2e96695..d9f878c 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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: diff --git a/docs/misc/new-commands.md b/docs/misc/new-commands.md new file mode 100644 index 0000000..07509c7 --- /dev/null +++ b/docs/misc/new-commands.md @@ -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 +``` diff --git a/docs/experimental/scaling-horizontally.md b/docs/misc/scaling-horizontally.md similarity index 98% rename from docs/experimental/scaling-horizontally.md rename to docs/misc/scaling-horizontally.md index dc840c2..219c196 100644 --- a/docs/experimental/scaling-horizontally.md +++ b/docs/misc/scaling-horizontally.md @@ -1,5 +1,5 @@ --- -sidebar_position: 1 +sidebar_position: 2 --- # Scaling Horizontally