A CLI tool for managing GitHub Actions workflows and environment variables.
Associate with nektos / act to manipulate the workflows.
- Features
- Configuration
- Quick Start
- Commands
- Development
- Project Structure
- Error Handling
- Contributing
- Support
- Authoer
- License
-
🔐 Environment Management
- Load and sync
.env
files across environments. - Secure variable handling with validation.
- Pre/post operation hooks.
- Load and sync
-
⚙️ Workflow Management
- Simulate GitHub Actions workflows locally using
act
. - List available workflows and monitor execution status.
- Simulate GitHub Actions workflows locally using
-
🛠️ Developer Tools
- Automated setup with extensible plugin support.
- Configurable and reusable CLI hooks.
You can configure ActorCLI
using a config.json
file:
{
"environments": ["development", "staging", "production"],
"defaultEnv": "development",
"hooks": {
"pre-sync": "./scripts/pre-sync.js",
"post-load": "./scripts/post-load.js"
}
}
-e, --env
: Target environment (e.g.,development
,staging
,production
).-f, --force
: Force the operation.-w, --workflow
: Workflow name to use (forsimulate
).--format
: Output format forlist
(default:table
).
-
Install ActorCLI globally:
npm install -g actorcli
-
Initialize in your project:
cp .env.sample .env sudo nano .env
-
Load environment variables:
actor load -e development
-
List workflows:
actor list
Command | Description | Example |
---|---|---|
load |
Load environment variables. | actor load -e production |
sync |
Sync environment variables across services. | actor sync -f |
simulate |
Simulate a GitHub Actions workflow locally. | actor simulate -w build |
list |
Show available workflows. | actor list -f json |
help |
Show help information. | actor help |
# Install dependencies
npm install
npm run build
# Run all tests
npm test
# Run specific suite
npm test -- workflow
# Generate coverage report
npm run coverage
Script | Description |
---|---|
build |
Build the project. |
dev |
Start development mode. |
test |
Run tests. |
lint |
Lint the codebase. |
format |
Format the code. |
actorcli/
├── src/
│ ├── commands/ # Command implementations
│ ├── hooks/ # Custom hooks
│ └── utils/ # Utility functions
├── tests/ # Unit and integration tests
├── docs/ # Documentation
└── scripts/ # Helper scripts for hooks
-
Invalid Environment:
Error: Environment 'test' not found. Solution: Use one of: development, staging, production.
-
Sync Failure:
Error: Sync failed: Permission denied. Solution: Check GitHub token permissions.
-
Workflow Not Found:
Error: Workflow 'deploy' does not exist. Solution: Verify the workflow name in `.github/workflows`.
We welcome contributions! Follow these steps to get started:
- Fork the repository.
- Create a feature branch.
- Make your changes and commit them.
- Submit a pull request for review.
If you encounter any issues or have questions, feel free to:
- Open an issue on GitHub.
- Start a discussion in the repository.
- Refer to the official documentation.
- Added Table of Contents for easy navigation.
- Improved Quick Start and command references.
- Enhanced Error Handling and Development sections.
- Refined overall readability and organization.
MIT License