Catalog npm
Back to packageRELEASE DETAILS

0.0.11

npm

12g

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

12factoradministrationdevopsremote
Published24 May 2017
Direct dependencies7
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 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
cli
Environment
{
  "local_name": "cli",
  "alias": false,
  "peer_metadata": null
}
^1.0.1runtime
envfile
Environment
{
  "local_name": "envfile",
  "alias": false,
  "peer_metadata": null
}
^2.1.1runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.4runtime
mysqldump
Environment
{
  "local_name": "mysqldump",
  "alias": false,
  "peer_metadata": null
}
^1.4.2runtime
node-env-file
Environment
{
  "local_name": "node-env-file",
  "alias": false,
  "peer_metadata": null
}
^0.1.8runtime
q
Environment
{
  "local_name": "q",
  "alias": false,
  "peer_metadata": null
}
^1.5.0runtime
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
{
  "shasum": "82d13dcb82400c60f8d6cd71eed93db409081fad",
  "tarball": "https://registry.npmjs.org/12g/-/12g-0.0.11.tgz",
  "integrity": "sha512-NptpxzHd7uCvtaLO4EisU1/g2Er8mA6AsMYFCZqqT6HacYlDNzNE9kOKHpmNjmq26/vD+2vHhoRiuk2/N/kAcw==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQChPC55R8cKvtrbxjQjFEDD5QHOTGUS10S2X4h9I+m0dAIgD00dKS9l/2vhlcN1ZywKJZVz43qgz1Qame2zVsvJ07I="
    }
  ]
}

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:4297d7028e7d244998352db970d5dc4e408622da5369f1115dddc10ed0c37718

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 →