ENC CLI Installation
The ENC Client (enc-cli) allows you to connect to an ENC server, manage projects, and run secure executions from your local machine.
Prerequisites
Before installing, ensure you have:
Python 3.8+: Verify with
python3 --version.pip: The Python package installer.
sshfs: Required for the mounting feature.
Note
If mounting fails or sshfs is missing, please reinstall it manually:
brew install --cask macfuse && brew install sshfs
Installation Steps
The recommended way to install ENC Client is via pip:
pip install enc-cliAfter installing, run the setup wizard to handle dependencies and path configuration:
enc installThis command will: * Check for
sshfsand install it if missing (requires sudo). * Ensure theencexecutable is in your PATH. * Prompt you to initialize your configuration.
Verify Installation:
enc --version
Configuration
Once installed, you must configure the CLI to point to your server.
Run the initialization command:
enc config init
Follow the prompts: * Server URL: Enter the full URL (e.g.,
http://your-server.com:2222). * Username: Your assigned username. * SSH Key Path: Leaving this blank is fine! You can runenc setup ssh-keylater to auto-generate one.
You can check your configuration at any time with:
enc show