New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mod-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mod-cli

a CLI Tool for Mojo Package Manager

pipPyPI
Version
0.1.2
Maintainers
1

Mod = (Mojo Dep)

English | 简体中文

Intro

  • Mojo Package Manager Tool
  • like:
    • Rust: Cargo
    • Python: Pip/Poetry/PDM
    • Go: Dep + Vendor

Quick Start

  • ✅ requirements:
    • mojo 0.6+
    • python 3.10+
    • git
mojo -v            
mojo 0.6.1 (876ded2e)

python --version                                                                                                                                          07:27:03
Python 3.10.9

  • ✅ install mod:

pip install mod-cli

# or
poetry add mod-cli --dev

  • ✅ Usage: (Using the mod command)
    • mod new: create a new mojo project
      • --lib: Create a library project.
      • --bin: Create an application (executable binary).
    • mod init: Create a new mojo package in an existing directory
    • mod build: build a mojopkg
    • mod install: download mojo dependencies to target/deps
    • mod hack:
      • mod hack build: build target/deps dependencies into mojopkg
      • mod hack install: install target/deps dependencies to `mojo standard library path
      • mod hack uninstall: uninstall target/deps dependencies
      • mod hack clean: Clean the mojopkg (binary library) generated by compiling target/deps.
    • mod run: Run a mojo file.
    • mod test: Run unit tests.
    • mod add: Add a dependency.
    • mod remove: Remove a dependency.
    • mod list: List all dependencies.
    • mod search: Search for dependencies (fuzzy search).
    • mod sync: Sync dependencies.
    • mod lint: Code style check.
    • mod publish: Publish a mojo project.
    • mod workspace: Manage monorepo workspaces.
      • mod workspace init: Initialize a workspace.
      • mod workspace list: List workspaces.
      • mod workspace add: Add a workspace.
      • mod workspace remove: Remove a workspace.
    • mod self: Manage itself.
      • mod self update: Update the mod command itself.
    • mod help: Show help information.

mod --help


Manual

  • mod cmds

✅ Create a new project

  • like cargo new style:
# new a libary
mod new your/path/to/project --lib

# new a app
mod new your/path/to/project --bin

❎ Build Mojo Package

  • ❎ TODO

mod build

References

package manager

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts