0.0.71 • Published 2 months ago

stg-cli v0.0.71

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Introduction

Stg-CLI is a powerful Node.js command-line interface (CLI) tool designed to simplify the initialization and management of applications within a defined pipeline configuration. It seamlessly integrates with GitHub Actions workflows locally and Docker, streamlining your development processes.

Installation

To use stg-cli, install it globally using npm:

npm install -g stg-cli

Commands

Initialization: Initialize the stg-cli npm package for your project to set up the required configuration files.

bash
$ stg-cli init

Start/Stop Applications: Manage the lifecycle of configured applications by starting or stopping them.
bash
$ stg-cli start <appid>
$ stg-cli stop <appid>

List Configured Applications: View a table of configured applications, displaying their IDs, names, statuses, paths, and UUIDs.
bash
$ stg-cli apps

Kill Service: Terminate the CI/CD service completely or for a specific project.

To kill the CI/CD service completely:
bash
$ stg-cli kill

To kill the CI/CD service for a specific project:
bash
$ stg-cli kill <appid>

Show Version: Display the version number of the stg-cli tool.
bash
$ stg-cli -v

Show Available Commands: Display a list of available commands and their usage.
bash
$ stg-cli -help

Docker Integration: Execute Docker commands as part of the workflow.

Usage
application.json
A filename CreateApplication.json is automatically create in inside the package in which we Define the properties of our applications.

Example:

{
  "applications": [
    {
      "id": "123",
      "name": "MyApp",
      "path": "/path/to/app",
      "uuid": "abc123def456"
    },
    // Add more applications as needed
  ]
}

onetab-pipeline.yml
Create a file named onetab-pipeline.yml in the root of your project. Define the GitHub Actions workflow for stg-cli.

Example:

yaml
Copy code
on:
  push:
    branches:
      - main
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v2
      # Add more steps as needed
0.0.71

2 months ago

0.0.70

2 months ago

0.0.68

2 months ago

0.0.69

2 months ago

0.0.67

2 months ago

0.0.66

2 months ago

0.0.65

2 months ago

0.0.63

2 months ago

0.0.64

2 months ago

0.0.62

2 months ago

0.0.61

2 months ago

0.0.60

2 months ago

0.0.59

2 months ago

0.0.58

2 months ago

0.0.57

2 months ago

0.0.56

4 months ago

0.0.41

4 months ago

0.0.42

4 months ago

0.0.43

4 months ago

0.0.44

4 months ago

0.0.45

4 months ago

0.0.46

4 months ago

0.0.47

4 months ago

0.0.51

4 months ago

0.0.52

4 months ago

0.0.53

4 months ago

0.0.54

4 months ago

0.0.55

4 months ago

0.0.50

4 months ago

0.0.48

4 months ago

0.0.49

4 months ago

0.0.40

4 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.22

4 months ago

0.0.18

4 months ago

0.0.19

4 months ago

0.0.27

4 months ago

0.0.28

4 months ago

0.0.10

4 months ago

0.0.11

4 months ago

0.0.12

4 months ago

0.0.23

4 months ago

0.0.13

4 months ago

0.0.24

4 months ago

0.0.14

4 months ago

0.0.15

4 months ago

0.0.16

4 months ago

0.0.17

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.7

4 months ago

0.0.6

4 months ago

0.0.1

4 months ago