New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@golemio/cli

Package Overview
Dependencies
Maintainers
5
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@golemio/cli

Golemio CLI is a collection of executables intended to be used with Golemio projects and modules

  • 1.0.4-dev.405165459
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
433
decreased by-23.36%
Maintainers
5
Weekly downloads
 
Created
Source

pipeline status coverage report

Golemio CLI

Golemio CLI is a collection of executables intended to be used with Golemio projects and modules

Install the CLI

Prerequisites

$ cd my-project

# With Yarn
$ yarn add --dev @golemio/cli

# With npm
$ npm install --save-dev @golemio/cli

# 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 or --mongo)
golemio migrate-db upExecute up migrations (--postgres and/or --mongo)
golemio migrate-db downExecute down migrations (--postgres and/or --mongo)
golemio migrate-db resetReset all executed migrations (--postgres and/or --mongo)
golemio import-db-data helpView available db data import commands and flags
golemio import-db-dataImport db data (--postgres and/or --mongo)

Environmental variables

VariableExampleRequired
POSTGRES_CONNpostgres://oict:oict-pass@localhost/oict-test:white_check_mark: (mdb and idd postgres)
MONGO_CONNmongodb://localhost:27017/oict-test:white_check_mark: (mdb and idd mongo)
POSTGRES_MIGRATIONS_DIRdb/migrations/postgresql (default):negative_squared_cross_mark:
SQL_DUMP_FILESdb/example/*.sql:white_check_mark: (idd postgres)
MONGO_DATA_PATHSdb/example/**/mongo_data:white_check_mark: (idd mongo)

Development

Prerequisites

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)

$ yarn
$ 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

$ yarn 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

$ yarn test-integration

License

MIT

Keywords

FAQs

Package last updated on 09 Nov 2021

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