0.0.79 • Published 11 months ago

stg-cli v0.0.79

Weekly downloads
-
License
ISC
Repository
github
Last release
11 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.79

11 months ago

0.0.73

1 year ago

0.0.74

1 year ago

0.0.75

1 year ago

0.0.76

1 year ago

0.0.77

1 year ago

0.0.78

1 year ago

0.0.72

1 year ago

0.0.71

1 year ago

0.0.70

1 year ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.67

1 year ago

0.0.66

1 year ago

0.0.65

1 year ago

0.0.63

1 year ago

0.0.64

1 year ago

0.0.62

1 year ago

0.0.61

1 year ago

0.0.60

1 year ago

0.0.59

1 year ago

0.0.58

1 year ago

0.0.57

1 year ago

0.0.56

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.45

1 year ago

0.0.46

1 year ago

0.0.47

1 year ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.40

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.23

1 year ago

0.0.13

1 year ago

0.0.24

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1

1 year ago