### Installing Dependencies (Yarn Shell) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/README.md This command uses the Yarn package manager to install all project dependencies defined in the `package.json` file. It's the first step to prepare the project for development or building. ```Shell $ yarn ``` -------------------------------- ### Starting Local Development Server (Yarn Shell) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/README.md This command launches a local development server provided by Docusaurus. It allows developers to preview the website locally with live reloading, making it efficient for content creation and testing. ```Shell $ yarn start ``` -------------------------------- ### Running Anyflow Install Command - Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/1_starting.md Runs the Anyflow installation command. This command typically integrates Anyflow functionality by modifying the project's Hardhat configuration file (`hardhat.config.js` or `hardhat.config.ts`). It requires the configuration object name to contain "HardhatUserConfig". ```Bash anyflow install ``` -------------------------------- ### Initializing Anyflow Project Directory - Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/1_starting.md This command sequence creates a new directory for your Anyflow project and then navigates into that directory, setting the context for subsequent CLI commands. It's the standard first step for starting a new project. ```Bash mkdir my-anyflow-project cd my-anyflow-project ``` -------------------------------- ### Running Anyflow Init Command - Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/1_starting.md Executes the Anyflow initialization command. This command is necessary to set up the required environment variables for your project, preparing it for integration with the Anyflow service. ```Bash anyflow init ``` -------------------------------- ### Verifying libsecret Installation Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Uses `pkg-config` to verify that `libsecret-1` is correctly installed and available on the system. It prints the linker flags needed to compile programs against `libsecret`. ```bash pkg-config --libs libsecret-1 ``` -------------------------------- ### Installing Keyring Dependencies Fedora/RHEL Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Installs the necessary system packages (`libsecret-devel`, `gnome-keyring`) required for `keytar` and keyring integration on Fedora and RHEL-based Linux distributions. Requires root privileges. ```bash sudo dnf install libsecret-devel gnome-keyring ``` -------------------------------- ### Deploying Website (HTTPS - Yarn Shell) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/README.md This command builds the website and deploys it using Yarn. It explicitly requires providing the GitHub username, which is used for authentication when deploying via HTTPS instead of SSH. ```Shell $ GIT_USER= yarn deploy ``` -------------------------------- ### Installing Keyring Dependencies Ubuntu/Debian Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Installs the necessary system packages (`libsecret-1-dev`, `gnome-keyring`, `libsecret-tools`) required for `keytar` and keyring integration on Ubuntu and Debian-based Linux distributions. Requires root privileges. ```bash sudo apt-get install libsecret-1-dev gnome-keyring libsecret-tools ``` -------------------------------- ### Installing Anyflow CLI (Bash) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/index.md This command uses the npm package manager to install the Anyflow CLI globally or locally. npm is required to execute this command. It downloads and sets up the CLI for usage, making the 'anyflow' command available in your terminal. ```bash npm install anyflow-cli ``` -------------------------------- ### Starting GNOME Keyring Daemon Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Starts the GNOME keyring daemon, enabling the 'secrets' and 'ssh' components. It also exports the `SSH_AUTH_SOCK` environment variable, which is necessary for the SSH agent component. ```bash eval $(gnome-keyring-daemon --start --components=secrets,ssh) export SSH_AUTH_SOCK ``` -------------------------------- ### Building Static Website (Yarn Shell) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/README.md This command compiles the Docusaurus source files into static assets (HTML, CSS, JS). The generated content is placed in a designated build directory, suitable for hosting on any static web server. ```Shell $ yarn build ``` -------------------------------- ### Deploying Website (SSH - Yarn Shell) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/README.md This command triggers the website build process and then deploys the static output using Yarn. Setting `USE_SSH=true` instructs the deployment script to use an SSH connection for Git operations, commonly used for pushing to hosting branches like `gh-pages`. ```Shell $ USE_SSH=true yarn deploy ``` -------------------------------- ### Starting New DBus Session Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Starts a new D-Bus session bus daemon using `dbus-launch` and sets the necessary environment variables (`DBUS_SESSION_BUS_ADDRESS`) in the current shell session. Useful if the variable is not set or incorrect. ```bash eval $(dbus-launch --sh-syntax) ``` -------------------------------- ### Deploying with Deterministic Addresses AnyFlow CLI Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/3_deploying.md This command deploys your smart contracts ensuring they have the same predictable address across all targeted networks. Use the --deterministic-addresses (or -da) flag with the network specification. This feature requires a deterministic deployment setup. ```bash anyflow deploy --networks 137 --deterministic-addresses ``` -------------------------------- ### Basic Deployment Command AnyFlow CLI Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/3_deploying.md This command initiates the basic deployment process for your smart contracts using the AnyFlow CLI. You must specify the target network(s) using the --networks flag. Optional flags for verification and deterministic addresses are available. ```bash anyflow deploy --networks [--verify] [--deterministic-addresses] ``` -------------------------------- ### Displaying Anyflow CLI Help (Bash) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/index.md Executes the Anyflow CLI with the --help flag to display a list of available commands and options, along with their descriptions. This is useful for discovering CLI functionalities and understanding command syntax. ```bash anyflow --help ``` -------------------------------- ### Deploying to Multiple Networks AnyFlow CLI Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/3_deploying.md This command demonstrates how to deploy your smart contracts to several networks simultaneously. You list the desired network chain IDs or aliases, separated by spaces, after the --networks flag. The CLI uses configurations from your hardhat.config.js. ```bash anyflow deploy --networks polygon polygonAmoy 11155111 ``` -------------------------------- ### Compiling Contracts with Hardhat Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/3_deploying.md This command compiles your smart contracts using the Hardhat CLI. It is a necessary step before deploying the contracts. It processes your source files and outputs the compiled artifacts, such as ABIs and bytecode. ```bash hardhat compile ``` -------------------------------- ### Deploying and Verifying Contracts AnyFlow CLI Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/3_deploying.md This command deploys your smart contracts and automatically verifies them on the blockchain after successful deployment. Use the --verify flag along with the target network's chain ID. This requires the network configuration to support verification. ```bash anyflow deploy --networks 137 --verify ``` -------------------------------- ### Initiating Authentication - AnyFlow CLI - Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/2_authentication.md Initiates the authentication process for the AnyFlow CLI. This command opens the AnyFlow Web Application in your browser, prompting you to log in and retrieve your API key from settings to complete the authentication in the terminal. ```bash anyflow auth ``` -------------------------------- ### Restarting GNOME Keyring Daemon Debug Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Kills any running `gnome-keyring-daemon` instances and then restarts it in the foreground with debug output enabled. This helps diagnose issues with the daemon startup or operation. Requires root privileges to kill other user's processes if not careful. ```bash killall gnome-keyring-daemon gnome-keyring-daemon --start --components=secrets --foreground --debug ``` -------------------------------- ### Verifying Secret Service Availability DBus Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Sends a D-Bus method call to the D-Bus daemon itself (`org.freedesktop.DBus`) to list the names of all currently registered services on the session bus. Checking the output can confirm if `org.freedesktop.secrets` is present. ```bash dbus-send --session --dest=org.freedesktop.DBus \ --type=method_call --print-reply /org/freedesktop/DBus \ org.freedesktop.DBus.ListNames ``` -------------------------------- ### Testing Secret Storage Secret-Tool Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Uses the `secret-tool` command-line utility to store and then retrieve a test secret from the Secret Service (GNOME Keyring). This validates the basic functionality of storing and retrieving secrets programmatically. ```bash secret-tool store --label="Test Secret" service TestService account TestAccount # Retrieve the secret secret-tool lookup service TestService account TestAccount ``` -------------------------------- ### Checking Secret Service DBus Connection Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Uses `gdbus` to perform a D-Bus ping operation to the `org.freedesktop.secrets` service. A successful ping indicates that the Secret Service, usually provided by `gnome-keyring`, is accessible via D-Bus. ```bash gdbus call --session --dest org.freedesktop.secrets \ --object-path /org/freedesktop/secrets \ --method org.freedesktop.DBus.Peer.Ping ``` -------------------------------- ### Embedding Interactive Button Component (React/MDX) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/blog/2021-08-01-mdx-blog-post.mdx This snippet shows how to embed a simple interactive React button component directly into an MDX blog post. It utilizes the `onClick` event handler to trigger a JavaScript alert when the button is clicked. ```JavaScript ``` -------------------------------- ### Setting GNOME Keyring Control Variable Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Sets the `GNOME_KEYRING_CONTROL` environment variable to the path of the active keyring control directory for the current user (`$UID`). This variable is used by programs to locate the keyring daemon's control socket. ```bash export GNOME_KEYRING_CONTROL=$(ls -d /run/user/$UID/keyring*/ 2>/dev/null | head -n 1) ``` -------------------------------- ### Verifying Authentication Status - AnyFlow CLI - Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/2_authentication.md Verifies whether the current AnyFlow CLI session is successfully authenticated. Running this command confirms your login status after completing the authentication process, ensuring you are ready to use the CLI's full functionality. ```bash anyflow check-auth ``` -------------------------------- ### Checking DBus Session Variable Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/4_keytar_troubleshoot.md Displays the value of the `DBUS_SESSION_BUS_ADDRESS` environment variable. This variable is crucial for applications to connect to the D-Bus session bus, which is used by services like `gnome-keyring`. ```bash echo $DBUS_SESSION_BUS_ADDRESS ``` -------------------------------- ### Fixing Stuck Deployment Status AnyFlow CLI Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/3_deploying.md This command is used to manually correct the local record of the deployment status if the AnyFlow CLI fails to update it automatically. It helps resolve issues where the CLI's state doesn't match the actual deployment status. ```bash anyflow deploy fix-status ``` -------------------------------- ### Executing AnyFlow CLI Logout Command (Bash) Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/5_faq.md Executes the `anyflow logout` command via the command line interface. This command is used to clear locally stored AnyFlow credentials, requiring the user to re-authenticate the next time they use the CLI. This is useful for resetting accounts or security purposes. ```bash anyflow logout ``` -------------------------------- ### Logging Out from AnyFlow CLI - Bash Source: https://github.com/anyflowlabs/anyflow-docs/blob/main/docs/anyflow_cli/2_authentication.md Logs out the current user from the AnyFlow CLI session. This command removes the stored API key or authentication credentials, ending the active session and requiring re-authentication for future use. ```bash anyflow logout ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.