Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@golemio/cli
Advanced tools
Golemio CLI is a collection of executables intended to be used with Golemio projects and modules
Golemio CLI is a collection of executables intended to be used with Golemio projects and modules
$ 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
# With Yarn
$ yarn global add @golemio/cli
# With npm
$ npm install -g @golemio/cli
# Test it out
$ golemio
Command | Description |
---|---|
golemio | Default command (welcome) |
golemio help | View available commands |
golemio migrate-db help | View available migration commands and flags |
golemio migrate-db create <name> | Create new migration scripts (--postgres or --mongo) |
golemio migrate-db up | Run up migrations (--postgres and/or --mongo) |
golemio migrate-db down | Run down migrations (--postgres and/or --mongo) |
golemio import-db-data help | View available db data import commands and flags |
golemio import-db-data | Import db data (--postgres and/or --mongo) |
Variable | Example | Required |
---|---|---|
POSTGRES_CONN | postgres://oict:oict-pass@localhost/oict-test | :white_check_mark: (mdb and idd postgres) |
MONGO_CONN | mongodb://localhost:27017/oict-test | :white_check_mark: (mdb and idd mongo) |
POSTGRES_MIGRATIONS_DIR | db/migrations/postgresql (default) | :negative_squared_cross_mark: |
SQL_DUMP_FILES | db/example/*.sql | :white_check_mark: (idd postgres) |
MONGO_DATA_PATHS | db/example/**/mongo_data | :white_check_mark: (idd mongo) |
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 are located at test/unit. You can run them by typing
$ yarn test-unit
Integration tests are located at test/integration. You can run them by typing
# Run local services, recommended
$ docker-compose up -d
$ yarn test-integration
FAQs
Collection of executables intended for use with Golemio services and modules
The npm package @golemio/cli receives a total of 274 weekly downloads. As such, @golemio/cli popularity was classified as not popular.
We found that @golemio/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.