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

@clodui/cli

v0.10.1

Published

Clodui command-line tool

Downloads

16

Readme

Clodui CLI

A command-line tool to create and manage websites in Clodui

Demo

Installation

Minimum requirements:

  • NodeJS v10.x or above

To install Clodui CLI run following command from your terminal.

npm install @clodui/cli -g
or
yarn global add @clodui/cli

Run the following command to verify the installation

clodui --version

For convenience, Clodui CLI has a login command which persists the logged-in session. Then you can run subsequent commands without passing credentials. It's useful in your developer workstation, however not required on a CI/CD environment.

To enable logged-in session persistence, Clodui CLI uses libsecret so you may need to install it before running npm install or yarn install command.

On Linux

Depending on your distribution, you will need to run the following command:

  • Debian/Ubuntu: sudo apt-get install libsecret-1-dev
  • Red Hat-based: sudo yum install libsecret-devel
  • Arch Linux: sudo pacman -S libsecret

Usage

After installation you will be able access clodui command.

To see the list of available commands or help related to a particular command add --help or -h to the command.

clodui --help

or

clodui [command] -h

Login

Login to your Clodui account

clodui login -u <username> -p <password>

To avoid entering credentials, you can set environment variables CLODUI_USERNAME and CLODUI_PASSWORD before running this command.

Logout

Logout from Clodui

clodui logout

Create Website

Website creation command

clodui website create -s <source-directory>

You can also change website settings like optimization, security or spa by providing appropriate options.

Options:

  --source-dir, -s    [string] [required]
  --optimization, -o  [string] [choices: "no", "basic", "standard", "full"]
  --security, -e      [string] [choices: "no", "basic", "standard", "full"]
  -p, --spa           [boolean]

Create or Update website

Create or update a website.

clodui website deploy -s <source-directory> -w <website-id>

A new website is created when --website-id option is not provided, otherwise changes are deployed to that website.

Options:
  --source-dir, -s  [string] [required]
  --website-id, -w  [string]

List your websites

List websites to which you have permission.

clodui website list

Website status

To see the status of your website

clodui website status --website-id <website-id>

Deploying changes

To deploy changes to an existing website

clodui deploy --website-id <website-id> create --source-dir <source-directory>

To publish the files on deployment include -p flag.

Options:
  --website-id, -w   Website id                               [string] [required]
  --source-dir, -s  Website files directory, defaults to current working
                    directory.                               [string] [required]
  --publish, -p     Auto publish deployment                            [boolean]

Publish deployment

To publish a deployment

clodui deploy --website-id <website-id> publish --deployment-id <deployment-id>

Redeploy deployment

To redeploy with the latest website settings

clodui deploy --website-id <website-id> redeploy --deployment-id <deployment-id>

To auto-publish when redeploying, pass --publish flag

Options:
  --website-id, -w     Website id                            [string] [required]
  --deployment-id, -d  Deployment id                         [string] [required]
  --publish, -p        Auto publish deployment                         [boolean]