Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devvit/cli

Package Overview
Dependencies
Maintainers
0
Versions
2313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devvit/cli

Reddit's Dev Platform CLI Tool

  • 0.11.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

IF YOU ARE TRYING TO INSTALL THE CLI, THIS IS PROBABLY THE WRONG PACKAGE!!

Check out devvit instead!

@devvit/cli

Sign up for Reddit's Developer Platform here!

devvit is the command line interface to the Reddit Developer Platform

More on available commands: CLI docs

Local development

You can run the local version of devvit called mydevvit. It uses your local source code instead of the one published to NPM.

You need to run a few commands to make it work on your computer:

One-time preparation

Start in the repo root

  1. yarn && yarn build
  2. cd packages/cli
  3. yarn install:dev
  4. source ~/.zshrc (or restart your terminal)

These commands ensure you have the mydevvit command available in your console. During later development, you'll only need to rebuild sources to use mydevvit.

After code changes

For CLI-only changes, running yarn build in packages/cli is enough. Make sure to run yarn && yarn build in the repo root after pulling from the remote or making changes outside of packages/cli!

Running mydevvit

Devvit CLI interacts with the Dev Portal API, which at present cannot be run locally. As a result, to run mydevvit, you'll need to tell it to point at the production version of the API like this:

MY_PORTAL=0 mydevvit [command] # executes [command] using your local devvit cli, but production backend

FAQs

Package last updated on 31 Oct 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc