Skip to content

Fix ctx switch bash command and remove $ from copyable command line examples #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ All other fields are contained within the `data` attribute.
Extracted artifacts can be validated with the `chef-cli` using the following command:

```bash
$ chef-cli validate-data -m external_domain_metadata.json -r issue < extractor_issues_2.json
chef-cli validate-data -m external_domain_metadata.json -r issue < extractor_issues_2.json
```

You can also generate example data to show the format the data has to be normalized to, using:

```bash
$ echo '{}' | chef-cli fuzz-extracted -r issue -m external_domain_metadata.json > example_issues.json
echo '{}' | chef-cli fuzz-extracted -r issue -m external_domain_metadata.json > example_issues.json
```

## Deploy your snapin in your test org, and run an import.
Expand All @@ -470,7 +470,7 @@ chef-cli ctx switch --env prod
This will print the list of airdrop imports in the org. Select the one you like by running

```bash
$ eval $(chef-cli ctx switch --env --prod --id <the id you choose>); chef-cli ctx show
eval $(chef-cli ctx switch --env prod --id <the id you choose>); chef-cli ctx show
```

If this method doesn't work, you can manually export the variable (replacing the values based on the logs of your running import):
Expand All @@ -482,12 +482,12 @@ export AIRDROP_CONTEXT='{"run_id":"1","mode":"initial","connection_id":"x","migr
Or you can use the interactive helper of the cli:

```bash
$ eval $(chef-cli ctx init); chef-cli ctx show > ctx.json
eval $(chef-cli ctx init); chef-cli ctx show > ctx.json
```

## Use the local UI to create a recipe blueprint for your initial import:

`$ chef-cli configure-mappings --env prod`
`chef-cli configure-mappings --env prod`

If your org is no in US-East-1, you have to override an environment variable to make sure the tool reaches to the right server, eg:

Expand Down