npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cobalt-cli

v2.5.14

Published

Cobalt CLI Tool

Downloads

410

Readme

Getting started with Cobalt

Software requirements

  1. Firstly, you need to install LTS version of Node.js platform from official site.

  2. Then you should install Git.

Installing Cobalt CLI

After installing Node.js you will be able to use NPM (Node Package Manager). Install Cobalt CLI using NPM:

npm install -g cobalt-cli

Get help

To get Cobalt CLI help type the command below

co --help

Or run specific command with -h option, e.g:

co init -h

Version

Use command below to get Cobalt CLI version:

co --version

or shorthand:

co -V

Authorize

Enter command below to authorize:

co login

Enter your email address and press Enter:

Ewizard instance: https://[email protected]

You will be redirected to default browser to enter your credentials for login.

After all these steps you will see the successful login message:

Successfully logged in!

Deauthorize

Enter command below to deauthorize:

co logout

Successful logout message should appear:

Successfully logged out!

Generators

Use built-in generator to create initial presentation structure and install all dependencies:

co init

After successful presentation creation, you will be able to use other Cobalt CLI commands.

Create new slide:

co slide %slide-id%

Create a new slide with the CSS-file included

co slide %slide-id% --css

Create chapter:

co chapter

Create data controller:

co controller %controller-name%

Modules

co module command is used to fetch and install modules and project dependencies. It is using NPM mechanisms inside.

Execute the command below to install the module (jQuery for example):

co module install --save jquery

--save flag is optional and used for saving current component as a dependency into package.json manifest.

Use cobalt/ prefix to install Cobalt module:

co module install --save cobalt/%module-name%

Build

Develop build

Execute the command below to build the project:

co debug

If you don't want to build your project manually every time there is a change, use command above with --watch option. It will force Cobalt CLI to watch all your files and build the project automatically.

co debug --watch

If you want to run your project using local web server, you should execute the command above with --live parameter. Local server will be created and your project will be available at the address 127.0.0.1:8000. After making changes in presentation source files, the engine will rebuild the project automatically.

co debug --live

Prodcution build

Execute the command below to run the remote build:

co export --clm %CLM-platform-name%

This command will compress your project and send it to the server to build it for specified CLM-platform.

--clm

--clm parameter is required. This option specifies one of the available CLM platforms (mitouch, irep, iplanner, abbott, viseven, e.t.c).

Also, there are few optional parameters.

--slides

--slides parameter is used to specify the list of slides to build:

co build --clm %CLM-platform-name% --slides "%slide id% %slide id1% %slide idN%"

All slides are built by default.

--structure

--structure parameter is used to specify the JSON-file, which contains presentation structure to build:

co build --clm %CLM-platform-name% --structure %file-path%

File path is relative to the presentation root. There is no need to specify the file extension.

In case you need some detailed information, please, visit our documentation site: https://docs.cobalt-engine.com/