A hands-on, beginner-friendly integration for Antigravity CLI (agy). Made for training new users to get comfortable with command-line tools step by step.
-
Download and Navigate
git clone https://github.com/VitrixLab-Philippines/agy-cli.git cd agy-cli -
Run the Batch File
setup.bat
The script will automatically:
- Check for Node.js, npm, and Git
- Install dependencies
- Offer to install globally
- Verify the installation
-
What the Batch Script Does
- ✅ Validates all prerequisites
- ✅ Runs
npm install - ✅ Optionally installs globally with
npm install -g . - ✅ Verifies successful installation
- ✅ Provides next steps
-
Navigate to Project
cd agy-cli -
Run Node.js Setup Script
node setup.js
What the Node script does:
- ✅ Cross-platform compatibility (Windows, macOS, Linux)
- ✅ Checks Node.js, npm, and Git versions
- ✅ Installs npm dependencies
- ✅ Handles errors gracefully
- ✅ Colorful console output for better readability
- ✅ Can be integrated into other Node.js projects
-
Navigate to Project
cd agy-cli -
Run Python Setup Script
python setup.py
What the Python script does:
- ✅ Cross-platform compatibility
- ✅ Detailed system information reporting
- ✅ Environment variable checking
- ✅ Detailed error messages
- ✅ Easy to understand for learning purposes
- ✅ Can run on any system with Python installed
-
Prerequisites Check
node --version npm --version git --version
-
Clone the Repository
git clone https://github.com/VitrixLab-Philippines/agy-cli.git cd agy-cli -
Install Dependencies
npm install
-
Install Globally (Optional)
npm install -g .
-
Verify Installation
agy-cli --version
-
Download and Navigate
git clone https://github.com/VitrixLab-Philippines/agy-cli.git cd agy-cli -
Run the Bash Script
chmod +x setup.sh ./setup.sh
The script will automatically:
- Check for Node.js, npm, and Git
- Install dependencies
- Offer to install globally
- Verify the installation
-
What the Bash Script Does
- ✅ Validates all prerequisites
- ✅ Runs
npm install - ✅ Optionally installs globally with
sudo npm install -g . - ✅ Verifies successful installation
- ✅ Color-coded output for clarity
-
Navigate to Project
cd agy-cli -
Run Node.js Setup Script
node setup.js
-
Navigate to Project
cd agy-cli -
Run Python Setup Script
python3 setup.py
-
Prerequisites Check
node --version npm --version git --version
-
Clone the Repository
git clone https://github.com/VitrixLab-Philippines/agy-cli.git cd agy-cli -
Install Dependencies
npm install
-
Install Globally (Optional)
sudo npm install -g . -
Verify Installation
agy-cli --version
setup-with-graphify.batnode setup-with-graphify.jspython setup-with-graphify.pychmod +x setup-with-graphify.sh
./setup-with-graphify.shnode setup-with-graphify.jspython3 setup-with-graphify.pyAll three setup-with-graphify scripts perform the same tasks:
- ✅ Installs agy-cli dependencies
- ✅ Clones graphify repository (or updates if it exists)
- ✅ Installs graphify dependencies
- ✅ Optionally installs both tools globally
- ✅ Verifies both installations
- ✅ Provides setup instructions for running both tools
# Initialize a new project
agy-cli init
# Run the CLI
agy-cli
# With graphify integration
agy-cli --with-graphify
# Check version
agy-cli --version
# Get help
agy-cli --help# Start with graphify visualization
agy-cli start --graphify
# Generate graphs
graphify generate
# Export results
agy-cli export --format json- Node.js v14.0.0 or higher
- npm v6.0.0 or higher
- Git v2.0.0 or higher (for cloning repositories)
- Python 3.6+ (optional, only if using Python setup scripts)
- Windows 10+ / macOS 10.15+ / Linux (any modern distro)
| Feature | Batch (.bat) | Bash (.sh) | Node.js (.js) | Python (.py) |
|---|---|---|---|---|
| Platform | Windows Only | Linux/macOS | Windows/Linux/macOS | Windows/Linux/macOS |
| Learning Curve | Easy | Easy | Medium | Easy |
| Best For | Windows Users | Unix Users | JS Developers | Python Developers |
| Color Output | Yes | Yes | Yes | Yes |
| Error Handling | Good | Good | Excellent | Excellent |
| Dependencies | None | None | Node.js | Python 3.6+ |
- Prerequisites Check - Verifies Node.js, npm, and Git are installed
- Dependency Installation - Runs
npm installto download packages - Global Installation - Optionally makes the CLI available everywhere
- Verification - Tests that everything works correctly
- Guidance - Shows next steps to get started
- Batch (.bat) - Native Windows scripting, no additional software needed
- Bash (.sh) - Standard Unix/Linux/macOS scripting
- Node.js (.js) - For developers familiar with JavaScript
- Python (.py) - For data scientists and Python developers
- Run the appropriate setup script (batch, bash, or Python)
- Follow the on-screen instructions
- Start with
agy-cli initcommand - Explore examples in the
examples/directory
- Review
setup.jsto understand Node.js process management - Read the source code in
src/directory - Create custom scripts based on the provided examples
- Extend functionality as needed
- Review
setup.pyto understand Python subprocess usage - Set up integration scripts between Python and Node.js
- Create data pipelines combining both ecosystems
- Use AGY CLI for data processing workflows
- Study the batch and bash scripts
- Integrate into deployment pipelines
- Automate setup across multiple machines
- Monitor installation logs for troubleshooting
All setup scripts are available for review:
setup.bat- Windows Batch scriptingsetup.sh- Bash/Shell scriptingsetup.js- Node.js scripting (see Node Scripts section)setup.py- Python scripting (see Python Scripts section)
Each script is well-commented for educational purposes.
# Ensure Node.js and npm are in PATH
# Restart your terminal after installation# Grant execute permissions
chmod +x setup.sh
chmod +x setup-with-graphify.sh# Use a different port
agy-cli --port 3001# If batch script won't run, try:
powershell -ExecutionPolicy Bypass -File setup.batMIT
Contributions are welcome! Please feel free to submit a Pull Request.
Created by VitrixLab Philippines - For Training & Learning