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

@golemio/cli

Package Overview
Dependencies
Maintainers
0
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golemio/cli

Collection of executables intended for use with Golemio services and modules

  • 1.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
651
increased by106.01%
Maintainers
0
Weekly downloads
 
Created
Source

pipeline status coverage report

Golemio CLI

Golemio CLI is a collection of executables intended for use with Golemio services and modules

Install the CLI

Prerequisites

$ cd my-project

# With Yarn
$ yarn add --dev @golemio/cli
# For Portman support, run yarn add --dev @apideck/portman@^1.16.1

# With npm
$ npm install --save-dev @golemio/cli
# For Portman support, run npm install --save-dev @apideck/portman@^1.16.1

# Test it out
$ yarn golemio
$ npm exec golemio

Install globally

# With Yarn
$ yarn global add @golemio/cli

# With npm
$ npm install -g @golemio/cli

# Test it out
$ golemio

Commands summary

CommandDescription
golemioDefault command (welcome)
golemio helpView available commands
golemio migrate-db helpView available migration commands and flags
golemio migrate-db create <name>Create new migration scripts (--postgres, --path)
golemio migrate-db upExecute up migrations (--postgres, --path)
golemio migrate-db downExecute down migrations (--postgres, --path)
golemio migrate-db resetReset all executed migrations (--postgres, --path)
golemio import-db-data helpView available db data import commands and flags
golemio import-db-dataImport db data (--dangerous, --postgres)
golemio rabbitmq helpView available rabbitmq commands and flags
golemio rabbitmq send --helpView available rabbitmq send flags
golemio rabbitmq receive --helpView available rabbitmq receive flags
golemio release helpView available commands
golemio release check-modules-integrityCheck module group if new repo was added
golemio release checkCheck repos that are ready to release (--scope, --skip or --only, --interactive)
golemio release mergeMerge repos marked as release candidate by check command (--scope, --skip or --only, --interactive)
golemio release check-mr-pipelinesShow pipelines of merged repos (--scope, --skip or --only, --interactive)
golemio release sync-branchesSynchronize branches after release (--scope, --skip or --only, --interactive)
golemio release create-tagsCreate tags and releases of merged repos (--scope, --skip or --only, --interactive)
golemio release print-release-issuePrint issues and release candidate modules
golemio swagger helpView available swagger commands and flags
golemio swagger generateGenerate OAS file from multiple inputs
golemio swagger api-testRun Portman integration tests
golemio asyncapi mergeMerge asyncapi documentation
golemio asyncapi uploadBuild and upload the asyncapi documentation to the azure blob storage

Read release_management_CZ for more info to release command. Read migrations for more info about database migrations.

Environmental variables

VariableExampleRequired
POSTGRES_CONNpostgres://oict:oict-pass@localhost/oict-test:white_check_mark: (mdb and idd postgres)
RABBIT_CONNamqp://rabbit:pass@localhost:white_check_mark: (rmq)
POSTGRES_MIGRATIONS_DIRdb/migrations/postgresql (default):negative_squared_cross_mark:
SQL_DUMP_FILESdb/example/*.sql:white_check_mark: (idd postgres)
GITLAB_API_TOKENtoken:white_check_mark: (rls)
RELEASE_BRANCH_NAMErelease:negative_squared_cross_mark: (rls) default: release
TARGET_BRANCH_NAMEmaster:negative_squared_cross_mark: (rls) default: master

The value of the variable GITLAB_API_TOKEN should be created in GitLab User Settings page Access Tokens. Token scopes are api, read_repository and write_repository.

Development

Local environment

To set up your local development environment, install project dependencies and create .env file in the root of the project (see .env.template for reference)

$ npm install
$ cp .env.template .env

Now you can run the CLI in development mode, just type

$ ./bin/golemio.js

You don't need to compile the source code as the script automatically registers the ts-node loader in development mode

Unit tests

Unit tests are located at test/unit. You can run them by typing

$ npm run test-unit

Integration tests

Integration tests are located at test/integration. You can run them by typing

# Run local services, recommended
$ docker-compose up -d

$ npm run test-integration

License

MIT

Keywords

FAQs

Package last updated on 02 Jan 2025

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