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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@motiadev/cloud

v1.0.0-alpha.26

Published

Motia Cloud

Downloads

15

Readme

Motia Cloud CLI

A command-line interface for managing MotiaCloud projects and deployments.

Installation

npm install -g @motiadev/cloud

Environment Variables

The CLI supports the following environment variables:

  • MOTIA_API_KEY: Your Motia Cloud API key (can be used instead of providing the --api-key option)

Commands

Project Management

You can create multiple projects in Motia Cloud, it represents an application or a service under your organization.

Initialize a Project

motiacloud init [options]

Options:

  • -k, --api-key <api key>: API key for authentication (required)
  • -p, --project <project id>: The project ID of an existing Motia Cloud project
  • -n, --name <project name>: The name for your Motia Cloud project
  • -d, --description <description>: Description of the Motia Cloud project

List Projects

motiacloud project ls [options]

Options:

  • -k, --api-key <api key>: API key for authentication (required)

Environment Management

Underneath each project, you can create multiple environments, it represents a version environment.

Examples are: staging, dev, production, sandbox, preview, etc.

Create a Environment

motiacloud environment create [options]

Options:

  • -k, --api-key <api key>: API key for authentication (required)
  • -n, --name <environment name>: The name for your version environment
  • -d, --description <description>: Description of the version environment

Select a Environment

motiacloud environment select [options]

Options:

  • -k, --api-key <api key>: API key for authentication (required)
  • -n, --name <environment name>: The name of the environment to select

List Environments

motiacloud environment list [options]

Options:

  • -k, --api-key <api key>: API key for authentication (required)

Update Environment Version

You can promote a version to a environment, all traffic will be routed to the new version.

motiacloud environment update [options]

Options:

  • -k, --api-key <api key>: API key for authentication (required)
  • -v, --version <version>: The version to promote (required)

Version

Build Project

This is just to test the build process, it will not deploy anything.

motiacloud build

Deploy Project

This command builds the project and then deploys it to the selected environment. You need to specify a new version for the version.

Each version has unique version, specifying an existing version will fail.

motiacloud deploy [options]

Options:

  • -k, --api-key <key>: The API key for authentication (required)
  • -v, --version <version>: The version to deploy (required)
  • -p, --project-id <id>: Override the selected project
  • -s, --environment-id <id>: Override the selected environment
  • -e, --env-file <path>: Path to environment file

Get Logs

Will list latest logs from the selected environment. This includes all versions deployed to the environment. You should see the version that generated the log on each log line. Details are not included by default, use the --include-details flag to include them.

motiacloud logs [options]

Options:

  • -k, --api-key <key>: The API key for authentication (required)
  • -s, --environment <environment>: The environment to get logs from
  • -i, --include-details: Include details in the logs

Configuration

The CLI stores project configuration in a local config file. We recommend pushing this file to your version control system. This includes:

  • Project ID
  • Project name
  • Project description
  • Selected environment

Error Handling

The CLI provides detailed error messages and status updates during operations. If an error occurs:

  1. The operation will be terminated
  2. A descriptive error message will be displayed
  3. The process will exit with a non-zero status code

Best Practices

  1. Always use the --api-key option or set the MOTIA_API_KEY environment variable.
  2. Select a environment before deploying.
  3. Use semantic versioning for your versions.
  4. Keep your environment files secure and never commit them to version control, make sure to add the file name to your .gitignore file.