Manage projects from the CLI (#3460)
* feat(cli): manage projects Expose the existing project lifecycle through one CLI command group so projects can be managed without opening the app. * fix(cli): preserve remote project paths Project paths belong to the daemon when a target is explicit. Require that path instead of resolving the CLI machine's cwd, and keep local convenience resolution for the default connection. * docs(cli): document project management * docs(cli): remove repeated project reference
This commit is contained in:
@@ -4,6 +4,7 @@ import { createDaemonCommand } from "./commands/daemon/index.js";
|
||||
import { createPermitCommand } from "./commands/permit/index.js";
|
||||
import { createProviderCommand } from "./commands/provider/index.js";
|
||||
import { createPluginCommand } from "./commands/plugin/index.js";
|
||||
import { createProjectCommand } from "./commands/project/index.js";
|
||||
import { createScheduleCommand } from "./commands/schedule/index.js";
|
||||
import { createSpeechCommand } from "./commands/speech/index.js";
|
||||
import { createScriptCommand } from "./commands/script/index.js";
|
||||
@@ -194,6 +195,7 @@ export function createCli(): Command {
|
||||
program.addCommand(createSpeechCommand());
|
||||
|
||||
// Workspace commands
|
||||
program.addCommand(createProjectCommand());
|
||||
program.addCommand(createWorkspaceCommand());
|
||||
// COMPAT(worktreeCli): legacy command alias added before workspace was the product unit.
|
||||
// Added in v0.2.0; remove after 2027-01-17.
|
||||
|
||||
Reference in New Issue
Block a user