Installation
This guide covers everything you need to install and configure the Datafye CLI on your system.
Platform Support
Prerequisites
Before installing the Datafye CLI, ensure your system meets the following requirements.
Java 17+
The Datafye CLI requires Java 17 or newer to run.
Verify Java installation:
java -versionYou should see version 17.x.y or higher. If not, download and install Java from:
Using DATAFYE_CLI_JAVA_HOME (Optional)
If you cannot add Java 17+ to your system PATH, you can set the DATAFYE_CLI_JAVA_HOME environment variable to point to your Java 17+ installation:
The Datafye CLI looks for Java in this order:
If
javais in PATH and is version 17+, use itOtherwise, if
DATAFYE_CLI_JAVA_HOMEis set and points to Java 17+, use itOtherwise, exit with an error
Docker (Required for Local Deployments)
Local (Standalone) deployments require Docker Desktop installed and running.
Requirements:
Docker Desktop 4.0+ (or Docker Engine 20.10+ on Linux)
Docker daemon running and accessible
8GB+ RAM available
20GB+ free disk space
Verify Docker installation:
Download Docker Desktop:
On macOS and Windows, ensure Docker Desktop is started before running datafye commands for local deployments. The Docker daemon must be running.
AWS Setup (Required for AWS Deployments)
If you plan to provision Distributed Self-managed deployments in AWS, you'll need to configure AWS access.
Complete AWS setup guide: See AWS Setup for detailed instructions on installing the AWS CLI and configuring authentication using IAM credentials, IAM Identity Center (SSO), or other AWS authentication methods.
Installing the Datafye CLI
The Datafye CLI can be installed system-wide (requires sudo) or user-local (no sudo required).
System-wide Installation (Recommended)
System-wide installation places the CLI in /usr/local/bin and requires sudo:
This makes the datafye command available to all users on the system.
Install a specific version:
User-local Installation (No sudo)
If you don't have sudo access or prefer a user-local installation:
This installs the CLI to $HOME/.local/bin.
Important: If you see a message about $HOME/.local/bin not being on your PATH, add it to your shell profile:
Then reload your shell configuration:
Verifying Installation
After installation, verify the CLI is working:
Expected output:
Initial Configuration (Optional)
The CLI can be configured with defaults to avoid specifying common options on every command.
The CLI configuration file is located at ~/.datafye/config.yaml. You can create this file manually or let the CLI create it on first run.
Example configuration:
Updating the CLI
To update to the latest version, re-run the installation command:
System-wide update:
User-local update:
The installer will detect the existing installation and upgrade it.
Uninstalling the CLI
System-wide uninstall:
User-local uninstall:
Remove configuration (optional):
Troubleshooting
"java: command not found"
Problem: The CLI cannot find Java.
Solution:
Verify Java 17+ is installed:
java -versionIf not installed, install Java from the links above
If installed but not in PATH, set
DATAFYE_CLI_JAVA_HOME(see above)
"Docker daemon is not running"
Problem: Docker is not running (only affects local deployments).
Solution:
Start Docker Desktop (macOS/Windows)
Or start Docker daemon (Linux):
sudo systemctl start dockerVerify:
docker ps
AWS Configuration Issues
Problem: AWS credentials not configured or invalid (only affects AWS deployments).
Solution: See the AWS Setup guide for detailed AWS configuration and troubleshooting.
"Permission denied" during installation
Problem: Installation script needs elevated permissions.
Solution:
For system-wide install: Use
sudowith the install commandFor user-local install: Use the
--no-rootflag and ensure$HOME/.local/binis in your PATH
CLI command shows "command not found"
Problem: The CLI is not in your PATH.
Solution:
For system-wide install:
/usr/local/binshould be in PATH by defaultFor user-local install: Add
$HOME/.local/binto PATH (see above)Verify PATH:
echo $PATHReload shell:
source ~/.bash_profileorsource ~/.zprofile
Next Steps
Now that you have the CLI installed:
Learn CLI concepts — Read The Datafye CLI to understand how the CLI works
Understand descriptors — Review Deployment Descriptors to learn about configuration files
Get started — Choose your scenario in Choose Your Path
Browse commands — See CLI Commands for detailed command reference
Getting Help
If you encounter issues not covered in this guide:
Run
datafye helpfor command helpCheck the CLI Commands reference
Contact Datafye support
Last updated

