Skip to content

Commit

Permalink
[cli] Improve help text on init command
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Nov 15, 2017
1 parent ac13d15 commit e578163
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/@sanity/cli/src/commands/init/initCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,25 @@ Options
--template <template> Project template to use [default: "clean"]
Examples
# Initialize a new project, prompt for required information along the way
sanity init
# Initialize a new plugin
sanity init plugin
# Initialize a project with the given project ID and dataset to the given path
sanity init -y --project abc123 --dataset production --output-path ~/myproj
# Initialize a project with the given project ID and dataset using the moviedb
# template to the given path
sanity init -y --project abc123 --dataset staging --template moviedb --output-path .
`

export default {
name: 'init',
signature: 'init [plugin]',
description: 'Initialize a new Sanity project',
description: 'Initialize a new Sanity project or plugin',
action: lazyRequire(require.resolve('./initAction')),
helpText
}

0 comments on commit e578163

Please sign in to comment.