@autohq/cli 0.1.96 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -5
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -19211,7 +19211,7 @@ function createApiClient(input) {
|
|
|
19211
19211
|
const organizationId = input.env.AUTO_ORGANIZATION_ID?.trim() || config2.organizationId;
|
|
19212
19212
|
if (!organizationId) {
|
|
19213
19213
|
throw new Error(
|
|
19214
|
-
"No active organization. Run `auto login`
|
|
19214
|
+
"No active organization. Run `auto auth login` to sign in, then `auto orgs use <organization>` to select one."
|
|
19215
19215
|
);
|
|
19216
19216
|
}
|
|
19217
19217
|
return { organizationId };
|
|
@@ -21675,7 +21675,7 @@ var init_package = __esm({
|
|
|
21675
21675
|
"package.json"() {
|
|
21676
21676
|
package_default = {
|
|
21677
21677
|
name: "@autohq/cli",
|
|
21678
|
-
version: "0.1.
|
|
21678
|
+
version: "0.1.97",
|
|
21679
21679
|
license: "SEE LICENSE IN README.md",
|
|
21680
21680
|
publishConfig: {
|
|
21681
21681
|
access: "public"
|
|
@@ -21690,8 +21690,7 @@ var init_package = __esm({
|
|
|
21690
21690
|
},
|
|
21691
21691
|
type: "module",
|
|
21692
21692
|
bin: {
|
|
21693
|
-
auto: "./dist/index.js"
|
|
21694
|
-
"auto-agent-bridge": "./dist/agent-bridge.js"
|
|
21693
|
+
auto: "./dist/index.js"
|
|
21695
21694
|
},
|
|
21696
21695
|
files: ["dist"],
|
|
21697
21696
|
scripts: {
|
|
@@ -30198,7 +30197,7 @@ function registerProjectCommands(program, context) {
|
|
|
30198
30197
|
).option("--api-url <url>", "Auto API base URL").option("--server <url>", "Auto web server URL").action(async (options) => {
|
|
30199
30198
|
await handleProjectsList(context, options);
|
|
30200
30199
|
});
|
|
30201
|
-
projects.command("create").description("Create a project in the active organization.").requiredOption("--name <name>", "Project name").option("--api-url <url>", "Auto API base URL").option("--server <url>", "Auto web server URL").option("--use", "Set the new project as active").action(async (options) => {
|
|
30200
|
+
projects.command("create").description("Create a project in the active organization.").requiredOption("--name <name>", "Project name").option("--api-url <url>", "Auto API base URL").option("--server <url>", "Auto web server URL").option("--use", "Set the new project as active", true).option("--no-use", "Keep the current active project").action(async (options) => {
|
|
30202
30201
|
const response = await createDirectoryClient(context).createProject({
|
|
30203
30202
|
projectName: options.name,
|
|
30204
30203
|
apiBaseUrl: apiUrlFromOptions(context, options)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autohq/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.97",
|
|
4
4
|
"license": "SEE LICENSE IN README.md",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"bin": {
|
|
18
|
-
"auto": "./dist/index.js"
|
|
19
|
-
"auto-agent-bridge": "./dist/agent-bridge.js"
|
|
18
|
+
"auto": "./dist/index.js"
|
|
20
19
|
},
|
|
21
20
|
"files": ["dist"],
|
|
22
21
|
"scripts": {
|