![]() In such cases, you want to customize the CLI to bypass any confirmation questions. You might want to use the CLI in a script to automate repetitive tasks such as synchronizing your files locally. You can customize how the CLI operates and what it returns with a configuration file ( ~/.platformsh/config.yaml)įor details, see the customization instructions on GitHub. The code is only merged between environments remotely. Generally, they offer more options than the Git commands alone.įor example, platform push offers options such as -activate (to activate an environment before pushing)Īnd -no-wait (so you can continue working without waiting for the push to complete).įor all of them, you don’t need to configure a Git remote.Īn example of how this affects commands is that when you run platform merge, Some CLI commands (especially many within the environment namespace) have some overlap with Git commands. You can find that in the Console or by running platform projects to list all accessible projects. Replace PROJECT_ID with the ID of your project. Platform project:set-remote -project PROJECT_ID If you run a command that requires a specific project and environment, you are prompted to select them. ![]() When you are in an empty directory or a directory not associated with a specific Platform.sh project, Platform get abc123 my-project Select the right project and environment v |vv |vvv, -verbose Increase the verbosity of messagesĬlone the project "abc123" into the directory "my-project": n, -no Answer "no" to any yes/no questions disable interaction y, -yes Answer "yes" to any yes/no questions disable interaction V, -version Display this application version i, -identity-file =IDENTITY-FILE An SSH identity (private key ) to use ![]() p, -project =PROJECT The project ID or URL depth =DEPTH Create a shallow clone: limit the number of commits in the history -build Build the project after cloning Defaults to the project default, or the first available ![]() e, -environment =ENVIRONMENT The environment ID to clone. Platform get Arguments:ĭirectory The directory to clone to. ![]()
0 Comments
Leave a Reply. |