Migrating from v0 to v1

Upgrade a 0.x project and update the scripts, CI jobs, and agents that run the CLI.

Version 1 makes your intent win over prompts: no confirmations, flags that answer questions in a terminal, commands that run without one, and recorded choices that are reused. See Questions, flags, and defaults. Upgrade the project first, then check any script, CI job, or agent instruction that runs the CLI against the changes below.

Upgrade a project

  1. Run the latest release with npx:

    npx @jfdevelops/cli@latest update

    To answer every question with its default, for example in CI, add --yes:

    npx @jfdevelops/cli@latest update --yes

    Do not run jfdevelops update from the project's own 0.x dependency for this first upgrade. That older CLI performs the upgrade step: it needs a terminal, asks for confirmation, and rejects --yes and --conflicts. Running the latest release through npx avoids that.

  2. Commit the manifest, the lockfile, the skill copies, and jfdevelops.json.

  3. Make sure every collaborator and CI job uses the upgraded CLI. A 0.x CLI rejects flags that 1.x adds, such as --conflicts on skills sync.

Upgrade the dependency yourself

To upgrade the dependency without npx, install the release, then run jfdevelops update or jfdevelops skills sync:

npm i -D -E @jfdevelops/cli

Breaking changes

No confirmations

Every yes-or-no confirmation is gone: "Apply these changes?" (init, add, add skill, add addon, add package, skills sync, create skills, and the tooling step of update), "Create this project?", "Upgrade the CLI and review project updates?", "Update these source packages to their latest published versions?", "Install ... with ...?" for an addon, "Use these target types?", "Initialize Git and create the foundation commit?", "Scaffold a new skill?", and the questions that asked whether to add a package. Running a command is the decision to apply it. You can still cancel at any remaining question with Ctrl+C, but package installs that already ran stay.

To look before you change anything, use a read-only command. Tools that drove the old prompts by position, for example an agent in a pseudo-terminal, must pass flags instead.

# 0.x: run sync, answer No to "Apply these changes?"
jfdevelops skills sync
# 1.x: look first, then apply
jfdevelops skills --check
jfdevelops skills sync

Flags answer their questions in a terminal

In 0.x, a terminal run ignored the choice flags and --conflicts and asked everything. Now a flag answers its question wherever you run the command.

# 0.x, in a terminal: asks which agents anyway
jfdevelops init --agents codex
# 1.x: uses Codex and does not ask
jfdevelops init --agents codex

Commands run without a terminal

In 0.x, create and init refused to run without --yes, and add, update, skills sync, skills update, and create skills always refused, with a message such as "jfdevelops skills sync is interactive; run it in a terminal." and exit code 1, changing nothing. Now they run. Questions take their defaults, and a question with no default fails the command with exit code 1 and names the flag to pass when the question has one:

No default answers "<question>". Pass <flag>, or run the command in a terminal without --yes.

A script that relied on the refusal as a harmless no-op now changes files. In CI, jfdevelops skills sync writes updated copies and keeps copies you edited. Skills whose package is gone are kept too, unless you pass --remove-missing. To check without changing anything, use jfdevelops skills --check.

--yes is never required

In 0.x, --yes meant "apply the plan without prompting", existed only on create and init, and was required without a terminal. Now it answers every question your flags leave open with its default, and the commands that ask or write all accept it. A run without a terminal behaves as if you had passed it.

# 0.x, in CI
npx @jfdevelops/cli init --yes
# 1.x: --yes is optional
npx @jfdevelops/cli init
jfdevelops add addon docs --yes
jfdevelops update --yes

--conflicts works on every writing command

In 0.x, --conflicts existed only on create and init, and applied only with --yes. Now every command that writes files accepts it, with or without --yes.

# 0.x: asks about each file in a terminal; the option does not exist on skills sync
jfdevelops init --conflicts overwrite
jfdevelops skills sync --conflicts overwrite
# 1.x: both overwrite the edited files without asking
jfdevelops init --conflicts overwrite
jfdevelops skills sync --conflicts overwrite

create has no destination question

The argument is the destination, and its last path segment is the project name. Pass the path you want.

# 0.x: create, then name "web", then destination "apps/web"
npx @jfdevelops/cli create
# 1.x
npx @jfdevelops/cli create apps/web

create names the project my-project by default

Without an argument, create asks for the name with my-project as the default. In 0.x, create --kind app --yes failed with "Pass a project name or directory argument when creating a project non-interactively." Now it creates ./my-project. Pass a name to avoid that.

create can infer the project kind from layout flags

create my-app --yes still fails without a kind, now with No default answers "What kind of project are you creating?". Pass --kind <app|library>, ... instead of "Missing --kind. Use app or library." The layout flags imply the kind: --monorepo, --no-monorepo, --app-name, and --apps-dir mean an app, and --workspace and --no-workspace mean a library. For example, create my-app --monorepo --yes creates an app monorepo.

create no longer asks about Git

Git is initialized unless you pass --no-git.

# 1.x
npx @jfdevelops/cli create my-app --kind app --no-git

create asks about structure with a choice

An app asks How should the app be structured? with Single app or Monorepo, replacing the monorepo checkbox in "Which options should the project use?". A library asks How should the library be structured? with Single package or Workspace, replacing "Do you want to add a package? (this makes the project a workspace)". New --no-monorepo and --no-workspace flags answer these questions.

create takes packages in one answer

The "Do you want to add a package?", "What do you want to name this package?", and "Add another package?" loop is replaced by one comma-separated answer. A library workspace needs at least one package, with core as the default.

# 1.x
npx @jfdevelops/cli create acme --kind app --monorepo --packages ui,utils

Workspace flags imply a workspace, and contradictions fail

In 0.x, workspace flags without --monorepo or --workspace were ignored: create my-app --kind app --namespace acme --yes created a single app. Now any workspace flag makes it a workspace, so that command creates a monorepo. --no-monorepo or --no-workspace combined with a workspace flag, the other kind's structure flag, and --app-name or --apps-dir with a library are errors. See workspace options.

init trusts target kinds

init no longer shows "Use these target types?" or asks you to correct kinds one by one. A kind recorded in jfdevelops.json wins over detection, and a detected kind is used as it is. Only a kind it cannot determine is asked. To correct a kind, pass --targets.

# 0.x: answer No to "Use these target types?", then choose each kind
# 0.x, in CI: init --yes failed with "Target packages/ui has an unknown kind. Run jfdevelops init interactively to choose app or library."
# 1.x
jfdevelops init --targets packages/ui=library
jfdevelops init --yes --targets packages/ui=library

Reruns of init keep what the project recorded

With --yes or without a terminal, a configured project keeps its recorded integrations, enabled skills, and agents unless you override those choices with flags. init uses the recorded package manager when it cannot detect one. In 0.x, --yes enabled every available skill and every agent, and failed with "Missing --package-manager" when no manager was detected. To enable one more skill, run jfdevelops add skill <name>. --skills is the complete list of dependency skills to keep enabled, written as name, package:name, or package@version:name when a package is installed in several versions. Any enabled skill you leave out is removed, and its unchanged copies are deleted, unless its source package no longer provides it, in which case init warns and keeps it (use jfdevelops skills sync --remove-missing to remove it); an edited copy is a conflict, and keeping it keeps the skill enabled.

# 0.x: jfdevelops init --yes enabled every available skill
# 1.x: the same command keeps the enabled set; add a skill explicitly
jfdevelops add skill <name>

add addon installs without confirmation

The install command is printed and run. New options choose where and what: --scope, --skills, --docs-package, and --docs-name.

# 0.x: answer the question "Install convex in apps/web with `pnpm add convex`?"
# 1.x
jfdevelops add addon convex --scope apps/web

add package has no directory question

The directory defaults to the first workspace directory plus the package name. Pass --path to choose another.

# 0.x: answer "Where should the package be created?" with libs/ui
# 1.x
jfdevelops add package @acme/ui --path libs/ui

add skill takes --source

When several packages or versions provide a skill, pass --source <package[@version]>. Without it, a terminal asks and a run with defaults fails.

update upgrades without confirmation and runs init without questions

update immediately upgrades the CLI with the package manager recorded in jfdevelops.json. The installed CLI uses that manager for skill-package upgrades, then runs init without questions, instead of the full interactive init of 0.x. init reuses recorded target kinds, integrations, agents, and enabled skills, and adopts no other integrations. It uses the detected package manager when available and falls back to the recorded one. To change those choices, run jfdevelops init afterwards, for example jfdevelops init --agents claude-code,codex. --yes, --conflicts, --scripts, and --remove-missing are passed on to the installed CLI. With --yes or without a terminal, update keeps conflicting scripts and scripts that duplicate Vite+ tasks by default. --scripts replace selects the generated command for a script conflict and selects duplicate task scripts for removal. If the file conflict policy keeps package.json, its scripts stay as they were. See update.

# 0.x, in CI: jfdevelops update
jfdevelops update is interactive; run it in a terminal.
# 1.x
npx @jfdevelops/cli@latest update --yes

skills update upgrades without confirmation

The command shows the package upgrades and warns that each upgrade covers the whole package, and then installs them. Run jfdevelops skills first to see what is enabled.

create skills scaffolds from a name

"Scaffold a new skill?" followed by "Skill name" is replaced by one question, "Name a new skill to scaffold (Enter to skip)". The new --name and --description options answer the questions, and the command runs without a terminal.

# 1.x
npx @jfdevelops/cli create skills --name build-forms --description "Build forms with validation and accessible errors."
npx @jfdevelops/cli create skills --yes

Exit codes and flag checking

Exit code 1 no longer means "run without a required terminal". It now includes a question without a default under --yes or without a terminal. A cancelled question still exits with 0. --conflicts shows <policy> in the help text, and an invalid value is rejected before the command starts. skills sync and skills update now reject --check and exit with 1; use jfdevelops skills --check or jfdevelops skills outdated --check.

New options

OptionCommandReference
-y, --yes, --conflictscreate skills, add and its subcommands, update, skills sync, skills updateCommon options
--remove-missingskills sync, skills update, updateMissing-source skill selection
--no-monorepo, --no-workspacecreateWorkspace options
--targetsinitTarget kinds
--name, --descriptioncreate skillscreate skills
--sourceadd skilladd skill
--scope, --skills, --docs-package, --docs-nameadd addonadd addon
--pathadd packageadd package

For the 0.x behavior of any command, see the 0.x command reference.

Projects set up before 0.10.0

Since 0.10.0, shared skill files come from jfdevelops/skills on main rather than from the @jfdevelops/skills npm package. In a project set up earlier, jfdevelops skills reports shared skills as outdated until you sync, and jfdevelops skills sync after the upgrade refreshes them. Releases 0.7.0 through 0.9.0 read the shared skills from the installed package, so a sync with one of those older CLIs rewrites them from npm; make sure every collaborator and CI job runs the upgraded CLI. Keep the @jfdevelops/skills development dependency. If you removed it, jfdevelops init or jfdevelops update adds it back.

Next steps