Skip to content

Commit 790187b

Browse files
committed
Updated management token to source token
1 parent a1c9ef7 commit 790187b

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/release-production-plugins.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ jobs:
198198
token: ${{ secrets.NPM_TOKEN }}
199199
package: ./packages/contentstack-external-migrate/package.json
200200
tag: alpha
201-
access: public
202201

203202
- name: Create Production Release
204203
id: create_release

packages/contentstack-external-migrate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-external-migrate",
3-
"version": "1.0.0-alpha.1",
3+
"version": "1.0.0-alpha.2",
44
"description": "Migrate from external source to Contentstack",
55
"author": "Contentstack",
66
"license": "MIT",

packages/contentstack-external-migrate/src/commands/migrate/create.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ export default class MigrateCreate extends Command {
139139

140140
// Resolve the Contentful management token (shared) for live-API discovery.
141141
let managementToken =
142-
flags['management-token'] ?? process.env.CONTENTFUL_MANAGEMENT_TOKEN ?? readContentfulCliToken();
142+
flags['source-token'] ?? process.env.CONTENTFUL_MANAGEMENT_TOKEN ?? readContentfulCliToken();
143143
if (!managementToken) {
144144
managementToken = await cliux.prompt(
145-
'Contentful management token (not found in --management-token, CONTENTFUL_MANAGEMENT_TOKEN, or contentful login)',
145+
'Source token (not found in --source-token, CONTENTFUL_MANAGEMENT_TOKEN, or source login)',
146146
);
147147
}
148148

@@ -703,7 +703,7 @@ async function fetchContentfulSpaceName(spaceId?: string, token?: string): Promi
703703

704704
/**
705705
* Reuse the CMA token saved by `contentful login` (~/.contentfulrc.json), so a
706-
* logged-in user need not pass --management-token. Returns undefined if absent.
706+
* logged-in user need not pass --source-token. Returns undefined if absent.
707707
*/
708708
function readContentfulCliToken(): string | undefined {
709709
try {

0 commit comments

Comments
 (0)