diff --git a/apps/docs/content/docs/core/manual-installation.mdx b/apps/docs/content/docs/core/manual-installation.mdx index 6279ca0..1261066 100644 --- a/apps/docs/content/docs/core/manual-installation.mdx +++ b/apps/docs/content/docs/core/manual-installation.mdx @@ -292,3 +292,17 @@ To upgrade Dokploy manually, you can use the following command: curl -sSL https://dokploy.com/install.sh | sh -s update ``` +To use a specific version, you can use the following command: + +```bash +export DOKPLOY_VERSION=canary && curl -sSL https://dokploy.com/install.sh | sh +export DOKPLOY_VERSION=feature && curl -sSL https://dokploy.com/install.sh | sh +curl -sSL https://dokploy.com/install.sh | sh (defaults to latest) +``` + +Alternatively, you can use `bash -s`: + +```bash +DOKPLOY_VERSION=canary bash -s < <(curl -sSL https://dokploy.com/install.sh) +DOKPLOY_VERSION=feature bash -s < <(curl -sSL https://dokploy.com/install.sh) +``` diff --git a/apps/website/public/install.sh b/apps/website/public/install.sh index bf01c5a..428da66 100644 --- a/apps/website/public/install.sh +++ b/apps/website/public/install.sh @@ -1,9 +1,13 @@ #!/bin/bash # Detect version from environment variable or default to latest -# Usage: DOKPLOY_VERSION=canary bash install.sh -# Usage: DOKPLOY_VERSION=feature bash install.sh -# Usage: bash install.sh (defaults to latest) +# Usage with curl (export first): export DOKPLOY_VERSION=canary && curl -sSL https://dokploy.com/install.sh | sh +# Usage with curl (export first): export DOKPLOY_VERSION=feature && curl -sSL https://dokploy.com/install.sh | sh +# Usage with curl (bash -s): DOKPLOY_VERSION=canary bash -s < <(curl -sSL https://dokploy.com/install.sh) +# Usage with curl (default): curl -sSL https://dokploy.com/install.sh | sh (defaults to latest) +# Usage with bash: DOKPLOY_VERSION=canary bash install.sh +# Usage with bash: DOKPLOY_VERSION=feature bash install.sh +# Usage with bash: bash install.sh (defaults to latest) detect_version() { local version="${DOKPLOY_VERSION:-latest}" echo "$version"