Basic Commands

Basic Commands

# Check version
koneksi version

# Health check
koneksi health

Authentication

# Login with credentials
koneksi auth login --email user@example.com --password yourpassword 

# Logout
koneksi auth logout --email user@example.com

Backup & Recovery Scenario

Backup Operations

  1. File Upload

# Upload file
koneksi file upload --file-path /path/to/file.txt --email user@example.com
  1. Folder Upload

  1. Real-time backups

Verify Backups

Recovery Operations

Engine Service Monitoring

Monitor logs:

Check process status:

Email Storage Feature

The Koneksi CLI now supports storing your email address locally so you don't need to provide it with every command. This feature improves user experience by reducing repetitive input.

How It Works

The CLI stores your email address in a configuration file located at:

  • Windows: %USERPROFILE%\.koneksi\user.json

  • macOS/Linux: ~/.koneksi/user.json

Commands

Set Your Email

  • This command saves your email address to the local configuration file.

Show Stored Email

  • This command displays the currently stored email address.

Clear Stored Email

  • This command removes the stored email address from the configuration file.

Usage

Priority Order

When a command requires an email address, the CLI follows this priority:

  1. Command line flag (--email) - highest priority

  2. Stored configuration - fallback if no flag provided

  3. Error message - if neither is available

Error Handling

If no email is provided via flag or stored configuration, you'll see a helpful error message:

Security

  • The email is stored locally on your machine

  • The configuration file uses standard file permissions (644)

  • No sensitive data (passwords, tokens) is stored in this file

  • You can clear the stored email at any time

Migration

Existing commands that require --email flag will continue to work as before. The new system is backward compatible.

Configuration File Format

The configuration file (user.json) has this structure:

Future versions may include additional user preferences in this file.

Troubleshooting

Email Not Being Used

  • Check if email is stored: koneksi config show

  • Verify the stored email is correct

  • Try setting it again: koneksi config set --email "your-email@example.com"

Configuration File Issues

  • The file is created automatically in ~/.koneksi/user.json

  • If the file is corrupted, delete it and set your email again

  • Check file permissions if you encounter access issues

Multiple Users

  • Each user account on the system has their own configuration file

  • The email is stored per-user, not globally

Last updated