Skip to content

An interactive command-line tool written in Go that generates deployment configurations and workflows for the deploy-to-laravel-forge action.

License

Notifications You must be signed in to change notification settings

the-trybe/forge-deploy-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Forge Deployment CLI

An interactive command-line tool written in Go that generates deployment configurations and workflows for the deploy-to-laravel-forge action.

Installation

Download Pre-built Binary

Download the latest binary for your platform from the releases page:

Linux (amd64):

curl -L https://github.com/the-trybe/forge-deploy-cli/releases/download/latest/forge-deploy-linux-amd64 -o forge-deploy
chmod +x forge-deploy
sudo mv forge-deploy /usr/local/bin/

Linux (ARM64):

curl -L https://github.com/the-trybe/forge-deploy-cli/releases/download/latest/forge-deploy-linux-arm64 -o forge-deploy
chmod +x forge-deploy
sudo mv forge-deploy /usr/local/bin/

macOS (Intel):

curl -L https://github.com/the-trybe/forge-deploy-cli/releases/download/latest/forge-deploy-darwin-amd64 -o forge-deploy
chmod +x forge-deploy
sudo mv forge-deploy /usr/local/bin/

macOS (Apple Silicon):

curl -L https://github.com/the-trybe/forge-deploy-cli/releases/download/latest/forge-deploy-darwin-arm64 -o forge-deploy
chmod +x forge-deploy
sudo mv forge-deploy /usr/local/bin/

Windows: We don't care, build from source (if it works).

Build from Source

Requires Go 1.23+:

git clone https://github.com/the-trybe/forge-deploy-cli.git
cd deploy-to-forge-cli
make build

Quick Start

forge-deploy generate

Usage

forge-deploy generate [options]

Options:

  • -f, --forge-config string Forge deployment config filename (default "forge-deploy.yml")
  • -h, --help help for generate
  • -o, --output-dir string Output directory for generated files (default ".")
  • -b, --trigger-branch string Branch that triggers deployment (default "main")
  • -w, --workflow-file string GitHub Actions workflow filename (default "deploy.yml")

Generated Files

The tool generates 2 files:

  1. forge-deploy.yml - Declarative Forge configuration
  2. .github/workflows/deploy.yml - GitHub Actions workflow

Requirements

  • Runtime: None (compiled binary)
  • Build: Go 1.23+ (only for building from source)

References

License

MIT License

About

An interactive command-line tool written in Go that generates deployment configurations and workflows for the deploy-to-laravel-forge action.

Resources

License

Stars

Watchers

Forks

Packages

No packages published