CLI for NubesGen

Related tags

CLI nubesgen-cli
Overview

CLI for NubesGen

This CLI is part of the NubesGen project.

It automates a project configuration: on simple projects, running this command line should be enough to have your project configured with GitOps, and automate its deployment to Azure.

More specifically, this tool:

  • scans the project to find its NubesGen configuration
  • sets up the GitOps workflow
  • creates the Infrastructure as Code (IaC) configuration

Installation

Prerequisites

Tip: You can go to https://shell.azure.com and login with the Azure subscription you want to use. This will provide you with the mandatory prerequisites below (Bash, Azure CLI, and GitHub CLI).

For the CLI to work, you need to have installed and configured the following tools:

  • Bash, which is installed by default on most Linux distributions and on Mac OS X. If you're using Windows, one solution is to use WSL.
  • Azure CLI. To login, use az login.
  • (optional) GitHub CLI. To login, use gh auth login. This will automate creating the GitHub secrets for you, otherwise you will need to do it manually.

Downloading and installing the CLI

This CLI is available as a native image on major platforms (Linux, Mac OS, Windows), and as a Java archive. The Java archive will run everywhere, but requires a Java Virtual Machine.

Releases are available on GitHub at https://github.com/jdubois/nubesgen-cli/releases and in the following examples we will use the GitHub CLI to download them.

Downloading and installing the CLI with Java

To run the Java archive, you need to have a Java Virtual Machine (version 11 or higher) installed.

  • Download the latest release: gh release download --repo jdubois/nubesgen-cli --pattern='*.jar'
  • Run the binary: java -jar nubesgen-*.jar -h
Downloading and installing the CLI on Linux

To run the binary on Linux, you need to:

  • Download the latest release: gh release download --repo jdubois/nubesgen-cli --pattern='*-linux'
  • Make the binary executable: chmod +x nubesgen-cli-linux
  • Run the binary: ./nubesgen-cli-linux -h
Downloading and installing the CLI on a Mac OS

To run the binary on a Mac OS, you need to:

  • Download the latest release: gh release download --repo jdubois/nubesgen-cli --pattern='*-macos'
  • Make the binary executable: chmod +x nubesgen-cli-macos
  • Allow Mac OS X to execute it: xattr -d com.apple.quarantine nubesgen-cli-macos
  • Run the binary: ./nubesgen-cli-macos -h
Downloading and installing the CLI on Windows

To run the binary on Windows, you need to:

  • Download the latest release: gh release download --repo jdubois/nubesgen-cli --pattern='*-windows.exe'
  • Run the binary: nubesgen-cli-windows -h

Using the CLI

Use the -h option with the CLI to have a complete and up-to-date help page

  • Running the CLI without any arguments (e.g. ./nubesgen-cli-linux) will run the most common sub-commands in a logical order. This will setup GitOps, scan your project to find the technologies used, and download the Infrastructure as Code configuration from the NubesGen REST server.
  • The projectname sub-command (e.g. ./nubesgen-cli-linux projectname) will create a unique project name to be used inside Azure. It will take the first 8 letters of the name of your current directory, and add two random numbers.
  • The scan sub-command (e.g. ./nubesgen-cli-linux scan) will scan your project to find the technologies used. It will use those technologies to generate a REST request String that can be sent to the NubesGen REST server.
  • The gitops sub-command (e.g. ./nubesgen-cli-linux gitops) will setup GitOps for the current project.
  • The download sub-command (e.g. ./nubesgen-cli-linux download) will download a default Infrastructure as Code configuration from the NubesGen REST server.
You might also like...

AWS JSON TRANSLATOR CLI is a command line application to translate JSON files using AWS Translate

AWS JSON TRANSLATOR CLI is a command line application to translate JSON files using AWS Translate

A command line tool to translate JSON files using AWS Translate.

May 30, 2022

A set of word-based puzzle games for the CLI while you wait for the build to run

A set of word-based puzzle games for the CLI while you wait for the build to run

Words Words is a set of command line word-based puzzle games. Best way to spend those minutes within the CLI while your build is running ;). But Words

Sep 15, 2022

httpx - CLI to test HTTP/gRPC/RSocket/Kafka... services by HTTP DSL

httpx: CLI for run http file httpx is a CLI to execute requests from JetBrains Http File. Request types supported by httpx HTTP REST PUB/SUB - Apache

Dec 15, 2022

starter project for react native cli setups, typescript included

starter project for react native cli setups, typescript included

A starter project with react native 0.68, @storybook/react-native 6.0 beta, storybook/addon-react-native-web getting started To get all the dependenci

Dec 21, 2022

Sample Spring Boot CLI application

sb-cli Sample Spring Boot CLI application. Shows how a Spring Boot application may be configured and packaged to create native executables with GraalV

Nov 2, 2022

Drifty is an open-source interactive File Downloader system built with java. It is currently available in CLI mode and has the GUI version under active development.

Drifty is an open-source interactive File Downloader system built with java. It is currently available in CLI mode and has the GUI version under active development.

Drifty Drifty is an open-source interactive File Downloader system built using Java. It takes the link to the file, the directory where it needs to be

Dec 24, 2022
Owner
Julien Dubois
Java Developer Advocacy manager @microsoft - Creator and lead developer @jhipster
Julien Dubois
A CLI to lock the terminal while being afk.

LockCLI A CLI to lock the terminal while being afk. Usage: [lock, unlock] LockCLI from Source Have JDK 8+ Installed Compile main class and run in any

null 4 Dec 17, 2021
Mp4grep - a CLI for transcribing and searching audio/video files

mp4grep mp4grep is a tool that transcribes and searches audio and video files for a regex pattern. mp4grep isn't just for mp4 files! It also supports

ooc 250 Dec 23, 2022
httpx is a CLI to execute requests from JetBrains Http File.

httpx: CLI for run http file httpx is a CLI to execute requests from JetBrains Http File. How to use? Create index.http file with following code, then

Libing Chen 106 Dec 29, 2022
AWS JSON TRANSLATOR CLI is a command line application to translate JSON files using AWS Translate

A command line tool to translate JSON files using AWS Translate.

Marc Guillem 0 May 30, 2022
Tiny logging wrapper dedicated for CLI-oriented applications

Dynamic Logger Tiny logging wrapper dedicated for CLI oriented applications with non-static logger that require dynamic threshold/level changes, progr

Dzikoysk 3 Sep 25, 2022
A CLI to lock the terminal while being afk.

LockCLI A CLI to lock the terminal while being afk. Usage: [lock, unlock] LockCLI from Source Have JDK 8+ Installed Compile main class and run in any

null 4 Dec 17, 2021
Mp4grep - a CLI for transcribing and searching audio/video files

mp4grep mp4grep is a tool that transcribes and searches audio and video files for a regex pattern. mp4grep isn't just for mp4 files! It also supports

ooc 250 Dec 23, 2022
Student Result Management System - This is a CLI based software where the Software is capable of maintaining and generating Student's Result at the end of a semester after the teacher's have provided the respective marks.

Student Result Management System This is a CLI based software where the Software is capable of maintaining and generating Student's Result at the end

Abir Bhattacharya 3 Aug 27, 2022
httpx is a CLI to execute requests from JetBrains Http File.

httpx: CLI for run http file httpx is a CLI to execute requests from JetBrains Http File. How to use? Create index.http file with following code, then

Libing Chen 106 Dec 29, 2022
httpx - CLI to run HTTP file

httpx: CLI for run http file httpx is a CLI to execute requests from JetBrains Http File. How to install? Mac : brew install httpx-sh/tap/httpx Other

httpx 105 Dec 15, 2022