divekit install

The ‘install’ command downloads and installs any required dependencies for the Divekit CLI or your project environment.

Installs the divekit CLI and the required modules by creating a symbolic link in the system PATH with proper executable permissions.

Usage

divekit install [flags]

Flags

  • --help: Show help information

Description

The divekit install command makes the Divekit CLI globally available by creating a symbolic link to the executable in a directory included in your system’s PATH. It supports cross-platform installation and handles permissions appropriately.

Key features:

  • Creates system PATH symlinks
  • Cross-platform support (macOS, Linux, Windows)
  • Proper permission handling
  • Displays current version after installation

Examples

Basic Installation

$ divekit install

Installing divekit in home directory...
[] divekit installed in home directory
[] divekit executable added to PATH

Verify Installation

$ divekit --version
divekit version v1.0.0

Updates (Planned)

  • Check for newer versions: divekit update --check (displays current and available versions)
  • Automatic update application (future release)
  • Support for package managers like Homebrew or Snap for easier distribution

Cross-Platform Support

  • macOS: Symlink created in /usr/local/bin/divekit
  • Linux: Symlink created in ~/bin/divekit or /usr/local/bin/divekit (depending on permissions)
  • Windows: Adds to PATH via environment variable (requires admin rights for system-wide)

Notes

  • Installation currently requires manual PATH setup on some systems if the symlink directory is not in PATH
  • Exit codes indicate success/failure
  • Supports both interactive and non-interactive modes
  • Reinstallation handles existing symlinks gracefully