Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quint-cli

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quint-cli

The almightly Quint Cli

  • 1.19.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-90.15%
Maintainers
1
Weekly downloads
 
Created
Source

Quality Gate Status Maintainability Rating Security Rating Test

Quint CLI

Maintainer: Gee-Him Siu gsiu@monevo.com

Introduction

On our way to standardising a lot of processes in the company, we've created the Quint CLI so that everyone can have a simple way of accessing / booting up different repos with the least friction as possible.

Installation and usage

Requirements

  • node v17.6.0 (Recommend you install using NVM)
  • AWS creds
  • Make sure your repo is compatible, usually if there's a quint.json at the root then you're all good

Steps

if you're installing / running for cloud platform, there are specifc gotchas below

  • npm i -g quint-cli
  • quint health This will install any missing dependencies you may not have
  • aws configure You'll need to input your AWS creds, please ask @monevogee
  • Copy over the .env file
  • quint setup This will setup everything and run the containers, you will be presented with a ports table, make note of the APPs port. Once everything's ready you can then go to http://localhost:{APP_PORT}

Cloud platform specific steps

  • When copying .env, make sure these values are commented out:
MSSQL_DB_CONNECTION=mssql
MSSQL_DB_HOST=100.69.161.10             
MSSQL_DB_PORT=1433                      
MSSQL_DB_DATABASE=monevo_portal_outbound
MSSQL_DB_USERNAME=partnercloudreader    
MSSQL_DB_PASSWORD=Qu1ntr3ad3r$          
  • There are import specifc values you need, this can be shared via lastpass for you to input in your env
  • Make sure you're on VPN or you won't be able to download the data

Working on the CLI

Requirements

  • NPM
  • oclif installed globally (optional for generating commands)

Contribution

Please do contribute where you can, a list of features and bugs are available over in the JIRA board (Development Operations). Of course any ideas you'd like to input please let the maintainer know.

Steps

Firstly, get the repo cloned onto your machine, you can then start creating a new cli command!

Run repo

  • npm run setup
  • npm start (This will start nodemon which will check file changes and compile accordingly)

Working on repo

  • Work on a new branch using normal git naming conventions
  • Create a new command using the oclif command oclif generate command {folder/name}
  • Write your tests
  • Write your command
  • Make sure your tests pass by running npm run test
  • Put in a pull request once tests pass and commands done
  • You can generate auto documentation using oclif readme

Deployments

Lovely helpers

Show full objects on your command line with console log:

const object = {
  foo: 'bar',
}

console.log(util.inspect(object, false, null, true))

Usage

$ npm install -g quint-cli
$ quint COMMAND
running command...
$ quint (--version)
quint-cli/1.19.0 linux-x64 node-v17.6.0
$ quint --help [COMMAND]
USAGE
  $ quint COMMAND
...

Commands

quint animation [FILE]

describe the command here

USAGE
  $ quint animation [FILE] [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  describe the command here

EXAMPLES
  $ quint animation

See code: dist/commands/animation.ts

quint artisan [COMMAND]

Acts as a passthrough to run artisan commands on the app

USAGE
  $ quint artisan [COMMAND]

DESCRIPTION
  Acts as a passthrough to run artisan commands on the app

EXAMPLES
  $ quint artisan

See code: dist/commands/artisan.ts

quint build

Build/Rebuild project containers and images

USAGE
  $ quint build

DESCRIPTION
  Build/Rebuild project containers and images

EXAMPLES
  $ quint build

See code: dist/commands/build.ts

quint build image [DOCKERFILE] [NAME] [VERSION]

Use this command to build an image

USAGE
  $ quint build image [DOCKERFILE] [NAME] [VERSION]

DESCRIPTION
  Use this command to build an image

  by passing in the Dockerfile path i.e. quint build image

  ./Dockerfile

EXAMPLES
  $ quint build image

quint check [FILE]

describe the command here

USAGE
  $ quint check [FILE] [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  describe the command here

EXAMPLES
  $ quint check

See code: dist/commands/check.ts

quint composer [COMMAND]

Acts as a passthrough to run composer commands on the app

USAGE
  $ quint composer [COMMAND]

DESCRIPTION
  Acts as a passthrough to run composer commands on the app

EXAMPLES
  $ quint composer

See code: dist/commands/composer.ts

quint connect [CONTAINER]

Pass through to command line inside container

USAGE
  $ quint connect [CONTAINER]

DESCRIPTION
  Pass through to command line inside container

EXAMPLES
  $ quint connect

See code: dist/commands/connect.ts

quint debug [MODE]

Set your debug enviornment variable to show console logs

USAGE
  $ quint debug [MODE]

ARGUMENTS
  MODE  Toggle debug on and off manually

DESCRIPTION
  Set your debug enviornment variable to show console logs

EXAMPLES
  $ quint debug

See code: dist/commands/debug.ts

quint deploy [DESTINATION]

Deploy repo

USAGE
  $ quint deploy [DESTINATION]

ARGUMENTS
  DESTINATION  Production, QA, development etc

DESCRIPTION
  Deploy repo

EXAMPLES
  $ quint deploy

See code: dist/commands/deploy.ts

quint docker artisan [COMMAND]

Acts as a passthrough to run Artisan commands on the app

USAGE
  $ quint docker artisan [COMMAND] [-f <value>] [-v <value>]

FLAGS
  -f, --framework=<value>  Name of framework
  -v, --version=<value>    Version of framework

DESCRIPTION
  Acts as a passthrough to run Artisan commands on the app

EXAMPLES
  $ quint docker artisan

quint docker build

Rebuild / Build images for containers

USAGE
  $ quint docker build [-c <value>] [-s <value>]

FLAGS
  -c, --cached=<value>  Build using cached images
  -s, --secret=<value>  Specify build secrests file

DESCRIPTION
  Rebuild / Build images for containers

EXAMPLES
  $ quint docker build

quint docker composer [COMMAND]

Acts as a passthrough to run composer commands on the app

USAGE
  $ quint docker composer [COMMAND]

DESCRIPTION
  Acts as a passthrough to run composer commands on the app

EXAMPLES
  $ quint docker composer

quint docker prune

Remove unused volumes

USAGE
  $ quint docker prune

DESCRIPTION
  Remove unused volumes

EXAMPLES
  $ quint docker prune

quint docker start

Start docker containers in detached mode according to framework

USAGE
  $ quint docker start [-b] [-b]

FLAGS
  -b, --build
  -b, --studio

DESCRIPTION
  Start docker containers in detached mode according to framework

EXAMPLES
  $ quint docker start

quint docker stop [FILE]

Stop docker containers on project

USAGE
  $ quint docker stop [FILE] [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  Stop docker containers on project

EXAMPLES
  $ quint docker stop

quint example exec

This is an example of calling a system command

USAGE
  $ quint example exec

DESCRIPTION
  This is an example of calling a system command

EXAMPLES
  $ quint example exec

quint health

Check if you have the neccessary processes needed

USAGE
  $ quint health

DESCRIPTION
  Check if you have the neccessary processes needed

EXAMPLES
  $ quint health

See code: dist/commands/health.ts

quint help [COMMAND]

Display help for quint.

USAGE
  $ quint help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for quint.

See code: @oclif/plugin-help

quint installer [SERVICE]

Install software when it available

USAGE
  $ quint installer [SERVICE]

DESCRIPTION
  Install software when it available

EXAMPLES
  $ quint installer

See code: dist/commands/installer.ts

quint npm [COMMAND]

Run NPM commands to the container

USAGE
  $ quint npm [COMMAND] [-f <value>] [-v <value>]

FLAGS
  -f, --framework=<value>  Name of framework
  -v, --version=<value>    Version of framework

DESCRIPTION
  Run NPM commands to the container

EXAMPLES
  $ quint npm

See code: dist/commands/npm.ts

quint nuke

Removes all running containers for specified project and all unused volumes

USAGE
  $ quint nuke

DESCRIPTION
  Removes all running containers for specified project and all unused volumes

EXAMPLES
  $ quint nuke

See code: dist/commands/nuke.ts

quint plaza image build

This is the command used by Docker Plaza to build nightly versions of the base images

USAGE
  $ quint plaza image build

DESCRIPTION
  This is the command used by Docker Plaza to build nightly versions of the base images

EXAMPLES
  $ quint plaza image build

quint plaza image push [IMAGE]

describe the command here

USAGE
  $ quint plaza image push [IMAGE]

DESCRIPTION
  describe the command here

EXAMPLES
  $ quint plaza image push

quint plaza run

Run through all the Plaza configs and start

USAGE
  $ quint plaza run

DESCRIPTION
  Run through all the Plaza configs and start

  building and pushing images to the registry!

EXAMPLES
  $ quint plaza run

quint plugins

List installed plugins.

USAGE
  $ quint plugins [--core]

FLAGS
  --core  Show core plugins.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ quint plugins

See code: @oclif/plugin-plugins

quint plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ quint plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.

  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ quint plugins add

EXAMPLES
  $ quint plugins:install myplugin 

  $ quint plugins:install https://github.com/someuser/someplugin

  $ quint plugins:install someuser/someplugin

quint plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ quint plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ quint plugins:inspect myplugin

quint plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ quint plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.

  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ quint plugins add

EXAMPLES
  $ quint plugins:install myplugin 

  $ quint plugins:install https://github.com/someuser/someplugin

  $ quint plugins:install someuser/someplugin

Links a plugin into the CLI for development.

USAGE
  $ quint plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Links a plugin into the CLI for development.

  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.

EXAMPLES
  $ quint plugins:link myplugin

quint plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ quint plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ quint plugins unlink
  $ quint plugins remove

quint plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ quint plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ quint plugins unlink
  $ quint plugins remove

quint plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ quint plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ quint plugins unlink
  $ quint plugins remove

quint plugins update

Update installed plugins.

USAGE
  $ quint plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

quint run [COMMAND]

Acts as a passthrough to run a command directly inside the container

USAGE
  $ quint run [COMMAND]

DESCRIPTION
  Acts as a passthrough to run a command directly inside the container

EXAMPLES
  $ quint run

See code: dist/commands/run.ts

quint set [VARIABLE] [VALUE]

describe the command here

USAGE
  $ quint set [VARIABLE] [VALUE] [-d]

FLAGS
  -d, --delete  Delete variable if set

DESCRIPTION
  describe the command here

EXAMPLES
  $ quint set

See code: dist/commands/set.ts

quint setup

Install necessary dependencies for project into docker containers

USAGE
  $ quint setup

DESCRIPTION
  Install necessary dependencies for project into docker containers

EXAMPLES
  $ quint setup

See code: dist/commands/setup.ts

quint start

Start up containers for project

USAGE
  $ quint start

DESCRIPTION
  Start up containers for project

EXAMPLES
  $ quint start

See code: dist/commands/start.ts

quint stop

Stop runninng containers associated with this project

USAGE
  $ quint stop

DESCRIPTION
  Stop runninng containers associated with this project

EXAMPLES
  $ quint stop

See code: dist/commands/stop.ts

quint system system [FILE]

describe the command here

USAGE
  $ quint system system [FILE] [-n <value>] [-f]

FLAGS
  -f, --force
  -n, --name=<value>  name to print

DESCRIPTION
  describe the command here

EXAMPLES
  $ quint system system

quint welcome

Welcome screen for post install!

USAGE
  $ quint welcome

DESCRIPTION
  Welcome screen for post install!

EXAMPLES
  $ quint welcome

See code: dist/commands/welcome.ts

Keywords

FAQs

Package last updated on 04 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc