0.13.0 • Published 6 months ago

@everymundo/em-registry-cli v0.13.0

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

NPM version

registry

CLI for the EM Registry

Instalation

npm i -g @everymundo/em-registry-cli

Credentials

Just like the awscli you can have different profiles/accounts in your $HOME/.everymundo/registry.json file

Configure the default account

registry configure

? What's the accountId [] ABCD
? What's the userId  [] user1
? What's the userApiKey [...] [hidden]

This will create a file like this $HOME/.everymundo/registry.json

{
    "accounts": {
        "default": {
            "accountId": "ABCD",
            "userId": "user1",
            "userApiKey": "ejgfj9svjirshut894u40ounw4onug395p4uu4om9v"
        }
    }
}

Configure another account

registry configure -a test
# or
registry configure --account test

? What's the accountId [] abc
? What's the userId  [] u100
? What's the userApiKey [...] [hidden]

Modules

Initialize an existing module

In the case of having an existing project without an em-module.json file in the project your see the following message when running the registry

registry init

? What's the moduleId (m100)

{
  "moduleId": "m200"
}

Publish a module

At the moment we are only publishing a zipfile with the content of your transpile (preferred) module with the registry

An temporary requirement is an index.html file that loads your module. This requirement will be removed soon and we'll generate such file.

The flow could be something like this:

npm run build

cd dist # or cd build, or whatever is the output of your build

zip -r ../build.zip *

registry publish ./build.zip

The output of the publish command, when successfull, should be a preview URL of the module. Something like this:

Preview URL: https://em-registry-uploads--849481900493--us-east-1.s3.amazonaws.com/prod/ANDREZ/m201/000000340618804092/index.html

Commands

CommandsDescription
push \Pushes your Everymundo Module
initInitializes a module with its id
configureConfigures credentials
createCreates a module on our servers
list-modules optionsList available modules for you
package optionsCreates a package file using the pre-defined command
promote optionsPuts a specific deployment in a queue for QA to promote it
whoamiPrints the current Partner and userId
help commandDisplay help for command
0.11.0

7 months ago

0.10.1

7 months ago

0.12.0

7 months ago

0.13.0

6 months ago

0.10.0

1 year ago

0.9.0

1 year ago

0.7.2

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.5.3

2 years ago

0.7.3

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago