Inductiva Logo
Cli

FAQ

FAQ

How can I know the overall size and cost of my remote storage?

You can check how much storage space you are currently using by issuing:

inductiva storage size

The result will inform you of both the size and the cost per/month of your storage:

Total storage size used:
    Volume: 41.98 GB
    Cost: 0.78 US$/month

How do I delete ALL my storage permanently?

To permanently delete all your storage you can add the --all flag to the remove command.

inductiva remove --all

This commands is be followed by a confirmation prompt to ensure the user intention and prevent irreversible loss of data. All data will be permanently delete.

How to to continuously monitor task progress using the CLI?

You can do it by continuously calling inductiva tasks list for a specific task. For that, you can employ a watch method on Linux or Mac, which will invoke the command inductiva tasks list at set intervals and refresh task information.

In th example below, we refreshe task information every 10 seconds:

# Monitor task status updates every 10 seconds
$ watch -n 10 inductiva tasks list --id jxwt0rm8s8xspdfcegtgkkana
Every 10.0s: inductiva tasks list --id jxwt0rm8s8xspdfcegtgkkana                                                                                 


       ID                              SIMULATOR          STATUS         SUBMITTED              STARTED                COMPUTATION TIME         RESOURCE TYPE
       jxwt0rm8s8xspdfcegtgkkana       splishsplash       success        08 Feb, 13:25:49       08 Feb, 13:26:04       0:00:35                  c2-standard-4

Can I save my task logs locally?

You can save the log stream content and the stream consumer’s status for later inspection by redirecting them to a file:

  • Redirect stdout to a file: You can redirect stdout (file descriptor 1) to a file with the redirection operator (>) to save the entire log stream content. For example:
    $ inductiva logs TASK_ID 1>out.txt
    
  • Redirect stderr to a file: You can redirect the status of the stream consumer, outputted to stderr (file descriptor 2), to a file like this:
    $ inductiva logs TASK_ID 2>err.txt
    
  • Redirect stdout and stderr to separate files: You can redirect both stdout and stderr simultaneously to separate files using:
    $ inductiva logs TASK_ID 1>out.txt 2>err.txt
    
  • Disable ANSI globally: If you need to disable ANSI escape codes, which are used to support the status bar at the bottom of the log stream, either export the ANSI_ENABLED environment variable or set it locally:
    $ export ANSI_ENABLED=0 # Applies to the entire shell session
    $ ANSI_ENABLED=0 inductiva logs TASK_ID. # Applies only to this command
    

However, you don’t need to do so. You can visit the Task’s page on the Web Console, and you will find the logs of the task there ready to be downloaded.

        <div class="cta-bar">
            <div class="cta-text" style="text-align: center">
                ...
            </div>
            <button
                onclick="openInductivaRegister('cli-faq')"
                class="cta-button"
                id="login-btn-small">...</button>
        </div>

        <script>
        function openInductivaRegister(origin) {
            // Current URL query string, including '?'
            const params = new URL(window.parent.location.href).search;
            const parentPath = new URL(window.parent.location.href).pathname;
            
            // Replace "/" with "_", remove leading/trailing underscores if any
            const utmPath = parentPath.replace(/\\//g, '_').replace(/^_+|_+$/g, '');
            
            // Get referrer domain only, remove protocol and www
            let referrerDomain = '';
            try {
                const refUrl = new URL(window.parent.document.referrer);
                referrerDomain = refUrl.hostname.replace(/^www\\./, ''); // Remove www.
            } catch (e) {
                // If referrer is empty or invalid, leave as empty string
                referrerDomain = '';
            }

            // Sanitize: allow only alphanumerics, "-", "_", "."
            const utmReferrer = encodeURIComponent(referrerDomain.replace(/[^a-zA-Z0-9_\\-\\.]/g, '_'));

            const baseUrl = 'https://console.inductiva.ai/api/register?utm_cta_origin=guide_' 
                + origin + '&utm_path=' + encodeURIComponent(utmPath)
                + '&utm_ref=' + utmReferrer;

            const url = params
                ? baseUrl + '&' + params.slice(1)  // Remove the initial '?' and prepend '&'
                : baseUrl;

            console.log("[BannerSmall] Opening URL:", url);
            window.open(url, '_blank');
        }
        </script>