Browse all topics

Your project

Command line tool

Deploy, read logs and change settings from your terminal with the dadisi command.

The dadisi command lets you do the everyday things without opening the dashboard. It is handy for scripts, for quick log checks and for deploying from your own machine.

Install#

macOS and Linux (one line in a terminal):

curl -fsSL https://downloads.dadisiweb.com/cli/install.sh | sh

Windows (PowerShell):

irm https://downloads.dadisiweb.com/cli/install.ps1 | iex

The installer checks the download against a published checksum before it installs anything, then prints the version. Open a new terminal if the dadisi command is not found straight away.

Prefer to download it yourself? Pick the file for your system, unpack it, and put dadisi somewhere on your PATH.

SystemDownload
macOS, Apple silicon (M1 and newer)dadisi-darwin-aarch64.tar.gz
macOS, Inteldadisi-darwin-x86_64.tar.gz
Linux, 64-bit Intel/AMDdadisi-linux-x86_64.tar.gz
Linux, ARM64dadisi-linux-aarch64.tar.gz
Windows, 64-bitdadisi-windows-x86_64.zip

Checksums for every file are in SHA256SUMS. Check the installed version any time with dadisi --version.

Sign in#

  1. Open Account settings → CLI in the dashboard and click Generate.
  2. Copy the token. It is shown only once.
  3. In your terminal run:
dadisi login

and paste the token. It is saved on your computer in a file only you can read. You can also set the DADISI_TOKEN environment variable instead, which suits automated jobs.

If a token leaks, delete it in the same place. It stops working immediately. You can keep up to 10 tokens, for example one per computer.

Commands#

CommandWhat it does
dadisi projectsLists your projects with status and address.
dadisi status my-appShows the current status and last error.
dadisi deploy my-appDeploys and waits until it finishes. Add --no-wait to return straight away.
dadisi logs my-appPrints recent logs. -n 300 for more lines, -f to keep watching.
dadisi env list my-appShows your environment variables.
dadisi env set my-app KEY=valueSets one or more variables. Add --deploy to apply them now.
dadisi env unset my-app KEYRemoves variables.
dadisi whoamiShows the account you are signed in as.
dadisi logoutForgets the saved token on this computer.

A project can be named by its name, its address (the part before .on.dadisiweb.com) or its id.

Good to know#

  • env set saves the change. It takes effect on the next deploy, so use --deploy or run dadisi deploy.
  • A token acts as you, with the same access as the dashboard, except that it cannot create or delete tokens.
  • Treat a token like a password. Never commit it to a repository.