@aloma.io/aloma
v0.0.16
Published
Aloma CLI and utility package
Readme
Aloma CLI
A command-line interface for interacting with Aloma services and utilities.
Installation
npm install -g @aloma.io/alomaQuick Setup
The Aloma CLI uses secure OAuth2 with PKCE (Proof Key for Code Exchange) - no client secrets needed!
Manual Setup
If you need to reconfigure or troubleshoot:
aloma setupSecurity Features
- 🔒 OAuth2 + PKCE: Industry-standard secure authentication
- 🛡️ No Client Secrets: No credentials embedded in the package
- 🔍 JWKS Verification: Tokens verified using public keys
- 🌐 Browser-based Auth: Secure browser-based login flow
Environment Selection
By default, the CLI uses the production environment. For development:
export ALOMA_ENV="development"
aloma setupQuick Start
# Authenticate with Aloma
aloma auth
# List your workspaces
aloma workspace list
# List your tasks
aloma task listFeatures
🔐 Authentication & Security
- OAuth 2.0 Authentication: Secure browser-based login with Keycloak
- PKCE Flow: No client secrets required for enhanced security
- Token Management: Automatic token storage and refresh
- Session Management: Secure logout and session clearing
🏢 Workspace Management
- Workspace Operations: Create, list, switch, and manage workspaces
- Workspace Configuration: Update settings, tags, and health checks
- Source Control: Configure and sync source repositories with JSON or YAML files
- Archive Management: Archive and unarchive workspaces
- Workspace Deletion: Safe deletion with recovery options
🏭 Company Management
- Multi-Company Support: Switch between different companies
- Company Creation: Create new companies (admin only)
- User Invitations: Invite users to companies with specific roles
⚙️ Step Management
- Step Operations: Create, edit, clone, and delete automation steps
- Step Types: Support for various step types and configurations
- File Integration: Import step definitions from files
- Step Filtering: Filter steps by name and status
📋 Task Management
- Task Lifecycle: Create, monitor, stop, and resume tasks
- Task Logging: Detailed task logs and execution history
- Task Cloning: Duplicate existing tasks for reuse
- State Filtering: Filter tasks by execution state
- Data Integration: Pass JSON or YAML data to tasks
🔗 Webhook Management
- Webhook Operations: Create, list, and manage webhooks
- Webhook Configuration: Configure webhook endpoints and settings
- Webhook Monitoring: View webhook details and status
🔐 Secret Management
- Secure Storage: Store and manage sensitive configuration data
- Encryption Support: Optional encryption for secret values
- Secret Organization: Organize secrets with descriptions and options
- Workspace Isolation: Secrets scoped to specific workspaces
🔌 Connector Management
- Connector Library: Browse available connector types
- Connector Configuration: Add and configure data connectors with JSON or YAML files
- OAuth Integration: OAuth setup for third-party services
- Connector Logs: Monitor connector performance and errors
- Shared Connectors: Share connectors across the realm
👥 User Management
- User Operations: List, invite, update, and remove users
- Role Management: Assign and update user roles
- Team Collaboration: Manage team members and permissions
🚀 Deployment
- Infrastructure as Code: Deploy resources from YAML configuration
- Multi-Resource Deployment: Deploy workspaces, steps, tasks, and webhooks
- Environment Management: Deploy to different environments
📄 Configuration File Support
- Multi-Format Support: Use JSON or YAML for configuration files
- Automatic Detection: File format automatically detected by extension
- Backward Compatibility: Existing JSON files continue to work
- Supported Formats:
- Connector Configs:
.json,.yaml,.yml - Task Configs:
.json,.yaml,.yml - Source Configs:
.json,.yaml,.yml
- Connector Configs:
🛠️ Development Tools
- Local Development: Link package for development testing
- Configuration Management: Environment-specific configurations
- Error Handling: Comprehensive error reporting and debugging
Configuration Examples
Connector Configuration (YAML)
config:
apiToken: "your-api-token-here"
baseUrl: "https://api.example.com"Task Configuration (YAML)
firstName: "John"
lastName: "Doe"
email: "[email protected]"
company: "Example Corp"
$via:
name: "Webform"Source Configuration (YAML)
apikey: "your-github-token"
branch: "main"
enabled: true
source_automatic: false
url: "https://github.com/user/repo.git"
username: "username"Documentation
For detailed command reference, examples, and advanced usage, see docs/README.md.
License
ISC
