What is the DefDrive CLI?
The DefDrive CLI is a Go-based interactive setup tool that guides you through:- Configuring your DefDrive server URL
- Creating a new account (signup)
- Logging into an existing account
- Managing stored credentials
Key Features
Interactive Setup Flow
The CLI walks you through each step of the configuration process with clear prompts and menu options. No command-line flags or complex syntax required.Persistent Configuration
Your credentials are automatically saved to a local.defdrive_credentials file, so you only need to authenticate once. On subsequent runs, the CLI detects existing configuration and asks if you want to use it.
Dual Authentication Methods
Choose between two authentication flows:- Signup: Create a new account with name, email, username, and password
- Login: Authenticate with existing username and password
Built-in Validation
The CLI includes validation for:- Password confirmation matching
- Server connectivity checks
- Authentication response handling
Edit and Confirm
Before submitting your credentials, you can review all entered information and choose to:- Confirm: Proceed with authentication
- Edit: Modify any field before submission
Navigation
The CLI supports intuitive keyboard controls:Keyboard Controls
↑↓- Navigate menu options←→- Move cursor within text inputEnter- Confirm input and proceed to next stepBackspace- Delete charactersqorCtrl+C- Quit the CLI
Quick Start
Once configured, your credentials are saved locally and automatically loaded on future CLI runs.
What’s Next?
Installation
Learn how to install and build the CLI
Configuration
Understand how credentials are stored
Authentication
Detailed walkthrough of signup and login flows