- {/* CLI Alternative */}
-
-
-
-
- CLI Alternative
-
-
-
- Prefer automation? Use our CLI tool instead
-
-
- Cost 1 credit per upload
-
-
-
-
-
- Command Line Interface
-
- You can also upload manifests programmatically using our CLI tool,
- perfect for CI/CD pipelines.
-
-
-
-
-
-
-
-
- {/* Upload Form */}
-
-
-
-
- Upload Manifest
-
-
-
- Upload a JSON manifest file for project: {context.project.name}
-
-
- Cost 1 credit per upload
-
-
-
-
-
-
-
-
-
- );
-}
diff --git a/packages/app/src/pages/projects/project/manifests/cliSetup.tsx b/packages/app/src/pages/projects/project/manifests/cliSetup.tsx
index 5d42c82..3f97c2e 100644
--- a/packages/app/src/pages/projects/project/manifests/cliSetup.tsx
+++ b/packages/app/src/pages/projects/project/manifests/cliSetup.tsx
@@ -36,24 +36,32 @@ export default function ProjectManifestsCliSetup() {
const cliCommands = [
{
title: "Install the CLI",
- command: "npm install -g @stackcore/cli",
- description: "Install the StackCore CLI globally on your system",
+ command: "https://github.com/nanoapi-io/napi",
+ description:
+ "Follow the instructions to install napi CLI globally on your system",
},
{
title: "Login to your account",
- command: "napi auth login",
- description: "Authenticate with your StackCore account",
+ command: "napi login",
+ description: "Authenticate with your nanoapi account",
+ },
+ {
+ title: "Initialize your project (if not already done)",
+ command: "napi init",
+ description:
+ `You will be prompted to select an existing project, select project "${context.project.name}"`,
},
{
title: "Generate the manifest",
command: "napi manifest generate",
- description: "Generate a manifest file with metadata",
+ description: "This will generate a manifest and push it to your project.",
},
{
- title: "Upload with commit info (optional)",
+ title: "Generate the manifest (in a CI/CD pipeline)",
command:
- `napi manifest push --project-id ${context.project.id} --file ./manifest.json --commit-sha $(git rev-parse HEAD) --branch $(git branch --show-current)`,
- description: "Automatically include Git commit information",
+ "napi manifest generate --branch=${{ github.ref_name }} --commit-sha=${{ github.sha }} --commit-sha-date=${{ github.event_time }}",
+ description:
+ "This will generate a manifest and push it to your project without prompting.",
},
];
@@ -66,8 +74,8 @@ export default function ProjectManifestsCliSetup() {
CLI Instructions