Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/guides/tools/devvit_cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ Installs your app to your test subreddit and starts a playtest session. A new ve
$ npx devvit playtest
```

:::warning The Correct Way
`devvit playtest` alone does not work with devvit web. use `npm run dev` instead.
:::

#### Optional argument

- subreddit
Expand All @@ -277,6 +281,26 @@ If no subreddit is specified, the command will use the first available option fr

If none exist, a new playtest subreddit will be automatically created.

### devvit publish

Creates a new app version, uploads it along with your source for review, and then files a publish request for you app.

#### Usage

```bash
$ npx devvit publish [--config <value>] [--bump major|minor|patch | --version <value>] [--copy-paste] [-v]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devvit publish does not have a --bump flag option, at least not in 12.10. devvit upload is the one that has the --bump flag.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DNSCond I see, it's new in 12.11. Sorry for the confusion!

[--public | --withdraw]
```

#### Optional arguments

- `-v` `--verbose`: Enable verbose logging
- `--config=<value>`: path to devvit config file
- `--copy-paste`: Copy-paste the auth code instead of opening a browser
- `--public`: Submit the app for review to be published publicly (as opposed to unlisted, the default)
- `--version=<value>`: Explicit version number (e.g: 1.0.1)
- `--withdraw`: Withdraw the most recent publish request for your app (if it exists and is pending)

### devvit settings list

List settings for your app. These settings exist at the global app-scope and are available to all instances of your app.
Expand All @@ -287,6 +311,7 @@ List settings for your app. These settings exist at the global app-scope and are
$ npx devvit settings list
```


### devvit settings set

Create and update settings for your app. These settings will be added at the global app-scope.
Expand Down