Catalog npm
Back to packageRELEASE DETAILS

0.0.32

npm

12g

Administration tool for development and devops, according to the 12factor principles as applied by @grrr-amsterdam.

12factoradministrationdevopsremote
Published1 Jun 2017
Direct dependencies16
Transitive dependenciesNot calculated

README

Current package documentation

12g

Build Status Greenkeeper badge Dependencies

Administration tool for development and devops, according to the 12factor principles as applied by Grrr

Install

$ npm install -g 12g

Commands

Display help

$ 12g -h [command] [subcommand]

Environment

Create a template .env file

$ 12g env template

This will create a copy of your local .env file, named .env.template, with all values emptied.

Get variable from a .env file

$ 12g env get -e [target environment name] --var=DB_HOST

This will print the value from the environment variable set in the .env file on the target. Will return undefined if the variable is not set.

List variables from a .env file

$ 12g env list -e [target environment name]

This will list the variables from the .env file on the target, without quotes or comments. Target environment is probably development, staging, production, etcetera, depending on your setup.

If the targeted environment is remote, an SSH connection will be attempted, if Capistrano configuration can be found.

Json

Default the values will be pretty-printed, but listing in JSON is also possible:

$ 12g env list -e [target environment name] -o json

-o or --output sets the output format.

Current environment

$ 12g env name

This will print out the name of the current environment.

Docker shortcut

Use 12g dock [command] to execute a Docker command directly on your Docker Compose webserver. It has to be running and it will have to adhere to the naming standards as we use them at @grrr-amsterdam, which is basically calling your httpd service 'web'.

Examples:

$ 12g dock bash
$ 12g dock g spawn
$ 12g dock g snippet create

Shorthand

You can use shorthand syntax in the provided argument for common environment names:

  • p becomes production
  • s becomes staging
  • i becomes integration
  • d becomes development
  • t becomes testing

For instance:

$ 12g env list -e s

To list the environment for staging.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 16

Native requirements
16 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
12g-cleandotenv
Environment
{
  "local_name": "12g-cleandotenv",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
12g-env-template
Environment
{
  "local_name": "12g-env-template",
  "alias": false,
  "peer_metadata": null
}
^1.0.2runtime
capistrano-config
Environment
{
  "local_name": "capistrano-config",
  "alias": false,
  "peer_metadata": null
}
^1.0.2runtime
capistrano-ssh-wrapper
Environment
{
  "local_name": "capistrano-ssh-wrapper",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^1.1.3runtime
child_process
Environment
{
  "local_name": "child_process",
  "alias": false,
  "peer_metadata": null
}
^1.0.2runtime
cli
Environment
{
  "local_name": "cli",
  "alias": false,
  "peer_metadata": null
}
^1.0.1runtime
cli-table2
Environment
{
  "local_name": "cli-table2",
  "alias": false,
  "peer_metadata": null
}
^0.2.0runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.4runtime
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^3.4.2runtime
mysql-ssh
Environment
{
  "local_name": "mysql-ssh",
  "alias": false,
  "peer_metadata": null
}
^1.0.1runtime
mysql2
Environment
{
  "local_name": "mysql2",
  "alias": false,
  "peer_metadata": null
}
^1.2.0runtime
mysqldump
Environment
{
  "local_name": "mysqldump",
  "alias": false,
  "peer_metadata": null
}
^1.4.2runtime
path
Environment
{
  "local_name": "path",
  "alias": false,
  "peer_metadata": null
}
^0.12.7runtime
shelljs
Environment
{
  "local_name": "shelljs",
  "alias": false,
  "peer_metadata": null
}
^0.7.7runtime
subcommander
Environment
{
  "local_name": "subcommander",
  "alias": false,
  "peer_metadata": null
}
^1.0.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-g/cOgr4eMGkBzHSqDUWRUeT9lzRwqaTWlo6dfy2bRX91XGUfEtKDYkDjsl2ijxvUeVEnswzI3s9DeO/VM0rMuw==",
  "shasum": "6333c68bf2023460be4e9209fa48c28baf9981d4",
  "tarball": "https://registry.npmjs.org/12g/-/12g-0.0.32.tgz",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIAgcVEu+9ffjhzWtXww6LNY4hHRpN2BvC1bCwioeZceRAiAgiOJW7px8icOd125QCbs62ggK+CGU18reyG1bv+w8Mw=="
    }
  ]
}

Repository

PENDING
grrr-amsterdam/12g

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:12 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d221ae2c76ef9a7add3bc2a896fd2f01f4475d1cc671bd25bf7b6debc83fcdb9

Other collected versions

1.0.122 Feb1.0.031 Jan0.0.4121 Aug0.0.4013 Jul0.0.3913 Jul0.0.381 JunView all collected versions →