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 | shWindows (PowerShell):
irm https://downloads.dadisiweb.com/cli/install.ps1 | iexThe 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.
| System | Download |
|---|---|
| macOS, Apple silicon (M1 and newer) | dadisi-darwin-aarch64.tar.gz |
| macOS, Intel | dadisi-darwin-x86_64.tar.gz |
| Linux, 64-bit Intel/AMD | dadisi-linux-x86_64.tar.gz |
| Linux, ARM64 | dadisi-linux-aarch64.tar.gz |
| Windows, 64-bit | dadisi-windows-x86_64.zip |
Checksums for every file are in SHA256SUMS. Check the installed version any time with dadisi --version.
Sign in#
- Open Account settings → CLI in the dashboard and click Generate.
- Copy the token. It is shown only once.
- In your terminal run:
dadisi loginand 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#
| Command | What it does |
|---|---|
dadisi projects | Lists your projects with status and address. |
dadisi status my-app | Shows the current status and last error. |
dadisi deploy my-app | Deploys and waits until it finishes. Add --no-wait to return straight away. |
dadisi logs my-app | Prints recent logs. -n 300 for more lines, -f to keep watching. |
dadisi env list my-app | Shows your environment variables. |
dadisi env set my-app KEY=value | Sets one or more variables. Add --deploy to apply them now. |
dadisi env unset my-app KEY | Removes variables. |
dadisi whoami | Shows the account you are signed in as. |
dadisi logout | Forgets 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 setsaves the change. It takes effect on the next deploy, so use--deployor rundadisi 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.