Repository navigation
Conversation
Describe the version fallback and --dir targeting, empty-value handling in apify env push and pull, that the MCP tools parameter replaces the default selection, what apify env migrate does to actor.json, and the MCP way to mark a variable secret.
Contributor
|
❌ Preview build for this PR (commit |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The environment variables page says that
actor.jsonoverrides Console values on push, and that the only way out is to delete the key. Both stop being true onceapify pushstops uploading env vars (apify/apify-cli#1575) and the CLI deprecatesenvironmentVariables(apify/apify-cli#1577). This PR describes the new model: the Actor version is the source of truth on the platform,.envis for local runs, and theapify envcommands and MCP tools manage the variables.Changes
environment_variables.md: removed the override guidance and the "Define inactor.json" section. Added sections on Apify Console, theapify envcommands, the MCP serverenv-varstools, local.envfiles, and moving fromenvironmentVariables.--secret, write-only values,applyEnvVarsToBuild, and--apply-env-vars-to-build.actor_json.md:environmentVariablesis marked deprecated, the@secretexample is removed, and the table gets anapplyEnvVarsToBuildrow.Tests
markdownlintpasses on both changed files.[api]tests apply to this change. Those run only in CI.Notes for reviewers
environmentVariablesinapify pushapify-cli#1575 and DeprecateenvironmentVariables,@secretreferences, andapify secretsapify-cli#1577, together with theapify envcommands and the MCPenv-varstools. The page describes that behavior as current.apify env pushmakes new variables secret by default (--plainopts out), and.envoverrides shell and CLI-set variables inapify run./mcp#tool-selection, because the MCP page's slug is/mcp, not/agents/mcp.applyEnvVarsToBuildrow documents a field thatapify pushreads. When it's omitted, the setting stored on the platform is kept./cli/docs/vars, Rewrite the CLI env var guide apify-cli#1578) covers whenapify pushneeds--forceafter an env var change. This page links there instead of repeating it.sources/platform/agents/mcp.mddoesn't list theenv-varstools yet, which fits the MCP server PRs. The Academy lesson in13_platform.mdstill shows an emptyenvironmentVariablesblock, which should change when the Stop writing an emptyenvironmentVariablestoactor.jsonapify-cli#1566 fix ships.Closes #3217
🤖 Generated with Claude Code