Skip to content

humanmade/altis-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

232 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

altis-cli

CLI for running Altis utilities and commands.

Installing

You need Node v18 or later.

# Install globally:
npm install -g altis-cli

# Run it:
altis-cli

# Run with npx:
npx altis-cli

Available Commands

Always use altis-cli help for the most up-to-date list of commands.

  • cli - Meta CLI commands
    • clear-cache - Clear the cache file
  • config - Configuration commands
    • reset - Reset configuration
    • setup - Set up configuration
    • status - Show stored configuration
  • app - Application commands
    • Alias for stack; preferred for Altis Dashboard application commands.
    • list - List stacks available in our hosting.
    • backup [stack] - Create a new backup for the stack.
    • backups [stack] - List backups for the stack.
    • deploy [stack] - Deploy a given stack.
    • logs [stack] - Show logs with date ranges and filtering. Example: altis-cli app logs example-dev-01 --type php --after "1 hour ago"
    • builds [stack] - List builds. Example: altis-cli app builds example-dev-01 --json
    • build [stack] - Start a build. Example: altis-cli app build example-dev-01
    • build-cache clear [stack] - Clear the build cache. Example: altis-cli app build-cache clear example-dev-01 --yes
    • deploys [stack] - List deploys. Example: altis-cli app deploys example-dev-01
    • tasks - List, cancel, or stream running tasks. Example: altis-cli app tasks example-dev-01
    • tasks cancel <id> - Cancel a running task. Example: altis-cli app tasks cancel <id> --yes
    • tasks logs <id> - Stream logs for a running task. Example: altis-cli app tasks logs <id>
    • database-tables [stack] - List database tables. Example: altis-cli app database-tables example-dev-01
    • uploads-prefixes [stack] - List uploads prefixes. Example: altis-cli app uploads-prefixes example-dev-01
    • import database <target> --from <source> - Import database from another app. Example: altis-cli app import database example-dev-01 --from example-stag-01
    • import uploads <target> --from <source> - Import uploads from another app. Example: altis-cli app import uploads example-dev-01 --from example-stag-01
    • variables - Manage app/build variables. Example: altis-cli app variables list example-dev-01 --type app
    • domains - Manage domains. Example: altis-cli app domains list example-dev-01
    • ip-list - Manage IP allow/deny lists. Example: altis-cli app ip-list get example-dev-01 --type allow
    • ua-blocklist - Manage user-agent blocklist. Example: altis-cli app ua-blocklist get example-dev-01
    • packages [stack] - List packages. Example: altis-cli app packages example-dev-01
    • vulnerabilities [stack] - List packages with vulnerabilities. Example: altis-cli app vulnerabilities example-dev-01
  • stack - Legacy alias for application commands
    • info [stack] - Get information for a stack.
    • scp <src> <dest> - Copy a file to/from a stack.
    • ssh [stack] - SSH into a stack.
    • php-logs [stack] - Show PHP logs for a stack.
  • instance - Instance commands
    • list - List instances. Example: altis-cli instance list
    • info <instance> - Show instance details. Example: altis-cli instance info example-dev-01
    • access list <instance> - List instance access. Example: altis-cli instance access list example-dev-01
    • access add <instance> <email> - Add or invite a user. Example: altis-cli instance access add example-dev-01 user@example.com --role developer
    • access remove <instance> <user-id> - Remove a user. Example: altis-cli instance access remove example-dev-01 42 --yes
    • maintenance get <instance> - Show maintenance details. Example: altis-cli instance maintenance get example-dev-01
    • maintenance set <instance> - Update maintenance contact. Example: altis-cli instance maintenance set example-dev-01 --contact ops@example.com
    • reports <instance> - List reports. Example: altis-cli instance reports example-dev-01

Credits

Created by Ryan McCue to make your day better.

Licensed under the MIT license. Copyright 2017-2023 Human Made.

      :+oo/      .hmNh    oyy. /dMMm:   /syo.
   +dMMMMMMN.    oMMMy   :MMM+mMMMMMN oNMMMMm
  mMNo-.dMMM+    dMMM+   oMMMMM+ dMMMmMdhMMMN
  ++    sMMMo    NMMM.   yMMMM:  hMMMM+ .MMMd
        yMMM+   .MMMM:/+oNMMMs   NMMMo  :MMMs
        hMMMo/oydMMMMMMMMMMMM.   MMMN   oMMM+
       /NMMMMMMNmMMMh-. .MMMd   :MMMh   yMMM-
    +dMMMMMM/-  oMMMo   :MMMs   +MMMo   dMMM
  oNMMy+MMMN    sMMMo   +MMM+   sMMM:   mMMM
.mMMh. /MMMh    sMMMo   sMMM:   +ddy    hMMM-
hMMy   sMMM+    +MMMh   hMMM.           :MMMNs+os
MMM-   NMMN     .MMMM:  -/:.             :hNMMMMh
dMMh:/mMMN:      +MMMMy:..-/s.               ..
 yMMMMMMy.        -hMMMMMMMNh-
   -/:-              -///:.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors